From 586ecfdd255cf629b666cf21b29e4a30e3d8e5b6 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Fri, 25 Jul 2025 19:49:13 +0300 Subject: [PATCH 01/10] HQ perf app Signed-off-by: Alexander Gorshenev --- arkoala-arkts/cats/user/src/ets/SomeCat.ets | 2 +- .../user/src/ets/pages/collect/nullPage.ets | 2 +- .../user/src/ets/pages/homePage/boutique.ets | 2 +- .../user/src/ets/pages/homePage/core1.ets | 2 +- .../user/src/ets/pages/homePage/core2.ets | 2 +- .../user/src/ets/pages/homePage/goodsList.ets | 2 +- arkoala-arkts/trivial/user/package.json | 2 +- .../trivial/user/src/ets/pages/1.2/Index.ets | 1002 + .../trivial/user/src/ets/pages/1.2/file0.ets | 310 + .../trivial/user/src/ets/pages/1.2/file1.ets | 402 + .../trivial/user/src/ets/pages/1.2/file10.ets | 433 + .../user/src/ets/pages/1.2/file100.ets | 408 + .../user/src/ets/pages/1.2/file101.ets | 393 + .../user/src/ets/pages/1.2/file102.ets | 407 + .../user/src/ets/pages/1.2/file103.ets | 410 + .../user/src/ets/pages/1.2/file104.ets | 438 + .../user/src/ets/pages/1.2/file105.ets | 383 + .../user/src/ets/pages/1.2/file106.ets | 391 + .../user/src/ets/pages/1.2/file107.ets | 382 + .../user/src/ets/pages/1.2/file108.ets | 406 + .../user/src/ets/pages/1.2/file109.ets | 410 + .../trivial/user/src/ets/pages/1.2/file11.ets | 427 + .../user/src/ets/pages/1.2/file110.ets | 414 + .../user/src/ets/pages/1.2/file111.ets | 417 + .../user/src/ets/pages/1.2/file112.ets | 401 + .../user/src/ets/pages/1.2/file113.ets | 400 + .../user/src/ets/pages/1.2/file114.ets | 386 + .../user/src/ets/pages/1.2/file115.ets | 442 + .../user/src/ets/pages/1.2/file116.ets | 369 + .../user/src/ets/pages/1.2/file117.ets | 392 + .../user/src/ets/pages/1.2/file118.ets | 413 + .../user/src/ets/pages/1.2/file119.ets | 382 + .../trivial/user/src/ets/pages/1.2/file12.ets | 365 + .../user/src/ets/pages/1.2/file120.ets | 415 + .../user/src/ets/pages/1.2/file121.ets | 453 + .../user/src/ets/pages/1.2/file122.ets | 352 + .../user/src/ets/pages/1.2/file123.ets | 392 + .../user/src/ets/pages/1.2/file124.ets | 432 + .../user/src/ets/pages/1.2/file125.ets | 474 + .../user/src/ets/pages/1.2/file126.ets | 312 + .../user/src/ets/pages/1.2/file127.ets | 478 + .../user/src/ets/pages/1.2/file128.ets | 390 + .../user/src/ets/pages/1.2/file129.ets | 393 + .../trivial/user/src/ets/pages/1.2/file13.ets | 397 + .../user/src/ets/pages/1.2/file130.ets | 362 + .../user/src/ets/pages/1.2/file131.ets | 392 + .../user/src/ets/pages/1.2/file132.ets | 437 + .../user/src/ets/pages/1.2/file133.ets | 451 + .../user/src/ets/pages/1.2/file134.ets | 323 + .../user/src/ets/pages/1.2/file135.ets | 408 + .../user/src/ets/pages/1.2/file136.ets | 443 + .../user/src/ets/pages/1.2/file137.ets | 376 + .../user/src/ets/pages/1.2/file138.ets | 377 + .../user/src/ets/pages/1.2/file139.ets | 400 + .../trivial/user/src/ets/pages/1.2/file14.ets | 397 + .../user/src/ets/pages/1.2/file140.ets | 517 + .../user/src/ets/pages/1.2/file141.ets | 336 + .../user/src/ets/pages/1.2/file142.ets | 430 + .../user/src/ets/pages/1.2/file143.ets | 339 + .../user/src/ets/pages/1.2/file144.ets | 395 + .../user/src/ets/pages/1.2/file145.ets | 469 + .../user/src/ets/pages/1.2/file146.ets | 354 + .../user/src/ets/pages/1.2/file147.ets | 385 + .../user/src/ets/pages/1.2/file148.ets | 411 + .../user/src/ets/pages/1.2/file149.ets | 431 + .../trivial/user/src/ets/pages/1.2/file15.ets | 405 + .../user/src/ets/pages/1.2/file150.ets | 446 + .../user/src/ets/pages/1.2/file151.ets | 373 + .../user/src/ets/pages/1.2/file152.ets | 369 + .../user/src/ets/pages/1.2/file153.ets | 387 + .../user/src/ets/pages/1.2/file154.ets | 408 + .../user/src/ets/pages/1.2/file155.ets | 458 + .../user/src/ets/pages/1.2/file156.ets | 395 + .../user/src/ets/pages/1.2/file157.ets | 374 + .../user/src/ets/pages/1.2/file158.ets | 394 + .../user/src/ets/pages/1.2/file159.ets | 406 + .../trivial/user/src/ets/pages/1.2/file16.ets | 420 + .../user/src/ets/pages/1.2/file160.ets | 396 + .../user/src/ets/pages/1.2/file161.ets | 472 + .../user/src/ets/pages/1.2/file162.ets | 378 + .../user/src/ets/pages/1.2/file163.ets | 378 + .../user/src/ets/pages/1.2/file164.ets | 408 + .../user/src/ets/pages/1.2/file165.ets | 402 + .../user/src/ets/pages/1.2/file166.ets | 389 + .../user/src/ets/pages/1.2/file167.ets | 412 + .../user/src/ets/pages/1.2/file168.ets | 413 + .../user/src/ets/pages/1.2/file169.ets | 402 + .../trivial/user/src/ets/pages/1.2/file17.ets | 401 + .../user/src/ets/pages/1.2/file170.ets | 413 + .../user/src/ets/pages/1.2/file171.ets | 392 + .../user/src/ets/pages/1.2/file172.ets | 388 + .../user/src/ets/pages/1.2/file173.ets | 403 + .../user/src/ets/pages/1.2/file174.ets | 398 + .../user/src/ets/pages/1.2/file175.ets | 412 + .../user/src/ets/pages/1.2/file176.ets | 418 + .../user/src/ets/pages/1.2/file177.ets | 415 + .../user/src/ets/pages/1.2/file178.ets | 356 + .../user/src/ets/pages/1.2/file179.ets | 460 + .../trivial/user/src/ets/pages/1.2/file18.ets | 402 + .../user/src/ets/pages/1.2/file180.ets | 363 + .../user/src/ets/pages/1.2/file181.ets | 486 + .../user/src/ets/pages/1.2/file182.ets | 305 + .../user/src/ets/pages/1.2/file183.ets | 477 + .../user/src/ets/pages/1.2/file184.ets | 327 + .../user/src/ets/pages/1.2/file185.ets | 431 + .../user/src/ets/pages/1.2/file186.ets | 390 + .../user/src/ets/pages/1.2/file187.ets | 414 + .../user/src/ets/pages/1.2/file188.ets | 401 + .../user/src/ets/pages/1.2/file189.ets | 379 + .../trivial/user/src/ets/pages/1.2/file19.ets | 395 + .../user/src/ets/pages/1.2/file190.ets | 470 + .../user/src/ets/pages/1.2/file191.ets | 382 + .../user/src/ets/pages/1.2/file192.ets | 410 + .../user/src/ets/pages/1.2/file193.ets | 444 + .../user/src/ets/pages/1.2/file194.ets | 355 + .../user/src/ets/pages/1.2/file195.ets | 358 + .../user/src/ets/pages/1.2/file196.ets | 433 + .../user/src/ets/pages/1.2/file197.ets | 460 + .../user/src/ets/pages/1.2/file198.ets | 401 + .../user/src/ets/pages/1.2/file199.ets | 325 + .../trivial/user/src/ets/pages/1.2/file2.ets | 423 + .../trivial/user/src/ets/pages/1.2/file20.ets | 416 + .../user/src/ets/pages/1.2/file200.ets | 423 + .../user/src/ets/pages/1.2/file201.ets | 381 + .../user/src/ets/pages/1.2/file202.ets | 433 + .../user/src/ets/pages/1.2/file203.ets | 379 + .../user/src/ets/pages/1.2/file204.ets | 400 + .../user/src/ets/pages/1.2/file205.ets | 396 + .../user/src/ets/pages/1.2/file206.ets | 419 + .../user/src/ets/pages/1.2/file207.ets | 389 + .../user/src/ets/pages/1.2/file208.ets | 397 + .../user/src/ets/pages/1.2/file209.ets | 412 + .../trivial/user/src/ets/pages/1.2/file21.ets | 394 + .../user/src/ets/pages/1.2/file210.ets | 399 + .../user/src/ets/pages/1.2/file211.ets | 429 + .../user/src/ets/pages/1.2/file212.ets | 398 + .../user/src/ets/pages/1.2/file213.ets | 379 + .../user/src/ets/pages/1.2/file214.ets | 401 + .../user/src/ets/pages/1.2/file215.ets | 471 + .../user/src/ets/pages/1.2/file216.ets | 335 + .../user/src/ets/pages/1.2/file217.ets | 409 + .../user/src/ets/pages/1.2/file218.ets | 414 + .../user/src/ets/pages/1.2/file219.ets | 436 + .../trivial/user/src/ets/pages/1.2/file22.ets | 446 + .../user/src/ets/pages/1.2/file220.ets | 417 + .../user/src/ets/pages/1.2/file221.ets | 421 + .../user/src/ets/pages/1.2/file222.ets | 335 + .../user/src/ets/pages/1.2/file223.ets | 416 + .../user/src/ets/pages/1.2/file224.ets | 426 + .../user/src/ets/pages/1.2/file225.ets | 421 + .../user/src/ets/pages/1.2/file226.ets | 347 + .../user/src/ets/pages/1.2/file227.ets | 436 + .../user/src/ets/pages/1.2/file228.ets | 402 + .../user/src/ets/pages/1.2/file229.ets | 410 + .../trivial/user/src/ets/pages/1.2/file23.ets | 354 + .../user/src/ets/pages/1.2/file230.ets | 382 + .../user/src/ets/pages/1.2/file231.ets | 386 + .../user/src/ets/pages/1.2/file232.ets | 393 + .../user/src/ets/pages/1.2/file233.ets | 431 + .../user/src/ets/pages/1.2/file234.ets | 402 + .../user/src/ets/pages/1.2/file235.ets | 388 + .../user/src/ets/pages/1.2/file236.ets | 401 + .../user/src/ets/pages/1.2/file237.ets | 394 + .../user/src/ets/pages/1.2/file238.ets | 423 + .../user/src/ets/pages/1.2/file239.ets | 390 + .../trivial/user/src/ets/pages/1.2/file24.ets | 449 + .../user/src/ets/pages/1.2/file240.ets | 412 + .../user/src/ets/pages/1.2/file241.ets | 382 + .../user/src/ets/pages/1.2/file242.ets | 472 + .../user/src/ets/pages/1.2/file243.ets | 351 + .../user/src/ets/pages/1.2/file244.ets | 389 + .../user/src/ets/pages/1.2/file245.ets | 401 + .../user/src/ets/pages/1.2/file246.ets | 461 + .../user/src/ets/pages/1.2/file247.ets | 354 + .../user/src/ets/pages/1.2/file248.ets | 411 + .../user/src/ets/pages/1.2/file249.ets | 397 + .../trivial/user/src/ets/pages/1.2/file25.ets | 345 + .../user/src/ets/pages/1.2/file250.ets | 416 + .../user/src/ets/pages/1.2/file251.ets | 376 + .../user/src/ets/pages/1.2/file252.ets | 460 + .../user/src/ets/pages/1.2/file253.ets | 432 + .../user/src/ets/pages/1.2/file254.ets | 334 + .../user/src/ets/pages/1.2/file255.ets | 409 + .../user/src/ets/pages/1.2/file256.ets | 447 + .../user/src/ets/pages/1.2/file257.ets | 346 + .../user/src/ets/pages/1.2/file258.ets | 409 + .../user/src/ets/pages/1.2/file259.ets | 458 + .../trivial/user/src/ets/pages/1.2/file26.ets | 522 + .../user/src/ets/pages/1.2/file260.ets | 418 + .../user/src/ets/pages/1.2/file261.ets | 327 + .../user/src/ets/pages/1.2/file262.ets | 425 + .../user/src/ets/pages/1.2/file263.ets | 376 + .../user/src/ets/pages/1.2/file264.ets | 438 + .../user/src/ets/pages/1.2/file265.ets | 410 + .../user/src/ets/pages/1.2/file266.ets | 387 + .../user/src/ets/pages/1.2/file267.ets | 406 + .../user/src/ets/pages/1.2/file268.ets | 387 + .../user/src/ets/pages/1.2/file269.ets | 482 + .../trivial/user/src/ets/pages/1.2/file27.ets | 319 + .../user/src/ets/pages/1.2/file270.ets | 307 + .../user/src/ets/pages/1.2/file271.ets | 417 + .../user/src/ets/pages/1.2/file272.ets | 393 + .../user/src/ets/pages/1.2/file273.ets | 420 + .../user/src/ets/pages/1.2/file274.ets | 383 + .../user/src/ets/pages/1.2/file275.ets | 413 + .../user/src/ets/pages/1.2/file276.ets | 424 + .../user/src/ets/pages/1.2/file277.ets | 483 + .../user/src/ets/pages/1.2/file278.ets | 341 + .../user/src/ets/pages/1.2/file279.ets | 377 + .../trivial/user/src/ets/pages/1.2/file28.ets | 455 + .../user/src/ets/pages/1.2/file280.ets | 392 + .../user/src/ets/pages/1.2/file281.ets | 445 + .../user/src/ets/pages/1.2/file282.ets | 355 + .../user/src/ets/pages/1.2/file283.ets | 421 + .../user/src/ets/pages/1.2/file284.ets | 394 + .../user/src/ets/pages/1.2/file285.ets | 449 + .../user/src/ets/pages/1.2/file286.ets | 356 + .../user/src/ets/pages/1.2/file287.ets | 412 + .../user/src/ets/pages/1.2/file288.ets | 431 + .../user/src/ets/pages/1.2/file289.ets | 365 + .../trivial/user/src/ets/pages/1.2/file29.ets | 336 + .../user/src/ets/pages/1.2/file290.ets | 427 + .../user/src/ets/pages/1.2/file291.ets | 472 + .../user/src/ets/pages/1.2/file292.ets | 315 + .../user/src/ets/pages/1.2/file293.ets | 478 + .../user/src/ets/pages/1.2/file294.ets | 319 + .../user/src/ets/pages/1.2/file295.ets | 418 + .../user/src/ets/pages/1.2/file296.ets | 379 + .../user/src/ets/pages/1.2/file297.ets | 421 + .../user/src/ets/pages/1.2/file298.ets | 433 + .../user/src/ets/pages/1.2/file299.ets | 356 + .../trivial/user/src/ets/pages/1.2/file3.ets | 488 + .../trivial/user/src/ets/pages/1.2/file30.ets | 401 + .../user/src/ets/pages/1.2/file300.ets | 492 + .../user/src/ets/pages/1.2/file301.ets | 332 + .../user/src/ets/pages/1.2/file302.ets | 440 + .../user/src/ets/pages/1.2/file303.ets | 409 + .../user/src/ets/pages/1.2/file304.ets | 361 + .../user/src/ets/pages/1.2/file305.ets | 387 + .../user/src/ets/pages/1.2/file306.ets | 458 + .../user/src/ets/pages/1.2/file307.ets | 342 + .../user/src/ets/pages/1.2/file308.ets | 406 + .../user/src/ets/pages/1.2/file309.ets | 423 + .../trivial/user/src/ets/pages/1.2/file31.ets | 396 + .../user/src/ets/pages/1.2/file310.ets | 396 + .../user/src/ets/pages/1.2/file311.ets | 401 + .../user/src/ets/pages/1.2/file312.ets | 400 + .../user/src/ets/pages/1.2/file313.ets | 402 + .../user/src/ets/pages/1.2/file314.ets | 440 + .../user/src/ets/pages/1.2/file315.ets | 357 + .../user/src/ets/pages/1.2/file316.ets | 430 + .../user/src/ets/pages/1.2/file317.ets | 393 + .../user/src/ets/pages/1.2/file318.ets | 413 + .../user/src/ets/pages/1.2/file319.ets | 429 + .../trivial/user/src/ets/pages/1.2/file32.ets | 393 + .../user/src/ets/pages/1.2/file320.ets | 368 + .../user/src/ets/pages/1.2/file321.ets | 417 + .../user/src/ets/pages/1.2/file322.ets | 403 + .../user/src/ets/pages/1.2/file323.ets | 389 + .../user/src/ets/pages/1.2/file324.ets | 408 + .../user/src/ets/pages/1.2/file325.ets | 394 + .../user/src/ets/pages/1.2/file326.ets | 446 + .../user/src/ets/pages/1.2/file327.ets | 415 + .../user/src/ets/pages/1.2/file328.ets | 435 + .../user/src/ets/pages/1.2/file329.ets | 312 + .../trivial/user/src/ets/pages/1.2/file33.ets | 415 + .../user/src/ets/pages/1.2/file330.ets | 417 + .../user/src/ets/pages/1.2/file331.ets | 402 + .../user/src/ets/pages/1.2/file332.ets | 483 + .../user/src/ets/pages/1.2/file333.ets | 390 + .../user/src/ets/pages/1.2/file334.ets | 328 + .../user/src/ets/pages/1.2/file335.ets | 405 + .../user/src/ets/pages/1.2/file336.ets | 461 + .../user/src/ets/pages/1.2/file337.ets | 343 + .../user/src/ets/pages/1.2/file338.ets | 394 + .../user/src/ets/pages/1.2/file339.ets | 417 + .../trivial/user/src/ets/pages/1.2/file34.ets | 403 + .../user/src/ets/pages/1.2/file340.ets | 406 + .../user/src/ets/pages/1.2/file341.ets | 451 + .../user/src/ets/pages/1.2/file342.ets | 410 + .../user/src/ets/pages/1.2/file343.ets | 326 + .../user/src/ets/pages/1.2/file344.ets | 503 + .../user/src/ets/pages/1.2/file345.ets | 347 + .../user/src/ets/pages/1.2/file346.ets | 363 + .../user/src/ets/pages/1.2/file347.ets | 403 + .../user/src/ets/pages/1.2/file348.ets | 530 + .../user/src/ets/pages/1.2/file349.ets | 295 + .../trivial/user/src/ets/pages/1.2/file35.ets | 401 + .../user/src/ets/pages/1.2/file350.ets | 439 + .../user/src/ets/pages/1.2/file351.ets | 402 + .../user/src/ets/pages/1.2/file352.ets | 365 + .../user/src/ets/pages/1.2/file353.ets | 419 + .../user/src/ets/pages/1.2/file354.ets | 384 + .../user/src/ets/pages/1.2/file355.ets | 422 + .../user/src/ets/pages/1.2/file356.ets | 384 + .../user/src/ets/pages/1.2/file357.ets | 392 + .../user/src/ets/pages/1.2/file358.ets | 427 + .../user/src/ets/pages/1.2/file359.ets | 372 + .../trivial/user/src/ets/pages/1.2/file36.ets | 394 + .../user/src/ets/pages/1.2/file360.ets | 475 + .../user/src/ets/pages/1.2/file361.ets | 343 + .../user/src/ets/pages/1.2/file362.ets | 469 + .../user/src/ets/pages/1.2/file363.ets | 349 + .../user/src/ets/pages/1.2/file364.ets | 391 + .../user/src/ets/pages/1.2/file365.ets | 408 + .../user/src/ets/pages/1.2/file366.ets | 412 + .../user/src/ets/pages/1.2/file367.ets | 388 + .../user/src/ets/pages/1.2/file368.ets | 426 + .../user/src/ets/pages/1.2/file369.ets | 395 + .../trivial/user/src/ets/pages/1.2/file37.ets | 497 + .../user/src/ets/pages/1.2/file370.ets | 465 + .../user/src/ets/pages/1.2/file371.ets | 314 + .../user/src/ets/pages/1.2/file372.ets | 497 + .../user/src/ets/pages/1.2/file373.ets | 347 + .../user/src/ets/pages/1.2/file374.ets | 379 + .../user/src/ets/pages/1.2/file375.ets | 408 + .../user/src/ets/pages/1.2/file376.ets | 417 + .../user/src/ets/pages/1.2/file377.ets | 462 + .../user/src/ets/pages/1.2/file378.ets | 323 + .../user/src/ets/pages/1.2/file379.ets | 444 + .../trivial/user/src/ets/pages/1.2/file38.ets | 327 + .../user/src/ets/pages/1.2/file380.ets | 409 + .../user/src/ets/pages/1.2/file381.ets | 360 + .../user/src/ets/pages/1.2/file382.ets | 454 + .../user/src/ets/pages/1.2/file383.ets | 347 + .../user/src/ets/pages/1.2/file384.ets | 474 + .../user/src/ets/pages/1.2/file385.ets | 500 + .../user/src/ets/pages/1.2/file386.ets | 256 + .../user/src/ets/pages/1.2/file387.ets | 479 + .../user/src/ets/pages/1.2/file388.ets | 327 + .../user/src/ets/pages/1.2/file389.ets | 383 + .../trivial/user/src/ets/pages/1.2/file39.ets | 389 + .../user/src/ets/pages/1.2/file390.ets | 397 + .../user/src/ets/pages/1.2/file391.ets | 477 + .../user/src/ets/pages/1.2/file392.ets | 331 + .../user/src/ets/pages/1.2/file393.ets | 536 + .../user/src/ets/pages/1.2/file394.ets | 310 + .../user/src/ets/pages/1.2/file395.ets | 365 + .../user/src/ets/pages/1.2/file396.ets | 421 + .../user/src/ets/pages/1.2/file397.ets | 417 + .../user/src/ets/pages/1.2/file398.ets | 379 + .../user/src/ets/pages/1.2/file399.ets | 418 + .../trivial/user/src/ets/pages/1.2/file4.ets | 296 + .../trivial/user/src/ets/pages/1.2/file40.ets | 476 + .../user/src/ets/pages/1.2/file400.ets | 375 + .../user/src/ets/pages/1.2/file401.ets | 423 + .../user/src/ets/pages/1.2/file402.ets | 429 + .../user/src/ets/pages/1.2/file403.ets | 355 + .../user/src/ets/pages/1.2/file404.ets | 465 + .../user/src/ets/pages/1.2/file405.ets | 353 + .../user/src/ets/pages/1.2/file406.ets | 388 + .../user/src/ets/pages/1.2/file407.ets | 415 + .../user/src/ets/pages/1.2/file408.ets | 398 + .../user/src/ets/pages/1.2/file409.ets | 409 + .../trivial/user/src/ets/pages/1.2/file41.ets | 362 + .../user/src/ets/pages/1.2/file410.ets | 410 + .../user/src/ets/pages/1.2/file411.ets | 413 + .../user/src/ets/pages/1.2/file412.ets | 379 + .../user/src/ets/pages/1.2/file413.ets | 437 + .../user/src/ets/pages/1.2/file414.ets | 451 + .../user/src/ets/pages/1.2/file415.ets | 319 + .../user/src/ets/pages/1.2/file416.ets | 411 + .../user/src/ets/pages/1.2/file417.ets | 464 + .../user/src/ets/pages/1.2/file418.ets | 338 + .../user/src/ets/pages/1.2/file419.ets | 503 + .../trivial/user/src/ets/pages/1.2/file42.ets | 388 + .../user/src/ets/pages/1.2/file420.ets | 344 + .../user/src/ets/pages/1.2/file421.ets | 455 + .../user/src/ets/pages/1.2/file422.ets | 350 + .../user/src/ets/pages/1.2/file423.ets | 387 + .../user/src/ets/pages/1.2/file424.ets | 436 + .../user/src/ets/pages/1.2/file425.ets | 357 + .../user/src/ets/pages/1.2/file426.ets | 451 + .../user/src/ets/pages/1.2/file427.ets | 498 + .../user/src/ets/pages/1.2/file428.ets | 264 + .../user/src/ets/pages/1.2/file429.ets | 425 + .../trivial/user/src/ets/pages/1.2/file43.ets | 414 + .../user/src/ets/pages/1.2/file430.ets | 502 + .../user/src/ets/pages/1.2/file431.ets | 277 + .../user/src/ets/pages/1.2/file432.ets | 392 + .../user/src/ets/pages/1.2/file433.ets | 434 + .../user/src/ets/pages/1.2/file434.ets | 373 + .../user/src/ets/pages/1.2/file435.ets | 409 + .../user/src/ets/pages/1.2/file436.ets | 402 + .../user/src/ets/pages/1.2/file437.ets | 438 + .../user/src/ets/pages/1.2/file438.ets | 373 + .../user/src/ets/pages/1.2/file439.ets | 393 + .../trivial/user/src/ets/pages/1.2/file44.ets | 379 + .../user/src/ets/pages/1.2/file440.ets | 401 + .../user/src/ets/pages/1.2/file441.ets | 421 + .../user/src/ets/pages/1.2/file442.ets | 404 + .../user/src/ets/pages/1.2/file443.ets | 386 + .../user/src/ets/pages/1.2/file444.ets | 456 + .../user/src/ets/pages/1.2/file445.ets | 376 + .../user/src/ets/pages/1.2/file446.ets | 474 + .../user/src/ets/pages/1.2/file447.ets | 316 + .../user/src/ets/pages/1.2/file448.ets | 460 + .../user/src/ets/pages/1.2/file449.ets | 379 + .../trivial/user/src/ets/pages/1.2/file45.ets | 394 + .../user/src/ets/pages/1.2/file450.ets | 355 + .../user/src/ets/pages/1.2/file451.ets | 418 + .../user/src/ets/pages/1.2/file452.ets | 455 + .../user/src/ets/pages/1.2/file453.ets | 352 + .../user/src/ets/pages/1.2/file454.ets | 397 + .../user/src/ets/pages/1.2/file455.ets | 407 + .../user/src/ets/pages/1.2/file456.ets | 406 + .../user/src/ets/pages/1.2/file457.ets | 406 + .../user/src/ets/pages/1.2/file458.ets | 388 + .../user/src/ets/pages/1.2/file459.ets | 447 + .../trivial/user/src/ets/pages/1.2/file46.ets | 415 + .../user/src/ets/pages/1.2/file460.ets | 405 + .../user/src/ets/pages/1.2/file461.ets | 363 + .../user/src/ets/pages/1.2/file462.ets | 409 + .../user/src/ets/pages/1.2/file463.ets | 390 + .../user/src/ets/pages/1.2/file464.ets | 427 + .../user/src/ets/pages/1.2/file465.ets | 443 + .../user/src/ets/pages/1.2/file466.ets | 360 + .../user/src/ets/pages/1.2/file467.ets | 475 + .../user/src/ets/pages/1.2/file468.ets | 376 + .../user/src/ets/pages/1.2/file469.ets | 383 + .../trivial/user/src/ets/pages/1.2/file47.ets | 406 + .../user/src/ets/pages/1.2/file470.ets | 380 + .../user/src/ets/pages/1.2/file471.ets | 378 + .../user/src/ets/pages/1.2/file472.ets | 435 + .../user/src/ets/pages/1.2/file473.ets | 400 + .../user/src/ets/pages/1.2/file474.ets | 371 + .../user/src/ets/pages/1.2/file475.ets | 453 + .../user/src/ets/pages/1.2/file476.ets | 408 + .../user/src/ets/pages/1.2/file477.ets | 385 + .../user/src/ets/pages/1.2/file478.ets | 413 + .../user/src/ets/pages/1.2/file479.ets | 376 + .../trivial/user/src/ets/pages/1.2/file48.ets | 439 + .../user/src/ets/pages/1.2/file480.ets | 390 + .../user/src/ets/pages/1.2/file481.ets | 446 + .../user/src/ets/pages/1.2/file482.ets | 359 + .../user/src/ets/pages/1.2/file483.ets | 413 + .../user/src/ets/pages/1.2/file484.ets | 426 + .../user/src/ets/pages/1.2/file485.ets | 391 + .../user/src/ets/pages/1.2/file486.ets | 390 + .../user/src/ets/pages/1.2/file487.ets | 402 + .../user/src/ets/pages/1.2/file488.ets | 389 + .../user/src/ets/pages/1.2/file489.ets | 493 + .../trivial/user/src/ets/pages/1.2/file49.ets | 353 + .../user/src/ets/pages/1.2/file490.ets | 343 + .../user/src/ets/pages/1.2/file491.ets | 401 + .../user/src/ets/pages/1.2/file492.ets | 385 + .../user/src/ets/pages/1.2/file493.ets | 421 + .../user/src/ets/pages/1.2/file494.ets | 411 + .../user/src/ets/pages/1.2/file495.ets | 383 + .../user/src/ets/pages/1.2/file496.ets | 386 + .../user/src/ets/pages/1.2/file497.ets | 450 + .../user/src/ets/pages/1.2/file498.ets | 361 + .../user/src/ets/pages/1.2/file499.ets | 472 + .../trivial/user/src/ets/pages/1.2/file5.ets | 408 + .../trivial/user/src/ets/pages/1.2/file50.ets | 425 + .../trivial/user/src/ets/pages/1.2/file51.ets | 405 + .../trivial/user/src/ets/pages/1.2/file52.ets | 428 + .../trivial/user/src/ets/pages/1.2/file53.ets | 380 + .../trivial/user/src/ets/pages/1.2/file54.ets | 381 + .../trivial/user/src/ets/pages/1.2/file55.ets | 429 + .../trivial/user/src/ets/pages/1.2/file56.ets | 372 + .../trivial/user/src/ets/pages/1.2/file57.ets | 412 + .../trivial/user/src/ets/pages/1.2/file58.ets | 418 + .../trivial/user/src/ets/pages/1.2/file59.ets | 417 + .../trivial/user/src/ets/pages/1.2/file6.ets | 482 + .../trivial/user/src/ets/pages/1.2/file60.ets | 372 + .../trivial/user/src/ets/pages/1.2/file61.ets | 423 + .../trivial/user/src/ets/pages/1.2/file62.ets | 423 + .../trivial/user/src/ets/pages/1.2/file63.ets | 390 + .../trivial/user/src/ets/pages/1.2/file64.ets | 376 + .../trivial/user/src/ets/pages/1.2/file65.ets | 417 + .../trivial/user/src/ets/pages/1.2/file66.ets | 419 + .../trivial/user/src/ets/pages/1.2/file67.ets | 421 + .../trivial/user/src/ets/pages/1.2/file68.ets | 392 + .../trivial/user/src/ets/pages/1.2/file69.ets | 445 + .../trivial/user/src/ets/pages/1.2/file7.ets | 333 + .../trivial/user/src/ets/pages/1.2/file70.ets | 362 + .../trivial/user/src/ets/pages/1.2/file71.ets | 405 + .../trivial/user/src/ets/pages/1.2/file72.ets | 415 + .../trivial/user/src/ets/pages/1.2/file73.ets | 394 + .../trivial/user/src/ets/pages/1.2/file74.ets | 429 + .../trivial/user/src/ets/pages/1.2/file75.ets | 337 + .../trivial/user/src/ets/pages/1.2/file76.ets | 396 + .../trivial/user/src/ets/pages/1.2/file77.ets | 404 + .../trivial/user/src/ets/pages/1.2/file78.ets | 486 + .../trivial/user/src/ets/pages/1.2/file79.ets | 358 + .../trivial/user/src/ets/pages/1.2/file8.ets | 401 + .../trivial/user/src/ets/pages/1.2/file80.ets | 405 + .../trivial/user/src/ets/pages/1.2/file81.ets | 374 + .../trivial/user/src/ets/pages/1.2/file82.ets | 411 + .../trivial/user/src/ets/pages/1.2/file83.ets | 482 + .../trivial/user/src/ets/pages/1.2/file84.ets | 313 + .../trivial/user/src/ets/pages/1.2/file85.ets | 418 + .../trivial/user/src/ets/pages/1.2/file86.ets | 453 + .../trivial/user/src/ets/pages/1.2/file87.ets | 341 + .../trivial/user/src/ets/pages/1.2/file88.ets | 397 + .../trivial/user/src/ets/pages/1.2/file89.ets | 400 + .../trivial/user/src/ets/pages/1.2/file9.ets | 390 + .../trivial/user/src/ets/pages/1.2/file90.ets | 515 + .../trivial/user/src/ets/pages/1.2/file91.ets | 357 + .../trivial/user/src/ets/pages/1.2/file92.ets | 351 + .../trivial/user/src/ets/pages/1.2/file93.ets | 384 + .../trivial/user/src/ets/pages/1.2/file94.ets | 408 + .../trivial/user/src/ets/pages/1.2/file95.ets | 437 + .../trivial/user/src/ets/pages/1.2/file96.ets | 459 + .../trivial/user/src/ets/pages/1.2/file97.ets | 376 + .../trivial/user/src/ets/pages/1.2/file98.ets | 378 + .../trivial/user/src/ets/pages/1.2/file99.ets | 374 + .../trivial/user/src/ets/pages/Index.ets | 35 + .../user/src/ets/pages/builtinComponents.ets | 20037 +++++++++++++++ .../user/src/ets/pages/customComponents1.ets | 18956 +++++++++++++++ .../user/src/ets/pages/customComponents2.ets | 18973 +++++++++++++++ .../pages/manyImportFiles/manyImportFile1.ets | 20 + .../manyImportFiles/manyImportFile10.ets | 20 + .../manyImportFiles/manyImportFile100.ets | 20 + .../manyImportFiles/manyImportFile1000.ets | 18 + .../manyImportFiles/manyImportFile1001.ets | 16 + .../manyImportFiles/manyImportFile1002.ets | 16 + .../manyImportFiles/manyImportFile1003.ets | 16 + .../manyImportFiles/manyImportFile1004.ets | 16 + .../manyImportFiles/manyImportFile1005.ets | 16 + .../manyImportFiles/manyImportFile1006.ets | 16 + .../manyImportFiles/manyImportFile1007.ets | 16 + .../manyImportFiles/manyImportFile1008.ets | 16 + .../manyImportFiles/manyImportFile1009.ets | 16 + .../manyImportFiles/manyImportFile101.ets | 20 + .../manyImportFiles/manyImportFile1010.ets | 16 + .../manyImportFiles/manyImportFile1011.ets | 16 + .../manyImportFiles/manyImportFile1012.ets | 16 + .../manyImportFiles/manyImportFile1013.ets | 16 + .../manyImportFiles/manyImportFile1014.ets | 16 + .../manyImportFiles/manyImportFile1015.ets | 16 + .../manyImportFiles/manyImportFile1016.ets | 16 + .../manyImportFiles/manyImportFile1017.ets | 16 + .../manyImportFiles/manyImportFile1018.ets | 16 + .../manyImportFiles/manyImportFile1019.ets | 16 + .../manyImportFiles/manyImportFile102.ets | 20 + .../manyImportFiles/manyImportFile1020.ets | 16 + .../manyImportFiles/manyImportFile1021.ets | 16 + .../manyImportFiles/manyImportFile1022.ets | 16 + .../manyImportFiles/manyImportFile1023.ets | 16 + .../manyImportFiles/manyImportFile1024.ets | 16 + .../manyImportFiles/manyImportFile1025.ets | 16 + .../manyImportFiles/manyImportFile1026.ets | 16 + .../manyImportFiles/manyImportFile1027.ets | 16 + .../manyImportFiles/manyImportFile1028.ets | 16 + .../manyImportFiles/manyImportFile1029.ets | 16 + .../manyImportFiles/manyImportFile103.ets | 20 + .../manyImportFiles/manyImportFile1030.ets | 16 + .../manyImportFiles/manyImportFile1031.ets | 16 + .../manyImportFiles/manyImportFile1032.ets | 16 + .../manyImportFiles/manyImportFile1033.ets | 16 + .../manyImportFiles/manyImportFile1034.ets | 16 + .../manyImportFiles/manyImportFile1035.ets | 16 + .../manyImportFiles/manyImportFile1036.ets | 16 + .../manyImportFiles/manyImportFile1037.ets | 16 + .../manyImportFiles/manyImportFile1038.ets | 16 + .../manyImportFiles/manyImportFile1039.ets | 16 + .../manyImportFiles/manyImportFile104.ets | 20 + .../manyImportFiles/manyImportFile1040.ets | 16 + .../manyImportFiles/manyImportFile1041.ets | 16 + .../manyImportFiles/manyImportFile1042.ets | 16 + .../manyImportFiles/manyImportFile1043.ets | 16 + .../manyImportFiles/manyImportFile1044.ets | 16 + .../manyImportFiles/manyImportFile1045.ets | 16 + .../manyImportFiles/manyImportFile1046.ets | 16 + .../manyImportFiles/manyImportFile1047.ets | 16 + .../manyImportFiles/manyImportFile1048.ets | 16 + .../manyImportFiles/manyImportFile1049.ets | 16 + .../manyImportFiles/manyImportFile105.ets | 20 + .../manyImportFiles/manyImportFile1050.ets | 16 + .../manyImportFiles/manyImportFile1051.ets | 16 + .../manyImportFiles/manyImportFile1052.ets | 16 + .../manyImportFiles/manyImportFile1053.ets | 16 + .../manyImportFiles/manyImportFile1054.ets | 16 + .../manyImportFiles/manyImportFile1055.ets | 16 + .../manyImportFiles/manyImportFile1056.ets | 16 + .../manyImportFiles/manyImportFile1057.ets | 16 + .../manyImportFiles/manyImportFile1058.ets | 16 + .../manyImportFiles/manyImportFile1059.ets | 16 + .../manyImportFiles/manyImportFile106.ets | 20 + .../manyImportFiles/manyImportFile1060.ets | 16 + .../manyImportFiles/manyImportFile1061.ets | 16 + .../manyImportFiles/manyImportFile1062.ets | 16 + .../manyImportFiles/manyImportFile1063.ets | 16 + .../manyImportFiles/manyImportFile1064.ets | 16 + .../manyImportFiles/manyImportFile1065.ets | 16 + .../manyImportFiles/manyImportFile1066.ets | 16 + .../manyImportFiles/manyImportFile1067.ets | 16 + .../manyImportFiles/manyImportFile1068.ets | 16 + .../manyImportFiles/manyImportFile1069.ets | 16 + .../manyImportFiles/manyImportFile107.ets | 20 + .../manyImportFiles/manyImportFile1070.ets | 16 + .../manyImportFiles/manyImportFile1071.ets | 16 + .../manyImportFiles/manyImportFile1072.ets | 16 + .../manyImportFiles/manyImportFile1073.ets | 16 + .../manyImportFiles/manyImportFile1074.ets | 16 + .../manyImportFiles/manyImportFile1075.ets | 16 + .../manyImportFiles/manyImportFile1076.ets | 16 + .../manyImportFiles/manyImportFile1077.ets | 16 + .../manyImportFiles/manyImportFile1078.ets | 16 + .../manyImportFiles/manyImportFile1079.ets | 16 + .../manyImportFiles/manyImportFile108.ets | 20 + .../manyImportFiles/manyImportFile1080.ets | 16 + .../manyImportFiles/manyImportFile1081.ets | 16 + .../manyImportFiles/manyImportFile1082.ets | 16 + .../manyImportFiles/manyImportFile1083.ets | 16 + .../manyImportFiles/manyImportFile1084.ets | 16 + .../manyImportFiles/manyImportFile1085.ets | 16 + .../manyImportFiles/manyImportFile1086.ets | 16 + .../manyImportFiles/manyImportFile1087.ets | 16 + .../manyImportFiles/manyImportFile1088.ets | 16 + .../manyImportFiles/manyImportFile1089.ets | 16 + .../manyImportFiles/manyImportFile109.ets | 20 + .../manyImportFiles/manyImportFile1090.ets | 16 + .../manyImportFiles/manyImportFile1091.ets | 16 + .../manyImportFiles/manyImportFile1092.ets | 16 + .../manyImportFiles/manyImportFile1093.ets | 16 + .../manyImportFiles/manyImportFile1094.ets | 16 + .../manyImportFiles/manyImportFile1095.ets | 16 + .../manyImportFiles/manyImportFile1096.ets | 16 + .../manyImportFiles/manyImportFile1097.ets | 16 + .../manyImportFiles/manyImportFile1098.ets | 16 + .../manyImportFiles/manyImportFile1099.ets | 16 + .../manyImportFiles/manyImportFile11.ets | 20 + .../manyImportFiles/manyImportFile110.ets | 20 + .../manyImportFiles/manyImportFile1100.ets | 16 + .../manyImportFiles/manyImportFile1101.ets | 16 + .../manyImportFiles/manyImportFile1102.ets | 16 + .../manyImportFiles/manyImportFile1103.ets | 16 + .../manyImportFiles/manyImportFile1104.ets | 16 + .../manyImportFiles/manyImportFile1105.ets | 16 + .../manyImportFiles/manyImportFile1106.ets | 16 + .../manyImportFiles/manyImportFile1107.ets | 16 + .../manyImportFiles/manyImportFile1108.ets | 16 + .../manyImportFiles/manyImportFile1109.ets | 16 + .../manyImportFiles/manyImportFile111.ets | 20 + .../manyImportFiles/manyImportFile1110.ets | 16 + .../manyImportFiles/manyImportFile1111.ets | 16 + .../manyImportFiles/manyImportFile1112.ets | 16 + .../manyImportFiles/manyImportFile1113.ets | 16 + .../manyImportFiles/manyImportFile1114.ets | 16 + .../manyImportFiles/manyImportFile1115.ets | 16 + .../manyImportFiles/manyImportFile1116.ets | 16 + .../manyImportFiles/manyImportFile1117.ets | 16 + .../manyImportFiles/manyImportFile1118.ets | 16 + .../manyImportFiles/manyImportFile1119.ets | 16 + .../manyImportFiles/manyImportFile112.ets | 20 + .../manyImportFiles/manyImportFile1120.ets | 16 + .../manyImportFiles/manyImportFile1121.ets | 16 + .../manyImportFiles/manyImportFile1122.ets | 16 + .../manyImportFiles/manyImportFile1123.ets | 16 + .../manyImportFiles/manyImportFile1124.ets | 16 + .../manyImportFiles/manyImportFile1125.ets | 16 + .../manyImportFiles/manyImportFile1126.ets | 16 + .../manyImportFiles/manyImportFile1127.ets | 16 + .../manyImportFiles/manyImportFile1128.ets | 16 + .../manyImportFiles/manyImportFile1129.ets | 16 + .../manyImportFiles/manyImportFile113.ets | 20 + .../manyImportFiles/manyImportFile1130.ets | 16 + .../manyImportFiles/manyImportFile1131.ets | 16 + .../manyImportFiles/manyImportFile1132.ets | 16 + .../manyImportFiles/manyImportFile1133.ets | 16 + .../manyImportFiles/manyImportFile1134.ets | 16 + .../manyImportFiles/manyImportFile1135.ets | 16 + .../manyImportFiles/manyImportFile1136.ets | 16 + .../manyImportFiles/manyImportFile1137.ets | 16 + .../manyImportFiles/manyImportFile1138.ets | 16 + .../manyImportFiles/manyImportFile1139.ets | 16 + .../manyImportFiles/manyImportFile114.ets | 20 + .../manyImportFiles/manyImportFile1140.ets | 16 + .../manyImportFiles/manyImportFile1141.ets | 16 + .../manyImportFiles/manyImportFile1142.ets | 16 + .../manyImportFiles/manyImportFile1143.ets | 16 + .../manyImportFiles/manyImportFile1144.ets | 16 + .../manyImportFiles/manyImportFile1145.ets | 16 + .../manyImportFiles/manyImportFile1146.ets | 16 + .../manyImportFiles/manyImportFile1147.ets | 16 + .../manyImportFiles/manyImportFile1148.ets | 16 + .../manyImportFiles/manyImportFile1149.ets | 16 + .../manyImportFiles/manyImportFile115.ets | 20 + .../manyImportFiles/manyImportFile1150.ets | 16 + .../manyImportFiles/manyImportFile1151.ets | 16 + .../manyImportFiles/manyImportFile1152.ets | 16 + .../manyImportFiles/manyImportFile1153.ets | 16 + .../manyImportFiles/manyImportFile1154.ets | 16 + .../manyImportFiles/manyImportFile1155.ets | 16 + .../manyImportFiles/manyImportFile1156.ets | 16 + .../manyImportFiles/manyImportFile1157.ets | 16 + .../manyImportFiles/manyImportFile1158.ets | 16 + .../manyImportFiles/manyImportFile1159.ets | 16 + .../manyImportFiles/manyImportFile116.ets | 20 + .../manyImportFiles/manyImportFile1160.ets | 16 + .../manyImportFiles/manyImportFile1161.ets | 16 + .../manyImportFiles/manyImportFile1162.ets | 16 + .../manyImportFiles/manyImportFile1163.ets | 16 + .../manyImportFiles/manyImportFile1164.ets | 16 + .../manyImportFiles/manyImportFile1165.ets | 16 + .../manyImportFiles/manyImportFile1166.ets | 16 + .../manyImportFiles/manyImportFile1167.ets | 16 + .../manyImportFiles/manyImportFile1168.ets | 16 + .../manyImportFiles/manyImportFile1169.ets | 16 + .../manyImportFiles/manyImportFile117.ets | 20 + .../manyImportFiles/manyImportFile1170.ets | 16 + .../manyImportFiles/manyImportFile1171.ets | 16 + .../manyImportFiles/manyImportFile1172.ets | 16 + .../manyImportFiles/manyImportFile1173.ets | 16 + .../manyImportFiles/manyImportFile1174.ets | 16 + .../manyImportFiles/manyImportFile1175.ets | 16 + .../manyImportFiles/manyImportFile1176.ets | 16 + .../manyImportFiles/manyImportFile1177.ets | 16 + .../manyImportFiles/manyImportFile1178.ets | 16 + .../manyImportFiles/manyImportFile1179.ets | 16 + .../manyImportFiles/manyImportFile118.ets | 20 + .../manyImportFiles/manyImportFile1180.ets | 16 + .../manyImportFiles/manyImportFile1181.ets | 16 + .../manyImportFiles/manyImportFile1182.ets | 16 + .../manyImportFiles/manyImportFile1183.ets | 16 + .../manyImportFiles/manyImportFile1184.ets | 16 + .../manyImportFiles/manyImportFile1185.ets | 16 + .../manyImportFiles/manyImportFile1186.ets | 16 + .../manyImportFiles/manyImportFile1187.ets | 16 + .../manyImportFiles/manyImportFile1188.ets | 16 + .../manyImportFiles/manyImportFile1189.ets | 16 + .../manyImportFiles/manyImportFile119.ets | 20 + .../manyImportFiles/manyImportFile1190.ets | 16 + .../manyImportFiles/manyImportFile1191.ets | 16 + .../manyImportFiles/manyImportFile1192.ets | 16 + .../manyImportFiles/manyImportFile1193.ets | 16 + .../manyImportFiles/manyImportFile1194.ets | 16 + .../manyImportFiles/manyImportFile1195.ets | 16 + .../manyImportFiles/manyImportFile1196.ets | 16 + .../manyImportFiles/manyImportFile1197.ets | 16 + .../manyImportFiles/manyImportFile1198.ets | 16 + .../manyImportFiles/manyImportFile1199.ets | 16 + .../manyImportFiles/manyImportFile12.ets | 20 + .../manyImportFiles/manyImportFile120.ets | 20 + .../manyImportFiles/manyImportFile1200.ets | 16 + .../manyImportFiles/manyImportFile1201.ets | 16 + .../manyImportFiles/manyImportFile1202.ets | 16 + .../manyImportFiles/manyImportFile1203.ets | 16 + .../manyImportFiles/manyImportFile1204.ets | 16 + .../manyImportFiles/manyImportFile1205.ets | 16 + .../manyImportFiles/manyImportFile1206.ets | 16 + .../manyImportFiles/manyImportFile1207.ets | 16 + .../manyImportFiles/manyImportFile1208.ets | 16 + .../manyImportFiles/manyImportFile1209.ets | 16 + .../manyImportFiles/manyImportFile121.ets | 20 + .../manyImportFiles/manyImportFile1210.ets | 16 + .../manyImportFiles/manyImportFile1211.ets | 16 + .../manyImportFiles/manyImportFile1212.ets | 16 + .../manyImportFiles/manyImportFile1213.ets | 16 + .../manyImportFiles/manyImportFile1214.ets | 16 + .../manyImportFiles/manyImportFile1215.ets | 16 + .../manyImportFiles/manyImportFile1216.ets | 16 + .../manyImportFiles/manyImportFile1217.ets | 16 + .../manyImportFiles/manyImportFile1218.ets | 16 + .../manyImportFiles/manyImportFile1219.ets | 16 + .../manyImportFiles/manyImportFile122.ets | 20 + .../manyImportFiles/manyImportFile1220.ets | 16 + .../manyImportFiles/manyImportFile1221.ets | 16 + .../manyImportFiles/manyImportFile1222.ets | 16 + .../manyImportFiles/manyImportFile1223.ets | 16 + .../manyImportFiles/manyImportFile1224.ets | 16 + .../manyImportFiles/manyImportFile1225.ets | 16 + .../manyImportFiles/manyImportFile1226.ets | 16 + .../manyImportFiles/manyImportFile1227.ets | 16 + .../manyImportFiles/manyImportFile1228.ets | 16 + .../manyImportFiles/manyImportFile1229.ets | 16 + .../manyImportFiles/manyImportFile123.ets | 20 + .../manyImportFiles/manyImportFile1230.ets | 16 + .../manyImportFiles/manyImportFile1231.ets | 16 + .../manyImportFiles/manyImportFile1232.ets | 16 + .../manyImportFiles/manyImportFile1233.ets | 16 + .../manyImportFiles/manyImportFile1234.ets | 16 + .../manyImportFiles/manyImportFile1235.ets | 16 + .../manyImportFiles/manyImportFile1236.ets | 16 + .../manyImportFiles/manyImportFile1237.ets | 16 + .../manyImportFiles/manyImportFile1238.ets | 16 + .../manyImportFiles/manyImportFile1239.ets | 16 + .../manyImportFiles/manyImportFile124.ets | 20 + .../manyImportFiles/manyImportFile1240.ets | 16 + .../manyImportFiles/manyImportFile1241.ets | 16 + .../manyImportFiles/manyImportFile1242.ets | 16 + .../manyImportFiles/manyImportFile1243.ets | 16 + .../manyImportFiles/manyImportFile1244.ets | 16 + .../manyImportFiles/manyImportFile1245.ets | 16 + .../manyImportFiles/manyImportFile1246.ets | 16 + .../manyImportFiles/manyImportFile1247.ets | 16 + .../manyImportFiles/manyImportFile1248.ets | 16 + .../manyImportFiles/manyImportFile1249.ets | 16 + .../manyImportFiles/manyImportFile125.ets | 20 + .../manyImportFiles/manyImportFile1250.ets | 16 + .../manyImportFiles/manyImportFile1251.ets | 16 + .../manyImportFiles/manyImportFile1252.ets | 16 + .../manyImportFiles/manyImportFile1253.ets | 16 + .../manyImportFiles/manyImportFile1254.ets | 16 + .../manyImportFiles/manyImportFile1255.ets | 16 + .../manyImportFiles/manyImportFile1256.ets | 16 + .../manyImportFiles/manyImportFile1257.ets | 16 + .../manyImportFiles/manyImportFile1258.ets | 16 + .../manyImportFiles/manyImportFile1259.ets | 16 + .../manyImportFiles/manyImportFile126.ets | 20 + .../manyImportFiles/manyImportFile1260.ets | 16 + .../manyImportFiles/manyImportFile1261.ets | 16 + .../manyImportFiles/manyImportFile1262.ets | 16 + .../manyImportFiles/manyImportFile1263.ets | 16 + .../manyImportFiles/manyImportFile1264.ets | 16 + .../manyImportFiles/manyImportFile1265.ets | 16 + .../manyImportFiles/manyImportFile1266.ets | 16 + .../manyImportFiles/manyImportFile1267.ets | 16 + .../manyImportFiles/manyImportFile1268.ets | 16 + .../manyImportFiles/manyImportFile1269.ets | 16 + .../manyImportFiles/manyImportFile127.ets | 20 + .../manyImportFiles/manyImportFile1270.ets | 16 + .../manyImportFiles/manyImportFile1271.ets | 16 + .../manyImportFiles/manyImportFile1272.ets | 16 + .../manyImportFiles/manyImportFile1273.ets | 16 + .../manyImportFiles/manyImportFile1274.ets | 16 + .../manyImportFiles/manyImportFile1275.ets | 16 + .../manyImportFiles/manyImportFile1276.ets | 16 + .../manyImportFiles/manyImportFile1277.ets | 16 + .../manyImportFiles/manyImportFile1278.ets | 16 + .../manyImportFiles/manyImportFile1279.ets | 16 + .../manyImportFiles/manyImportFile128.ets | 20 + .../manyImportFiles/manyImportFile1280.ets | 16 + .../manyImportFiles/manyImportFile1281.ets | 16 + .../manyImportFiles/manyImportFile1282.ets | 16 + .../manyImportFiles/manyImportFile1283.ets | 16 + .../manyImportFiles/manyImportFile1284.ets | 16 + .../manyImportFiles/manyImportFile1285.ets | 16 + .../manyImportFiles/manyImportFile1286.ets | 16 + .../manyImportFiles/manyImportFile1287.ets | 16 + .../manyImportFiles/manyImportFile1288.ets | 16 + .../manyImportFiles/manyImportFile1289.ets | 16 + .../manyImportFiles/manyImportFile129.ets | 20 + .../manyImportFiles/manyImportFile1290.ets | 16 + .../manyImportFiles/manyImportFile1291.ets | 16 + .../manyImportFiles/manyImportFile1292.ets | 16 + .../manyImportFiles/manyImportFile1293.ets | 16 + .../manyImportFiles/manyImportFile1294.ets | 16 + .../manyImportFiles/manyImportFile1295.ets | 16 + .../manyImportFiles/manyImportFile1296.ets | 16 + .../manyImportFiles/manyImportFile1297.ets | 16 + .../manyImportFiles/manyImportFile1298.ets | 16 + .../manyImportFiles/manyImportFile1299.ets | 16 + .../manyImportFiles/manyImportFile13.ets | 20 + .../manyImportFiles/manyImportFile130.ets | 20 + .../manyImportFiles/manyImportFile1300.ets | 16 + .../manyImportFiles/manyImportFile1301.ets | 16 + .../manyImportFiles/manyImportFile1302.ets | 16 + .../manyImportFiles/manyImportFile1303.ets | 16 + .../manyImportFiles/manyImportFile1304.ets | 16 + .../manyImportFiles/manyImportFile1305.ets | 16 + .../manyImportFiles/manyImportFile1306.ets | 16 + .../manyImportFiles/manyImportFile1307.ets | 16 + .../manyImportFiles/manyImportFile1308.ets | 16 + .../manyImportFiles/manyImportFile1309.ets | 16 + .../manyImportFiles/manyImportFile131.ets | 20 + .../manyImportFiles/manyImportFile1310.ets | 16 + .../manyImportFiles/manyImportFile1311.ets | 16 + .../manyImportFiles/manyImportFile1312.ets | 16 + .../manyImportFiles/manyImportFile1313.ets | 16 + .../manyImportFiles/manyImportFile1314.ets | 16 + .../manyImportFiles/manyImportFile1315.ets | 16 + .../manyImportFiles/manyImportFile1316.ets | 16 + .../manyImportFiles/manyImportFile1317.ets | 16 + .../manyImportFiles/manyImportFile1318.ets | 16 + .../manyImportFiles/manyImportFile1319.ets | 16 + .../manyImportFiles/manyImportFile132.ets | 20 + .../manyImportFiles/manyImportFile1320.ets | 16 + .../manyImportFiles/manyImportFile1321.ets | 16 + .../manyImportFiles/manyImportFile1322.ets | 16 + .../manyImportFiles/manyImportFile1323.ets | 16 + .../manyImportFiles/manyImportFile1324.ets | 16 + .../manyImportFiles/manyImportFile1325.ets | 16 + .../manyImportFiles/manyImportFile1326.ets | 16 + .../manyImportFiles/manyImportFile1327.ets | 16 + .../manyImportFiles/manyImportFile1328.ets | 16 + .../manyImportFiles/manyImportFile1329.ets | 16 + .../manyImportFiles/manyImportFile133.ets | 20 + .../manyImportFiles/manyImportFile1330.ets | 16 + .../manyImportFiles/manyImportFile1331.ets | 16 + .../manyImportFiles/manyImportFile1332.ets | 16 + .../manyImportFiles/manyImportFile1333.ets | 16 + .../manyImportFiles/manyImportFile1334.ets | 16 + .../manyImportFiles/manyImportFile1335.ets | 16 + .../manyImportFiles/manyImportFile1336.ets | 16 + .../manyImportFiles/manyImportFile1337.ets | 16 + .../manyImportFiles/manyImportFile1338.ets | 16 + .../manyImportFiles/manyImportFile1339.ets | 16 + .../manyImportFiles/manyImportFile134.ets | 20 + .../manyImportFiles/manyImportFile1340.ets | 16 + .../manyImportFiles/manyImportFile1341.ets | 16 + .../manyImportFiles/manyImportFile1342.ets | 16 + .../manyImportFiles/manyImportFile1343.ets | 16 + .../manyImportFiles/manyImportFile1344.ets | 16 + .../manyImportFiles/manyImportFile1345.ets | 16 + .../manyImportFiles/manyImportFile1346.ets | 16 + .../manyImportFiles/manyImportFile1347.ets | 16 + .../manyImportFiles/manyImportFile1348.ets | 16 + .../manyImportFiles/manyImportFile1349.ets | 16 + .../manyImportFiles/manyImportFile135.ets | 20 + .../manyImportFiles/manyImportFile1350.ets | 16 + .../manyImportFiles/manyImportFile1351.ets | 16 + .../manyImportFiles/manyImportFile1352.ets | 16 + .../manyImportFiles/manyImportFile1353.ets | 16 + .../manyImportFiles/manyImportFile1354.ets | 16 + .../manyImportFiles/manyImportFile1355.ets | 16 + .../manyImportFiles/manyImportFile1356.ets | 16 + .../manyImportFiles/manyImportFile1357.ets | 16 + .../manyImportFiles/manyImportFile1358.ets | 16 + .../manyImportFiles/manyImportFile1359.ets | 16 + .../manyImportFiles/manyImportFile136.ets | 20 + .../manyImportFiles/manyImportFile1360.ets | 16 + .../manyImportFiles/manyImportFile1361.ets | 16 + .../manyImportFiles/manyImportFile1362.ets | 16 + .../manyImportFiles/manyImportFile1363.ets | 16 + .../manyImportFiles/manyImportFile1364.ets | 16 + .../manyImportFiles/manyImportFile1365.ets | 16 + .../manyImportFiles/manyImportFile1366.ets | 16 + .../manyImportFiles/manyImportFile1367.ets | 16 + .../manyImportFiles/manyImportFile1368.ets | 16 + .../manyImportFiles/manyImportFile1369.ets | 16 + .../manyImportFiles/manyImportFile137.ets | 20 + .../manyImportFiles/manyImportFile1370.ets | 16 + .../manyImportFiles/manyImportFile1371.ets | 16 + .../manyImportFiles/manyImportFile1372.ets | 16 + .../manyImportFiles/manyImportFile1373.ets | 16 + .../manyImportFiles/manyImportFile1374.ets | 16 + .../manyImportFiles/manyImportFile1375.ets | 16 + .../manyImportFiles/manyImportFile1376.ets | 16 + .../manyImportFiles/manyImportFile1377.ets | 16 + .../manyImportFiles/manyImportFile1378.ets | 16 + .../manyImportFiles/manyImportFile1379.ets | 16 + .../manyImportFiles/manyImportFile138.ets | 20 + .../manyImportFiles/manyImportFile1380.ets | 16 + .../manyImportFiles/manyImportFile1381.ets | 16 + .../manyImportFiles/manyImportFile1382.ets | 16 + .../manyImportFiles/manyImportFile1383.ets | 16 + .../manyImportFiles/manyImportFile1384.ets | 16 + .../manyImportFiles/manyImportFile1385.ets | 16 + .../manyImportFiles/manyImportFile1386.ets | 16 + .../manyImportFiles/manyImportFile1387.ets | 16 + .../manyImportFiles/manyImportFile1388.ets | 16 + .../manyImportFiles/manyImportFile1389.ets | 16 + .../manyImportFiles/manyImportFile139.ets | 20 + .../manyImportFiles/manyImportFile1390.ets | 16 + .../manyImportFiles/manyImportFile1391.ets | 16 + .../manyImportFiles/manyImportFile1392.ets | 16 + .../manyImportFiles/manyImportFile1393.ets | 16 + .../manyImportFiles/manyImportFile1394.ets | 16 + .../manyImportFiles/manyImportFile1395.ets | 16 + .../manyImportFiles/manyImportFile1396.ets | 16 + .../manyImportFiles/manyImportFile1397.ets | 16 + .../manyImportFiles/manyImportFile1398.ets | 16 + .../manyImportFiles/manyImportFile1399.ets | 16 + .../manyImportFiles/manyImportFile14.ets | 20 + .../manyImportFiles/manyImportFile140.ets | 20 + .../manyImportFiles/manyImportFile1400.ets | 16 + .../manyImportFiles/manyImportFile1401.ets | 16 + .../manyImportFiles/manyImportFile1402.ets | 16 + .../manyImportFiles/manyImportFile1403.ets | 16 + .../manyImportFiles/manyImportFile1404.ets | 16 + .../manyImportFiles/manyImportFile1405.ets | 16 + .../manyImportFiles/manyImportFile1406.ets | 16 + .../manyImportFiles/manyImportFile1407.ets | 16 + .../manyImportFiles/manyImportFile1408.ets | 16 + .../manyImportFiles/manyImportFile1409.ets | 16 + .../manyImportFiles/manyImportFile141.ets | 20 + .../manyImportFiles/manyImportFile1410.ets | 16 + .../manyImportFiles/manyImportFile1411.ets | 16 + .../manyImportFiles/manyImportFile1412.ets | 16 + .../manyImportFiles/manyImportFile1413.ets | 16 + .../manyImportFiles/manyImportFile1414.ets | 16 + .../manyImportFiles/manyImportFile1415.ets | 16 + .../manyImportFiles/manyImportFile1416.ets | 16 + .../manyImportFiles/manyImportFile1417.ets | 16 + .../manyImportFiles/manyImportFile1418.ets | 16 + .../manyImportFiles/manyImportFile1419.ets | 16 + .../manyImportFiles/manyImportFile142.ets | 20 + .../manyImportFiles/manyImportFile1420.ets | 16 + .../manyImportFiles/manyImportFile1421.ets | 16 + .../manyImportFiles/manyImportFile1422.ets | 16 + .../manyImportFiles/manyImportFile1423.ets | 16 + .../manyImportFiles/manyImportFile1424.ets | 16 + .../manyImportFiles/manyImportFile1425.ets | 16 + .../manyImportFiles/manyImportFile1426.ets | 16 + .../manyImportFiles/manyImportFile1427.ets | 16 + .../manyImportFiles/manyImportFile1428.ets | 16 + .../manyImportFiles/manyImportFile1429.ets | 16 + .../manyImportFiles/manyImportFile143.ets | 20 + .../manyImportFiles/manyImportFile1430.ets | 16 + .../manyImportFiles/manyImportFile1431.ets | 16 + .../manyImportFiles/manyImportFile1432.ets | 16 + .../manyImportFiles/manyImportFile1433.ets | 16 + .../manyImportFiles/manyImportFile1434.ets | 16 + .../manyImportFiles/manyImportFile1435.ets | 16 + .../manyImportFiles/manyImportFile1436.ets | 16 + .../manyImportFiles/manyImportFile1437.ets | 16 + .../manyImportFiles/manyImportFile1438.ets | 16 + .../manyImportFiles/manyImportFile1439.ets | 16 + .../manyImportFiles/manyImportFile144.ets | 20 + .../manyImportFiles/manyImportFile1440.ets | 16 + .../manyImportFiles/manyImportFile1441.ets | 16 + .../manyImportFiles/manyImportFile1442.ets | 16 + .../manyImportFiles/manyImportFile1443.ets | 16 + .../manyImportFiles/manyImportFile1444.ets | 16 + .../manyImportFiles/manyImportFile1445.ets | 16 + .../manyImportFiles/manyImportFile1446.ets | 16 + .../manyImportFiles/manyImportFile1447.ets | 16 + .../manyImportFiles/manyImportFile1448.ets | 16 + .../manyImportFiles/manyImportFile1449.ets | 16 + .../manyImportFiles/manyImportFile145.ets | 20 + .../manyImportFiles/manyImportFile1450.ets | 16 + .../manyImportFiles/manyImportFile1451.ets | 16 + .../manyImportFiles/manyImportFile1452.ets | 16 + .../manyImportFiles/manyImportFile1453.ets | 16 + .../manyImportFiles/manyImportFile1454.ets | 16 + .../manyImportFiles/manyImportFile1455.ets | 16 + .../manyImportFiles/manyImportFile1456.ets | 16 + .../manyImportFiles/manyImportFile1457.ets | 16 + .../manyImportFiles/manyImportFile1458.ets | 16 + .../manyImportFiles/manyImportFile1459.ets | 16 + .../manyImportFiles/manyImportFile146.ets | 20 + .../manyImportFiles/manyImportFile1460.ets | 16 + .../manyImportFiles/manyImportFile1461.ets | 16 + .../manyImportFiles/manyImportFile1462.ets | 16 + .../manyImportFiles/manyImportFile1463.ets | 16 + .../manyImportFiles/manyImportFile1464.ets | 16 + .../manyImportFiles/manyImportFile1465.ets | 16 + .../manyImportFiles/manyImportFile1466.ets | 16 + .../manyImportFiles/manyImportFile1467.ets | 16 + .../manyImportFiles/manyImportFile1468.ets | 16 + .../manyImportFiles/manyImportFile1469.ets | 16 + .../manyImportFiles/manyImportFile147.ets | 20 + .../manyImportFiles/manyImportFile1470.ets | 16 + .../manyImportFiles/manyImportFile1471.ets | 16 + .../manyImportFiles/manyImportFile1472.ets | 16 + .../manyImportFiles/manyImportFile1473.ets | 16 + .../manyImportFiles/manyImportFile1474.ets | 16 + .../manyImportFiles/manyImportFile1475.ets | 16 + .../manyImportFiles/manyImportFile1476.ets | 16 + .../manyImportFiles/manyImportFile1477.ets | 16 + .../manyImportFiles/manyImportFile1478.ets | 16 + .../manyImportFiles/manyImportFile1479.ets | 16 + .../manyImportFiles/manyImportFile148.ets | 20 + .../manyImportFiles/manyImportFile1480.ets | 16 + .../manyImportFiles/manyImportFile1481.ets | 16 + .../manyImportFiles/manyImportFile1482.ets | 16 + .../manyImportFiles/manyImportFile1483.ets | 16 + .../manyImportFiles/manyImportFile1484.ets | 16 + .../manyImportFiles/manyImportFile1485.ets | 16 + .../manyImportFiles/manyImportFile1486.ets | 16 + .../manyImportFiles/manyImportFile1487.ets | 16 + .../manyImportFiles/manyImportFile1488.ets | 16 + .../manyImportFiles/manyImportFile1489.ets | 16 + .../manyImportFiles/manyImportFile149.ets | 20 + .../manyImportFiles/manyImportFile1490.ets | 16 + .../manyImportFiles/manyImportFile1491.ets | 16 + .../manyImportFiles/manyImportFile1492.ets | 16 + .../manyImportFiles/manyImportFile1493.ets | 16 + .../manyImportFiles/manyImportFile1494.ets | 16 + .../manyImportFiles/manyImportFile1495.ets | 16 + .../manyImportFiles/manyImportFile1496.ets | 16 + .../manyImportFiles/manyImportFile1497.ets | 16 + .../manyImportFiles/manyImportFile1498.ets | 16 + .../manyImportFiles/manyImportFile1499.ets | 16 + .../manyImportFiles/manyImportFile15.ets | 20 + .../manyImportFiles/manyImportFile150.ets | 20 + .../manyImportFiles/manyImportFile1500.ets | 16 + .../manyImportFiles/manyImportFile1501.ets | 16 + .../manyImportFiles/manyImportFile1502.ets | 16 + .../manyImportFiles/manyImportFile1503.ets | 16 + .../manyImportFiles/manyImportFile1504.ets | 16 + .../manyImportFiles/manyImportFile1505.ets | 16 + .../manyImportFiles/manyImportFile1506.ets | 16 + .../manyImportFiles/manyImportFile1507.ets | 16 + .../manyImportFiles/manyImportFile1508.ets | 16 + .../manyImportFiles/manyImportFile1509.ets | 16 + .../manyImportFiles/manyImportFile151.ets | 20 + .../manyImportFiles/manyImportFile1510.ets | 16 + .../manyImportFiles/manyImportFile1511.ets | 16 + .../manyImportFiles/manyImportFile1512.ets | 16 + .../manyImportFiles/manyImportFile1513.ets | 16 + .../manyImportFiles/manyImportFile1514.ets | 16 + .../manyImportFiles/manyImportFile1515.ets | 16 + .../manyImportFiles/manyImportFile1516.ets | 16 + .../manyImportFiles/manyImportFile1517.ets | 16 + .../manyImportFiles/manyImportFile1518.ets | 16 + .../manyImportFiles/manyImportFile1519.ets | 16 + .../manyImportFiles/manyImportFile152.ets | 20 + .../manyImportFiles/manyImportFile1520.ets | 16 + .../manyImportFiles/manyImportFile1521.ets | 16 + .../manyImportFiles/manyImportFile1522.ets | 16 + .../manyImportFiles/manyImportFile1523.ets | 16 + .../manyImportFiles/manyImportFile1524.ets | 16 + .../manyImportFiles/manyImportFile1525.ets | 16 + .../manyImportFiles/manyImportFile1526.ets | 16 + .../manyImportFiles/manyImportFile1527.ets | 16 + .../manyImportFiles/manyImportFile1528.ets | 16 + .../manyImportFiles/manyImportFile1529.ets | 16 + .../manyImportFiles/manyImportFile153.ets | 20 + .../manyImportFiles/manyImportFile1530.ets | 16 + .../manyImportFiles/manyImportFile1531.ets | 16 + .../manyImportFiles/manyImportFile1532.ets | 16 + .../manyImportFiles/manyImportFile1533.ets | 16 + .../manyImportFiles/manyImportFile1534.ets | 16 + .../manyImportFiles/manyImportFile1535.ets | 16 + .../manyImportFiles/manyImportFile1536.ets | 16 + .../manyImportFiles/manyImportFile1537.ets | 16 + .../manyImportFiles/manyImportFile1538.ets | 16 + .../manyImportFiles/manyImportFile1539.ets | 16 + .../manyImportFiles/manyImportFile154.ets | 20 + .../manyImportFiles/manyImportFile1540.ets | 16 + .../manyImportFiles/manyImportFile1541.ets | 16 + .../manyImportFiles/manyImportFile1542.ets | 16 + .../manyImportFiles/manyImportFile1543.ets | 16 + .../manyImportFiles/manyImportFile1544.ets | 16 + .../manyImportFiles/manyImportFile1545.ets | 16 + .../manyImportFiles/manyImportFile1546.ets | 16 + .../manyImportFiles/manyImportFile1547.ets | 16 + .../manyImportFiles/manyImportFile1548.ets | 16 + .../manyImportFiles/manyImportFile1549.ets | 16 + .../manyImportFiles/manyImportFile155.ets | 20 + .../manyImportFiles/manyImportFile1550.ets | 16 + .../manyImportFiles/manyImportFile1551.ets | 16 + .../manyImportFiles/manyImportFile1552.ets | 16 + .../manyImportFiles/manyImportFile1553.ets | 16 + .../manyImportFiles/manyImportFile1554.ets | 16 + .../manyImportFiles/manyImportFile1555.ets | 16 + .../manyImportFiles/manyImportFile1556.ets | 16 + .../manyImportFiles/manyImportFile1557.ets | 16 + .../manyImportFiles/manyImportFile1558.ets | 16 + .../manyImportFiles/manyImportFile1559.ets | 16 + .../manyImportFiles/manyImportFile156.ets | 20 + .../manyImportFiles/manyImportFile1560.ets | 16 + .../manyImportFiles/manyImportFile1561.ets | 16 + .../manyImportFiles/manyImportFile1562.ets | 16 + .../manyImportFiles/manyImportFile1563.ets | 16 + .../manyImportFiles/manyImportFile1564.ets | 16 + .../manyImportFiles/manyImportFile1565.ets | 16 + .../manyImportFiles/manyImportFile1566.ets | 16 + .../manyImportFiles/manyImportFile1567.ets | 16 + .../manyImportFiles/manyImportFile1568.ets | 16 + .../manyImportFiles/manyImportFile1569.ets | 16 + .../manyImportFiles/manyImportFile157.ets | 20 + .../manyImportFiles/manyImportFile1570.ets | 16 + .../manyImportFiles/manyImportFile1571.ets | 16 + .../manyImportFiles/manyImportFile1572.ets | 16 + .../manyImportFiles/manyImportFile1573.ets | 16 + .../manyImportFiles/manyImportFile1574.ets | 16 + .../manyImportFiles/manyImportFile1575.ets | 16 + .../manyImportFiles/manyImportFile1576.ets | 16 + .../manyImportFiles/manyImportFile1577.ets | 16 + .../manyImportFiles/manyImportFile1578.ets | 16 + .../manyImportFiles/manyImportFile1579.ets | 16 + .../manyImportFiles/manyImportFile158.ets | 20 + .../manyImportFiles/manyImportFile1580.ets | 16 + .../manyImportFiles/manyImportFile1581.ets | 16 + .../manyImportFiles/manyImportFile1582.ets | 16 + .../manyImportFiles/manyImportFile1583.ets | 16 + .../manyImportFiles/manyImportFile1584.ets | 16 + .../manyImportFiles/manyImportFile1585.ets | 16 + .../manyImportFiles/manyImportFile1586.ets | 16 + .../manyImportFiles/manyImportFile1587.ets | 16 + .../manyImportFiles/manyImportFile1588.ets | 16 + .../manyImportFiles/manyImportFile1589.ets | 16 + .../manyImportFiles/manyImportFile159.ets | 20 + .../manyImportFiles/manyImportFile1590.ets | 16 + .../manyImportFiles/manyImportFile1591.ets | 16 + .../manyImportFiles/manyImportFile1592.ets | 16 + .../manyImportFiles/manyImportFile1593.ets | 16 + .../manyImportFiles/manyImportFile1594.ets | 16 + .../manyImportFiles/manyImportFile1595.ets | 16 + .../manyImportFiles/manyImportFile1596.ets | 16 + .../manyImportFiles/manyImportFile1597.ets | 16 + .../manyImportFiles/manyImportFile1598.ets | 16 + .../manyImportFiles/manyImportFile1599.ets | 16 + .../manyImportFiles/manyImportFile16.ets | 20 + .../manyImportFiles/manyImportFile160.ets | 20 + .../manyImportFiles/manyImportFile1600.ets | 16 + .../manyImportFiles/manyImportFile1601.ets | 16 + .../manyImportFiles/manyImportFile1602.ets | 16 + .../manyImportFiles/manyImportFile1603.ets | 16 + .../manyImportFiles/manyImportFile1604.ets | 16 + .../manyImportFiles/manyImportFile1605.ets | 16 + .../manyImportFiles/manyImportFile1606.ets | 16 + .../manyImportFiles/manyImportFile1607.ets | 16 + .../manyImportFiles/manyImportFile1608.ets | 16 + .../manyImportFiles/manyImportFile1609.ets | 16 + .../manyImportFiles/manyImportFile161.ets | 20 + .../manyImportFiles/manyImportFile1610.ets | 16 + .../manyImportFiles/manyImportFile1611.ets | 16 + .../manyImportFiles/manyImportFile1612.ets | 16 + .../manyImportFiles/manyImportFile1613.ets | 16 + .../manyImportFiles/manyImportFile1614.ets | 16 + .../manyImportFiles/manyImportFile1615.ets | 16 + .../manyImportFiles/manyImportFile1616.ets | 16 + .../manyImportFiles/manyImportFile1617.ets | 16 + .../manyImportFiles/manyImportFile1618.ets | 16 + .../manyImportFiles/manyImportFile1619.ets | 16 + .../manyImportFiles/manyImportFile162.ets | 20 + .../manyImportFiles/manyImportFile1620.ets | 16 + .../manyImportFiles/manyImportFile1621.ets | 16 + .../manyImportFiles/manyImportFile1622.ets | 16 + .../manyImportFiles/manyImportFile1623.ets | 16 + .../manyImportFiles/manyImportFile1624.ets | 16 + .../manyImportFiles/manyImportFile1625.ets | 16 + .../manyImportFiles/manyImportFile1626.ets | 16 + .../manyImportFiles/manyImportFile1627.ets | 16 + .../manyImportFiles/manyImportFile1628.ets | 16 + .../manyImportFiles/manyImportFile1629.ets | 16 + .../manyImportFiles/manyImportFile163.ets | 20 + .../manyImportFiles/manyImportFile1630.ets | 16 + .../manyImportFiles/manyImportFile1631.ets | 16 + .../manyImportFiles/manyImportFile1632.ets | 16 + .../manyImportFiles/manyImportFile1633.ets | 16 + .../manyImportFiles/manyImportFile1634.ets | 16 + .../manyImportFiles/manyImportFile1635.ets | 16 + .../manyImportFiles/manyImportFile1636.ets | 16 + .../manyImportFiles/manyImportFile1637.ets | 16 + .../manyImportFiles/manyImportFile1638.ets | 16 + .../manyImportFiles/manyImportFile1639.ets | 16 + .../manyImportFiles/manyImportFile164.ets | 20 + .../manyImportFiles/manyImportFile1640.ets | 16 + .../manyImportFiles/manyImportFile1641.ets | 16 + .../manyImportFiles/manyImportFile1642.ets | 16 + .../manyImportFiles/manyImportFile1643.ets | 16 + .../manyImportFiles/manyImportFile1644.ets | 16 + .../manyImportFiles/manyImportFile1645.ets | 16 + .../manyImportFiles/manyImportFile1646.ets | 16 + .../manyImportFiles/manyImportFile1647.ets | 16 + .../manyImportFiles/manyImportFile1648.ets | 16 + .../manyImportFiles/manyImportFile1649.ets | 16 + .../manyImportFiles/manyImportFile165.ets | 20 + .../manyImportFiles/manyImportFile1650.ets | 16 + .../manyImportFiles/manyImportFile1651.ets | 16 + .../manyImportFiles/manyImportFile1652.ets | 16 + .../manyImportFiles/manyImportFile1653.ets | 16 + .../manyImportFiles/manyImportFile1654.ets | 16 + .../manyImportFiles/manyImportFile1655.ets | 16 + .../manyImportFiles/manyImportFile1656.ets | 16 + .../manyImportFiles/manyImportFile1657.ets | 16 + .../manyImportFiles/manyImportFile1658.ets | 16 + .../manyImportFiles/manyImportFile1659.ets | 16 + .../manyImportFiles/manyImportFile166.ets | 20 + .../manyImportFiles/manyImportFile1660.ets | 16 + .../manyImportFiles/manyImportFile1661.ets | 16 + .../manyImportFiles/manyImportFile1662.ets | 16 + .../manyImportFiles/manyImportFile1663.ets | 16 + .../manyImportFiles/manyImportFile1664.ets | 16 + .../manyImportFiles/manyImportFile1665.ets | 16 + .../manyImportFiles/manyImportFile1666.ets | 16 + .../manyImportFiles/manyImportFile1667.ets | 16 + .../manyImportFiles/manyImportFile1668.ets | 16 + .../manyImportFiles/manyImportFile1669.ets | 16 + .../manyImportFiles/manyImportFile167.ets | 20 + .../manyImportFiles/manyImportFile1670.ets | 16 + .../manyImportFiles/manyImportFile1671.ets | 16 + .../manyImportFiles/manyImportFile1672.ets | 16 + .../manyImportFiles/manyImportFile1673.ets | 16 + .../manyImportFiles/manyImportFile1674.ets | 16 + .../manyImportFiles/manyImportFile1675.ets | 16 + .../manyImportFiles/manyImportFile1676.ets | 16 + .../manyImportFiles/manyImportFile1677.ets | 16 + .../manyImportFiles/manyImportFile1678.ets | 16 + .../manyImportFiles/manyImportFile1679.ets | 16 + .../manyImportFiles/manyImportFile168.ets | 20 + .../manyImportFiles/manyImportFile1680.ets | 16 + .../manyImportFiles/manyImportFile1681.ets | 16 + .../manyImportFiles/manyImportFile1682.ets | 16 + .../manyImportFiles/manyImportFile1683.ets | 16 + .../manyImportFiles/manyImportFile1684.ets | 16 + .../manyImportFiles/manyImportFile1685.ets | 16 + .../manyImportFiles/manyImportFile1686.ets | 16 + .../manyImportFiles/manyImportFile1687.ets | 16 + .../manyImportFiles/manyImportFile1688.ets | 16 + .../manyImportFiles/manyImportFile1689.ets | 16 + .../manyImportFiles/manyImportFile169.ets | 20 + .../manyImportFiles/manyImportFile1690.ets | 16 + .../manyImportFiles/manyImportFile1691.ets | 16 + .../manyImportFiles/manyImportFile1692.ets | 16 + .../manyImportFiles/manyImportFile1693.ets | 16 + .../manyImportFiles/manyImportFile1694.ets | 16 + .../manyImportFiles/manyImportFile1695.ets | 16 + .../manyImportFiles/manyImportFile1696.ets | 16 + .../manyImportFiles/manyImportFile1697.ets | 16 + .../manyImportFiles/manyImportFile1698.ets | 16 + .../manyImportFiles/manyImportFile1699.ets | 16 + .../manyImportFiles/manyImportFile17.ets | 20 + .../manyImportFiles/manyImportFile170.ets | 20 + .../manyImportFiles/manyImportFile1700.ets | 16 + .../manyImportFiles/manyImportFile1701.ets | 16 + .../manyImportFiles/manyImportFile1702.ets | 16 + .../manyImportFiles/manyImportFile1703.ets | 16 + .../manyImportFiles/manyImportFile1704.ets | 16 + .../manyImportFiles/manyImportFile1705.ets | 16 + .../manyImportFiles/manyImportFile1706.ets | 16 + .../manyImportFiles/manyImportFile1707.ets | 16 + .../manyImportFiles/manyImportFile1708.ets | 16 + .../manyImportFiles/manyImportFile1709.ets | 16 + .../manyImportFiles/manyImportFile171.ets | 20 + .../manyImportFiles/manyImportFile1710.ets | 16 + .../manyImportFiles/manyImportFile1711.ets | 16 + .../manyImportFiles/manyImportFile1712.ets | 16 + .../manyImportFiles/manyImportFile1713.ets | 16 + .../manyImportFiles/manyImportFile1714.ets | 16 + .../manyImportFiles/manyImportFile1715.ets | 16 + .../manyImportFiles/manyImportFile1716.ets | 16 + .../manyImportFiles/manyImportFile1717.ets | 16 + .../manyImportFiles/manyImportFile1718.ets | 16 + .../manyImportFiles/manyImportFile1719.ets | 16 + .../manyImportFiles/manyImportFile172.ets | 20 + .../manyImportFiles/manyImportFile1720.ets | 16 + .../manyImportFiles/manyImportFile1721.ets | 16 + .../manyImportFiles/manyImportFile1722.ets | 16 + .../manyImportFiles/manyImportFile1723.ets | 16 + .../manyImportFiles/manyImportFile1724.ets | 16 + .../manyImportFiles/manyImportFile1725.ets | 16 + .../manyImportFiles/manyImportFile1726.ets | 16 + .../manyImportFiles/manyImportFile1727.ets | 16 + .../manyImportFiles/manyImportFile1728.ets | 16 + .../manyImportFiles/manyImportFile1729.ets | 16 + .../manyImportFiles/manyImportFile173.ets | 20 + .../manyImportFiles/manyImportFile1730.ets | 16 + .../manyImportFiles/manyImportFile1731.ets | 16 + .../manyImportFiles/manyImportFile1732.ets | 16 + .../manyImportFiles/manyImportFile1733.ets | 16 + .../manyImportFiles/manyImportFile1734.ets | 16 + .../manyImportFiles/manyImportFile1735.ets | 16 + .../manyImportFiles/manyImportFile1736.ets | 16 + .../manyImportFiles/manyImportFile1737.ets | 16 + .../manyImportFiles/manyImportFile1738.ets | 16 + .../manyImportFiles/manyImportFile1739.ets | 16 + .../manyImportFiles/manyImportFile174.ets | 20 + .../manyImportFiles/manyImportFile1740.ets | 16 + .../manyImportFiles/manyImportFile1741.ets | 16 + .../manyImportFiles/manyImportFile1742.ets | 16 + .../manyImportFiles/manyImportFile1743.ets | 16 + .../manyImportFiles/manyImportFile1744.ets | 16 + .../manyImportFiles/manyImportFile1745.ets | 16 + .../manyImportFiles/manyImportFile1746.ets | 16 + .../manyImportFiles/manyImportFile1747.ets | 16 + .../manyImportFiles/manyImportFile1748.ets | 16 + .../manyImportFiles/manyImportFile1749.ets | 16 + .../manyImportFiles/manyImportFile175.ets | 20 + .../manyImportFiles/manyImportFile1750.ets | 16 + .../manyImportFiles/manyImportFile1751.ets | 16 + .../manyImportFiles/manyImportFile1752.ets | 16 + .../manyImportFiles/manyImportFile1753.ets | 16 + .../manyImportFiles/manyImportFile1754.ets | 16 + .../manyImportFiles/manyImportFile1755.ets | 16 + .../manyImportFiles/manyImportFile1756.ets | 16 + .../manyImportFiles/manyImportFile1757.ets | 16 + .../manyImportFiles/manyImportFile1758.ets | 16 + .../manyImportFiles/manyImportFile1759.ets | 16 + .../manyImportFiles/manyImportFile176.ets | 20 + .../manyImportFiles/manyImportFile1760.ets | 16 + .../manyImportFiles/manyImportFile1761.ets | 16 + .../manyImportFiles/manyImportFile1762.ets | 16 + .../manyImportFiles/manyImportFile1763.ets | 16 + .../manyImportFiles/manyImportFile1764.ets | 16 + .../manyImportFiles/manyImportFile1765.ets | 16 + .../manyImportFiles/manyImportFile1766.ets | 16 + .../manyImportFiles/manyImportFile1767.ets | 16 + .../manyImportFiles/manyImportFile1768.ets | 16 + .../manyImportFiles/manyImportFile1769.ets | 16 + .../manyImportFiles/manyImportFile177.ets | 20 + .../manyImportFiles/manyImportFile1770.ets | 16 + .../manyImportFiles/manyImportFile1771.ets | 16 + .../manyImportFiles/manyImportFile1772.ets | 16 + .../manyImportFiles/manyImportFile1773.ets | 16 + .../manyImportFiles/manyImportFile1774.ets | 16 + .../manyImportFiles/manyImportFile1775.ets | 16 + .../manyImportFiles/manyImportFile1776.ets | 16 + .../manyImportFiles/manyImportFile1777.ets | 16 + .../manyImportFiles/manyImportFile1778.ets | 16 + .../manyImportFiles/manyImportFile1779.ets | 16 + .../manyImportFiles/manyImportFile178.ets | 20 + .../manyImportFiles/manyImportFile1780.ets | 16 + .../manyImportFiles/manyImportFile1781.ets | 16 + .../manyImportFiles/manyImportFile1782.ets | 16 + .../manyImportFiles/manyImportFile1783.ets | 16 + .../manyImportFiles/manyImportFile1784.ets | 16 + .../manyImportFiles/manyImportFile1785.ets | 16 + .../manyImportFiles/manyImportFile1786.ets | 16 + .../manyImportFiles/manyImportFile1787.ets | 16 + .../manyImportFiles/manyImportFile1788.ets | 16 + .../manyImportFiles/manyImportFile1789.ets | 16 + .../manyImportFiles/manyImportFile179.ets | 20 + .../manyImportFiles/manyImportFile1790.ets | 16 + .../manyImportFiles/manyImportFile1791.ets | 16 + .../manyImportFiles/manyImportFile1792.ets | 16 + .../manyImportFiles/manyImportFile1793.ets | 16 + .../manyImportFiles/manyImportFile1794.ets | 16 + .../manyImportFiles/manyImportFile1795.ets | 16 + .../manyImportFiles/manyImportFile1796.ets | 16 + .../manyImportFiles/manyImportFile1797.ets | 16 + .../manyImportFiles/manyImportFile1798.ets | 16 + .../manyImportFiles/manyImportFile1799.ets | 16 + .../manyImportFiles/manyImportFile18.ets | 20 + .../manyImportFiles/manyImportFile180.ets | 20 + .../manyImportFiles/manyImportFile1800.ets | 16 + .../manyImportFiles/manyImportFile1801.ets | 16 + .../manyImportFiles/manyImportFile1802.ets | 16 + .../manyImportFiles/manyImportFile1803.ets | 16 + .../manyImportFiles/manyImportFile1804.ets | 16 + .../manyImportFiles/manyImportFile1805.ets | 16 + .../manyImportFiles/manyImportFile1806.ets | 16 + .../manyImportFiles/manyImportFile1807.ets | 16 + .../manyImportFiles/manyImportFile1808.ets | 16 + .../manyImportFiles/manyImportFile1809.ets | 16 + .../manyImportFiles/manyImportFile181.ets | 20 + .../manyImportFiles/manyImportFile1810.ets | 16 + .../manyImportFiles/manyImportFile1811.ets | 16 + .../manyImportFiles/manyImportFile1812.ets | 16 + .../manyImportFiles/manyImportFile1813.ets | 16 + .../manyImportFiles/manyImportFile1814.ets | 16 + .../manyImportFiles/manyImportFile1815.ets | 16 + .../manyImportFiles/manyImportFile1816.ets | 16 + .../manyImportFiles/manyImportFile1817.ets | 16 + .../manyImportFiles/manyImportFile1818.ets | 16 + .../manyImportFiles/manyImportFile1819.ets | 16 + .../manyImportFiles/manyImportFile182.ets | 20 + .../manyImportFiles/manyImportFile1820.ets | 16 + .../manyImportFiles/manyImportFile1821.ets | 16 + .../manyImportFiles/manyImportFile1822.ets | 16 + .../manyImportFiles/manyImportFile1823.ets | 16 + .../manyImportFiles/manyImportFile1824.ets | 16 + .../manyImportFiles/manyImportFile1825.ets | 16 + .../manyImportFiles/manyImportFile1826.ets | 16 + .../manyImportFiles/manyImportFile1827.ets | 16 + .../manyImportFiles/manyImportFile1828.ets | 16 + .../manyImportFiles/manyImportFile1829.ets | 16 + .../manyImportFiles/manyImportFile183.ets | 20 + .../manyImportFiles/manyImportFile1830.ets | 16 + .../manyImportFiles/manyImportFile1831.ets | 16 + .../manyImportFiles/manyImportFile1832.ets | 16 + .../manyImportFiles/manyImportFile1833.ets | 16 + .../manyImportFiles/manyImportFile1834.ets | 16 + .../manyImportFiles/manyImportFile1835.ets | 16 + .../manyImportFiles/manyImportFile1836.ets | 16 + .../manyImportFiles/manyImportFile1837.ets | 16 + .../manyImportFiles/manyImportFile1838.ets | 16 + .../manyImportFiles/manyImportFile1839.ets | 16 + .../manyImportFiles/manyImportFile184.ets | 20 + .../manyImportFiles/manyImportFile1840.ets | 16 + .../manyImportFiles/manyImportFile1841.ets | 16 + .../manyImportFiles/manyImportFile1842.ets | 16 + .../manyImportFiles/manyImportFile1843.ets | 16 + .../manyImportFiles/manyImportFile1844.ets | 16 + .../manyImportFiles/manyImportFile1845.ets | 16 + .../manyImportFiles/manyImportFile1846.ets | 16 + .../manyImportFiles/manyImportFile1847.ets | 16 + .../manyImportFiles/manyImportFile1848.ets | 16 + .../manyImportFiles/manyImportFile1849.ets | 16 + .../manyImportFiles/manyImportFile185.ets | 20 + .../manyImportFiles/manyImportFile1850.ets | 16 + .../manyImportFiles/manyImportFile1851.ets | 16 + .../manyImportFiles/manyImportFile1852.ets | 16 + .../manyImportFiles/manyImportFile1853.ets | 16 + .../manyImportFiles/manyImportFile1854.ets | 16 + .../manyImportFiles/manyImportFile1855.ets | 16 + .../manyImportFiles/manyImportFile1856.ets | 16 + .../manyImportFiles/manyImportFile1857.ets | 16 + .../manyImportFiles/manyImportFile1858.ets | 16 + .../manyImportFiles/manyImportFile1859.ets | 16 + .../manyImportFiles/manyImportFile186.ets | 20 + .../manyImportFiles/manyImportFile1860.ets | 16 + .../manyImportFiles/manyImportFile1861.ets | 16 + .../manyImportFiles/manyImportFile1862.ets | 16 + .../manyImportFiles/manyImportFile1863.ets | 16 + .../manyImportFiles/manyImportFile1864.ets | 16 + .../manyImportFiles/manyImportFile1865.ets | 16 + .../manyImportFiles/manyImportFile1866.ets | 16 + .../manyImportFiles/manyImportFile1867.ets | 16 + .../manyImportFiles/manyImportFile1868.ets | 16 + .../manyImportFiles/manyImportFile1869.ets | 16 + .../manyImportFiles/manyImportFile187.ets | 20 + .../manyImportFiles/manyImportFile1870.ets | 16 + .../manyImportFiles/manyImportFile1871.ets | 16 + .../manyImportFiles/manyImportFile1872.ets | 16 + .../manyImportFiles/manyImportFile1873.ets | 16 + .../manyImportFiles/manyImportFile1874.ets | 16 + .../manyImportFiles/manyImportFile1875.ets | 16 + .../manyImportFiles/manyImportFile1876.ets | 16 + .../manyImportFiles/manyImportFile1877.ets | 16 + .../manyImportFiles/manyImportFile1878.ets | 16 + .../manyImportFiles/manyImportFile1879.ets | 16 + .../manyImportFiles/manyImportFile188.ets | 20 + .../manyImportFiles/manyImportFile1880.ets | 16 + .../manyImportFiles/manyImportFile1881.ets | 16 + .../manyImportFiles/manyImportFile1882.ets | 16 + .../manyImportFiles/manyImportFile1883.ets | 16 + .../manyImportFiles/manyImportFile1884.ets | 16 + .../manyImportFiles/manyImportFile1885.ets | 16 + .../manyImportFiles/manyImportFile1886.ets | 16 + .../manyImportFiles/manyImportFile1887.ets | 16 + .../manyImportFiles/manyImportFile1888.ets | 16 + .../manyImportFiles/manyImportFile1889.ets | 16 + .../manyImportFiles/manyImportFile189.ets | 20 + .../manyImportFiles/manyImportFile1890.ets | 16 + .../manyImportFiles/manyImportFile1891.ets | 16 + .../manyImportFiles/manyImportFile1892.ets | 16 + .../manyImportFiles/manyImportFile1893.ets | 16 + .../manyImportFiles/manyImportFile1894.ets | 16 + .../manyImportFiles/manyImportFile1895.ets | 16 + .../manyImportFiles/manyImportFile1896.ets | 16 + .../manyImportFiles/manyImportFile1897.ets | 16 + .../manyImportFiles/manyImportFile1898.ets | 16 + .../manyImportFiles/manyImportFile1899.ets | 16 + .../manyImportFiles/manyImportFile19.ets | 20 + .../manyImportFiles/manyImportFile190.ets | 20 + .../manyImportFiles/manyImportFile1900.ets | 16 + .../manyImportFiles/manyImportFile1901.ets | 16 + .../manyImportFiles/manyImportFile1902.ets | 16 + .../manyImportFiles/manyImportFile1903.ets | 16 + .../manyImportFiles/manyImportFile1904.ets | 16 + .../manyImportFiles/manyImportFile1905.ets | 16 + .../manyImportFiles/manyImportFile1906.ets | 16 + .../manyImportFiles/manyImportFile1907.ets | 16 + .../manyImportFiles/manyImportFile1908.ets | 16 + .../manyImportFiles/manyImportFile1909.ets | 16 + .../manyImportFiles/manyImportFile191.ets | 20 + .../manyImportFiles/manyImportFile1910.ets | 16 + .../manyImportFiles/manyImportFile1911.ets | 16 + .../manyImportFiles/manyImportFile1912.ets | 16 + .../manyImportFiles/manyImportFile1913.ets | 16 + .../manyImportFiles/manyImportFile1914.ets | 16 + .../manyImportFiles/manyImportFile1915.ets | 16 + .../manyImportFiles/manyImportFile1916.ets | 16 + .../manyImportFiles/manyImportFile1917.ets | 16 + .../manyImportFiles/manyImportFile1918.ets | 16 + .../manyImportFiles/manyImportFile1919.ets | 16 + .../manyImportFiles/manyImportFile192.ets | 20 + .../manyImportFiles/manyImportFile1920.ets | 16 + .../manyImportFiles/manyImportFile1921.ets | 16 + .../manyImportFiles/manyImportFile1922.ets | 16 + .../manyImportFiles/manyImportFile1923.ets | 16 + .../manyImportFiles/manyImportFile1924.ets | 16 + .../manyImportFiles/manyImportFile1925.ets | 16 + .../manyImportFiles/manyImportFile1926.ets | 16 + .../manyImportFiles/manyImportFile1927.ets | 16 + .../manyImportFiles/manyImportFile1928.ets | 16 + .../manyImportFiles/manyImportFile1929.ets | 16 + .../manyImportFiles/manyImportFile193.ets | 20 + .../manyImportFiles/manyImportFile1930.ets | 16 + .../manyImportFiles/manyImportFile1931.ets | 16 + .../manyImportFiles/manyImportFile1932.ets | 16 + .../manyImportFiles/manyImportFile1933.ets | 16 + .../manyImportFiles/manyImportFile1934.ets | 16 + .../manyImportFiles/manyImportFile1935.ets | 16 + .../manyImportFiles/manyImportFile1936.ets | 16 + .../manyImportFiles/manyImportFile1937.ets | 16 + .../manyImportFiles/manyImportFile1938.ets | 16 + .../manyImportFiles/manyImportFile1939.ets | 16 + .../manyImportFiles/manyImportFile194.ets | 20 + .../manyImportFiles/manyImportFile1940.ets | 16 + .../manyImportFiles/manyImportFile1941.ets | 16 + .../manyImportFiles/manyImportFile1942.ets | 16 + .../manyImportFiles/manyImportFile1943.ets | 16 + .../manyImportFiles/manyImportFile1944.ets | 16 + .../manyImportFiles/manyImportFile1945.ets | 16 + .../manyImportFiles/manyImportFile1946.ets | 16 + .../manyImportFiles/manyImportFile1947.ets | 16 + .../manyImportFiles/manyImportFile1948.ets | 16 + .../manyImportFiles/manyImportFile1949.ets | 16 + .../manyImportFiles/manyImportFile195.ets | 20 + .../manyImportFiles/manyImportFile1950.ets | 16 + .../manyImportFiles/manyImportFile1951.ets | 16 + .../manyImportFiles/manyImportFile1952.ets | 16 + .../manyImportFiles/manyImportFile1953.ets | 16 + .../manyImportFiles/manyImportFile1954.ets | 16 + .../manyImportFiles/manyImportFile1955.ets | 16 + .../manyImportFiles/manyImportFile1956.ets | 16 + .../manyImportFiles/manyImportFile1957.ets | 16 + .../manyImportFiles/manyImportFile1958.ets | 16 + .../manyImportFiles/manyImportFile1959.ets | 16 + .../manyImportFiles/manyImportFile196.ets | 20 + .../manyImportFiles/manyImportFile1960.ets | 16 + .../manyImportFiles/manyImportFile1961.ets | 16 + .../manyImportFiles/manyImportFile1962.ets | 16 + .../manyImportFiles/manyImportFile1963.ets | 16 + .../manyImportFiles/manyImportFile1964.ets | 16 + .../manyImportFiles/manyImportFile1965.ets | 16 + .../manyImportFiles/manyImportFile1966.ets | 16 + .../manyImportFiles/manyImportFile1967.ets | 16 + .../manyImportFiles/manyImportFile1968.ets | 16 + .../manyImportFiles/manyImportFile1969.ets | 16 + .../manyImportFiles/manyImportFile197.ets | 20 + .../manyImportFiles/manyImportFile1970.ets | 16 + .../manyImportFiles/manyImportFile1971.ets | 16 + .../manyImportFiles/manyImportFile1972.ets | 16 + .../manyImportFiles/manyImportFile1973.ets | 16 + .../manyImportFiles/manyImportFile1974.ets | 16 + .../manyImportFiles/manyImportFile1975.ets | 16 + .../manyImportFiles/manyImportFile1976.ets | 16 + .../manyImportFiles/manyImportFile1977.ets | 16 + .../manyImportFiles/manyImportFile1978.ets | 16 + .../manyImportFiles/manyImportFile1979.ets | 16 + .../manyImportFiles/manyImportFile198.ets | 20 + .../manyImportFiles/manyImportFile1980.ets | 16 + .../manyImportFiles/manyImportFile1981.ets | 16 + .../manyImportFiles/manyImportFile1982.ets | 16 + .../manyImportFiles/manyImportFile1983.ets | 16 + .../manyImportFiles/manyImportFile1984.ets | 16 + .../manyImportFiles/manyImportFile1985.ets | 16 + .../manyImportFiles/manyImportFile1986.ets | 16 + .../manyImportFiles/manyImportFile1987.ets | 16 + .../manyImportFiles/manyImportFile1988.ets | 16 + .../manyImportFiles/manyImportFile1989.ets | 16 + .../manyImportFiles/manyImportFile199.ets | 20 + .../manyImportFiles/manyImportFile1990.ets | 16 + .../manyImportFiles/manyImportFile1991.ets | 16 + .../manyImportFiles/manyImportFile1992.ets | 16 + .../manyImportFiles/manyImportFile1993.ets | 16 + .../manyImportFiles/manyImportFile1994.ets | 16 + .../manyImportFiles/manyImportFile1995.ets | 16 + .../manyImportFiles/manyImportFile1996.ets | 16 + .../manyImportFiles/manyImportFile1997.ets | 16 + .../manyImportFiles/manyImportFile1998.ets | 16 + .../manyImportFiles/manyImportFile1999.ets | 16 + .../pages/manyImportFiles/manyImportFile2.ets | 20 + .../manyImportFiles/manyImportFile20.ets | 20 + .../manyImportFiles/manyImportFile200.ets | 20 + .../manyImportFiles/manyImportFile2000.ets | 16 + .../manyImportFiles/manyImportFile201.ets | 20 + .../manyImportFiles/manyImportFile202.ets | 20 + .../manyImportFiles/manyImportFile203.ets | 20 + .../manyImportFiles/manyImportFile204.ets | 20 + .../manyImportFiles/manyImportFile205.ets | 20 + .../manyImportFiles/manyImportFile206.ets | 20 + .../manyImportFiles/manyImportFile207.ets | 20 + .../manyImportFiles/manyImportFile208.ets | 20 + .../manyImportFiles/manyImportFile209.ets | 20 + .../manyImportFiles/manyImportFile21.ets | 20 + .../manyImportFiles/manyImportFile210.ets | 20 + .../manyImportFiles/manyImportFile211.ets | 20 + .../manyImportFiles/manyImportFile212.ets | 20 + .../manyImportFiles/manyImportFile213.ets | 20 + .../manyImportFiles/manyImportFile214.ets | 20 + .../manyImportFiles/manyImportFile215.ets | 20 + .../manyImportFiles/manyImportFile216.ets | 20 + .../manyImportFiles/manyImportFile217.ets | 20 + .../manyImportFiles/manyImportFile218.ets | 20 + .../manyImportFiles/manyImportFile219.ets | 20 + .../manyImportFiles/manyImportFile22.ets | 20 + .../manyImportFiles/manyImportFile220.ets | 20 + .../manyImportFiles/manyImportFile221.ets | 20 + .../manyImportFiles/manyImportFile222.ets | 20 + .../manyImportFiles/manyImportFile223.ets | 20 + .../manyImportFiles/manyImportFile224.ets | 20 + .../manyImportFiles/manyImportFile225.ets | 20 + .../manyImportFiles/manyImportFile226.ets | 20 + .../manyImportFiles/manyImportFile227.ets | 20 + .../manyImportFiles/manyImportFile228.ets | 20 + .../manyImportFiles/manyImportFile229.ets | 20 + .../manyImportFiles/manyImportFile23.ets | 20 + .../manyImportFiles/manyImportFile230.ets | 20 + .../manyImportFiles/manyImportFile231.ets | 20 + .../manyImportFiles/manyImportFile232.ets | 20 + .../manyImportFiles/manyImportFile233.ets | 20 + .../manyImportFiles/manyImportFile234.ets | 20 + .../manyImportFiles/manyImportFile235.ets | 20 + .../manyImportFiles/manyImportFile236.ets | 20 + .../manyImportFiles/manyImportFile237.ets | 20 + .../manyImportFiles/manyImportFile238.ets | 20 + .../manyImportFiles/manyImportFile239.ets | 20 + .../manyImportFiles/manyImportFile24.ets | 20 + .../manyImportFiles/manyImportFile240.ets | 20 + .../manyImportFiles/manyImportFile241.ets | 20 + .../manyImportFiles/manyImportFile242.ets | 20 + .../manyImportFiles/manyImportFile243.ets | 20 + .../manyImportFiles/manyImportFile244.ets | 20 + .../manyImportFiles/manyImportFile245.ets | 20 + .../manyImportFiles/manyImportFile246.ets | 20 + .../manyImportFiles/manyImportFile247.ets | 20 + .../manyImportFiles/manyImportFile248.ets | 20 + .../manyImportFiles/manyImportFile249.ets | 20 + .../manyImportFiles/manyImportFile25.ets | 20 + .../manyImportFiles/manyImportFile250.ets | 20 + .../manyImportFiles/manyImportFile251.ets | 20 + .../manyImportFiles/manyImportFile252.ets | 20 + .../manyImportFiles/manyImportFile253.ets | 20 + .../manyImportFiles/manyImportFile254.ets | 20 + .../manyImportFiles/manyImportFile255.ets | 20 + .../manyImportFiles/manyImportFile256.ets | 20 + .../manyImportFiles/manyImportFile257.ets | 20 + .../manyImportFiles/manyImportFile258.ets | 20 + .../manyImportFiles/manyImportFile259.ets | 20 + .../manyImportFiles/manyImportFile26.ets | 20 + .../manyImportFiles/manyImportFile260.ets | 20 + .../manyImportFiles/manyImportFile261.ets | 20 + .../manyImportFiles/manyImportFile262.ets | 20 + .../manyImportFiles/manyImportFile263.ets | 20 + .../manyImportFiles/manyImportFile264.ets | 20 + .../manyImportFiles/manyImportFile265.ets | 20 + .../manyImportFiles/manyImportFile266.ets | 20 + .../manyImportFiles/manyImportFile267.ets | 20 + .../manyImportFiles/manyImportFile268.ets | 20 + .../manyImportFiles/manyImportFile269.ets | 20 + .../manyImportFiles/manyImportFile27.ets | 20 + .../manyImportFiles/manyImportFile270.ets | 20 + .../manyImportFiles/manyImportFile271.ets | 20 + .../manyImportFiles/manyImportFile272.ets | 20 + .../manyImportFiles/manyImportFile273.ets | 20 + .../manyImportFiles/manyImportFile274.ets | 20 + .../manyImportFiles/manyImportFile275.ets | 20 + .../manyImportFiles/manyImportFile276.ets | 20 + .../manyImportFiles/manyImportFile277.ets | 20 + .../manyImportFiles/manyImportFile278.ets | 20 + .../manyImportFiles/manyImportFile279.ets | 20 + .../manyImportFiles/manyImportFile28.ets | 20 + .../manyImportFiles/manyImportFile280.ets | 20 + .../manyImportFiles/manyImportFile281.ets | 20 + .../manyImportFiles/manyImportFile282.ets | 20 + .../manyImportFiles/manyImportFile283.ets | 20 + .../manyImportFiles/manyImportFile284.ets | 20 + .../manyImportFiles/manyImportFile285.ets | 20 + .../manyImportFiles/manyImportFile286.ets | 20 + .../manyImportFiles/manyImportFile287.ets | 20 + .../manyImportFiles/manyImportFile288.ets | 20 + .../manyImportFiles/manyImportFile289.ets | 20 + .../manyImportFiles/manyImportFile29.ets | 20 + .../manyImportFiles/manyImportFile290.ets | 20 + .../manyImportFiles/manyImportFile291.ets | 20 + .../manyImportFiles/manyImportFile292.ets | 20 + .../manyImportFiles/manyImportFile293.ets | 20 + .../manyImportFiles/manyImportFile294.ets | 20 + .../manyImportFiles/manyImportFile295.ets | 20 + .../manyImportFiles/manyImportFile296.ets | 20 + .../manyImportFiles/manyImportFile297.ets | 20 + .../manyImportFiles/manyImportFile298.ets | 20 + .../manyImportFiles/manyImportFile299.ets | 20 + .../pages/manyImportFiles/manyImportFile3.ets | 20 + .../manyImportFiles/manyImportFile30.ets | 20 + .../manyImportFiles/manyImportFile300.ets | 20 + .../manyImportFiles/manyImportFile301.ets | 20 + .../manyImportFiles/manyImportFile302.ets | 20 + .../manyImportFiles/manyImportFile303.ets | 20 + .../manyImportFiles/manyImportFile304.ets | 20 + .../manyImportFiles/manyImportFile305.ets | 20 + .../manyImportFiles/manyImportFile306.ets | 20 + .../manyImportFiles/manyImportFile307.ets | 20 + .../manyImportFiles/manyImportFile308.ets | 20 + .../manyImportFiles/manyImportFile309.ets | 20 + .../manyImportFiles/manyImportFile31.ets | 20 + .../manyImportFiles/manyImportFile310.ets | 20 + .../manyImportFiles/manyImportFile311.ets | 20 + .../manyImportFiles/manyImportFile312.ets | 20 + .../manyImportFiles/manyImportFile313.ets | 20 + .../manyImportFiles/manyImportFile314.ets | 20 + .../manyImportFiles/manyImportFile315.ets | 20 + .../manyImportFiles/manyImportFile316.ets | 20 + .../manyImportFiles/manyImportFile317.ets | 20 + .../manyImportFiles/manyImportFile318.ets | 20 + .../manyImportFiles/manyImportFile319.ets | 20 + .../manyImportFiles/manyImportFile32.ets | 20 + .../manyImportFiles/manyImportFile320.ets | 20 + .../manyImportFiles/manyImportFile321.ets | 20 + .../manyImportFiles/manyImportFile322.ets | 20 + .../manyImportFiles/manyImportFile323.ets | 20 + .../manyImportFiles/manyImportFile324.ets | 20 + .../manyImportFiles/manyImportFile325.ets | 20 + .../manyImportFiles/manyImportFile326.ets | 20 + .../manyImportFiles/manyImportFile327.ets | 20 + .../manyImportFiles/manyImportFile328.ets | 20 + .../manyImportFiles/manyImportFile329.ets | 20 + .../manyImportFiles/manyImportFile33.ets | 20 + .../manyImportFiles/manyImportFile330.ets | 20 + .../manyImportFiles/manyImportFile331.ets | 20 + .../manyImportFiles/manyImportFile332.ets | 20 + .../manyImportFiles/manyImportFile333.ets | 20 + .../manyImportFiles/manyImportFile334.ets | 20 + .../manyImportFiles/manyImportFile335.ets | 20 + .../manyImportFiles/manyImportFile336.ets | 20 + .../manyImportFiles/manyImportFile337.ets | 20 + .../manyImportFiles/manyImportFile338.ets | 20 + .../manyImportFiles/manyImportFile339.ets | 20 + .../manyImportFiles/manyImportFile34.ets | 20 + .../manyImportFiles/manyImportFile340.ets | 20 + .../manyImportFiles/manyImportFile341.ets | 20 + .../manyImportFiles/manyImportFile342.ets | 20 + .../manyImportFiles/manyImportFile343.ets | 20 + .../manyImportFiles/manyImportFile344.ets | 20 + .../manyImportFiles/manyImportFile345.ets | 20 + .../manyImportFiles/manyImportFile346.ets | 20 + .../manyImportFiles/manyImportFile347.ets | 20 + .../manyImportFiles/manyImportFile348.ets | 20 + .../manyImportFiles/manyImportFile349.ets | 20 + .../manyImportFiles/manyImportFile35.ets | 20 + .../manyImportFiles/manyImportFile350.ets | 20 + .../manyImportFiles/manyImportFile351.ets | 20 + .../manyImportFiles/manyImportFile352.ets | 20 + .../manyImportFiles/manyImportFile353.ets | 20 + .../manyImportFiles/manyImportFile354.ets | 20 + .../manyImportFiles/manyImportFile355.ets | 20 + .../manyImportFiles/manyImportFile356.ets | 20 + .../manyImportFiles/manyImportFile357.ets | 20 + .../manyImportFiles/manyImportFile358.ets | 20 + .../manyImportFiles/manyImportFile359.ets | 20 + .../manyImportFiles/manyImportFile36.ets | 20 + .../manyImportFiles/manyImportFile360.ets | 20 + .../manyImportFiles/manyImportFile361.ets | 20 + .../manyImportFiles/manyImportFile362.ets | 20 + .../manyImportFiles/manyImportFile363.ets | 20 + .../manyImportFiles/manyImportFile364.ets | 20 + .../manyImportFiles/manyImportFile365.ets | 20 + .../manyImportFiles/manyImportFile366.ets | 20 + .../manyImportFiles/manyImportFile367.ets | 20 + .../manyImportFiles/manyImportFile368.ets | 20 + .../manyImportFiles/manyImportFile369.ets | 20 + .../manyImportFiles/manyImportFile37.ets | 20 + .../manyImportFiles/manyImportFile370.ets | 20 + .../manyImportFiles/manyImportFile371.ets | 20 + .../manyImportFiles/manyImportFile372.ets | 20 + .../manyImportFiles/manyImportFile373.ets | 20 + .../manyImportFiles/manyImportFile374.ets | 20 + .../manyImportFiles/manyImportFile375.ets | 20 + .../manyImportFiles/manyImportFile376.ets | 20 + .../manyImportFiles/manyImportFile377.ets | 20 + .../manyImportFiles/manyImportFile378.ets | 20 + .../manyImportFiles/manyImportFile379.ets | 20 + .../manyImportFiles/manyImportFile38.ets | 20 + .../manyImportFiles/manyImportFile380.ets | 20 + .../manyImportFiles/manyImportFile381.ets | 20 + .../manyImportFiles/manyImportFile382.ets | 20 + .../manyImportFiles/manyImportFile383.ets | 20 + .../manyImportFiles/manyImportFile384.ets | 20 + .../manyImportFiles/manyImportFile385.ets | 20 + .../manyImportFiles/manyImportFile386.ets | 20 + .../manyImportFiles/manyImportFile387.ets | 20 + .../manyImportFiles/manyImportFile388.ets | 20 + .../manyImportFiles/manyImportFile389.ets | 20 + .../manyImportFiles/manyImportFile39.ets | 20 + .../manyImportFiles/manyImportFile390.ets | 20 + .../manyImportFiles/manyImportFile391.ets | 20 + .../manyImportFiles/manyImportFile392.ets | 20 + .../manyImportFiles/manyImportFile393.ets | 20 + .../manyImportFiles/manyImportFile394.ets | 20 + .../manyImportFiles/manyImportFile395.ets | 20 + .../manyImportFiles/manyImportFile396.ets | 20 + .../manyImportFiles/manyImportFile397.ets | 20 + .../manyImportFiles/manyImportFile398.ets | 20 + .../manyImportFiles/manyImportFile399.ets | 20 + .../pages/manyImportFiles/manyImportFile4.ets | 20 + .../manyImportFiles/manyImportFile40.ets | 20 + .../manyImportFiles/manyImportFile400.ets | 20 + .../manyImportFiles/manyImportFile401.ets | 20 + .../manyImportFiles/manyImportFile402.ets | 20 + .../manyImportFiles/manyImportFile403.ets | 20 + .../manyImportFiles/manyImportFile404.ets | 20 + .../manyImportFiles/manyImportFile405.ets | 20 + .../manyImportFiles/manyImportFile406.ets | 20 + .../manyImportFiles/manyImportFile407.ets | 20 + .../manyImportFiles/manyImportFile408.ets | 20 + .../manyImportFiles/manyImportFile409.ets | 20 + .../manyImportFiles/manyImportFile41.ets | 20 + .../manyImportFiles/manyImportFile410.ets | 20 + .../manyImportFiles/manyImportFile411.ets | 20 + .../manyImportFiles/manyImportFile412.ets | 20 + .../manyImportFiles/manyImportFile413.ets | 20 + .../manyImportFiles/manyImportFile414.ets | 20 + .../manyImportFiles/manyImportFile415.ets | 20 + .../manyImportFiles/manyImportFile416.ets | 20 + .../manyImportFiles/manyImportFile417.ets | 20 + .../manyImportFiles/manyImportFile418.ets | 20 + .../manyImportFiles/manyImportFile419.ets | 20 + .../manyImportFiles/manyImportFile42.ets | 20 + .../manyImportFiles/manyImportFile420.ets | 20 + .../manyImportFiles/manyImportFile421.ets | 20 + .../manyImportFiles/manyImportFile422.ets | 20 + .../manyImportFiles/manyImportFile423.ets | 20 + .../manyImportFiles/manyImportFile424.ets | 20 + .../manyImportFiles/manyImportFile425.ets | 20 + .../manyImportFiles/manyImportFile426.ets | 20 + .../manyImportFiles/manyImportFile427.ets | 20 + .../manyImportFiles/manyImportFile428.ets | 20 + .../manyImportFiles/manyImportFile429.ets | 20 + .../manyImportFiles/manyImportFile43.ets | 20 + .../manyImportFiles/manyImportFile430.ets | 20 + .../manyImportFiles/manyImportFile431.ets | 20 + .../manyImportFiles/manyImportFile432.ets | 20 + .../manyImportFiles/manyImportFile433.ets | 20 + .../manyImportFiles/manyImportFile434.ets | 20 + .../manyImportFiles/manyImportFile435.ets | 20 + .../manyImportFiles/manyImportFile436.ets | 20 + .../manyImportFiles/manyImportFile437.ets | 20 + .../manyImportFiles/manyImportFile438.ets | 20 + .../manyImportFiles/manyImportFile439.ets | 20 + .../manyImportFiles/manyImportFile44.ets | 20 + .../manyImportFiles/manyImportFile440.ets | 20 + .../manyImportFiles/manyImportFile441.ets | 20 + .../manyImportFiles/manyImportFile442.ets | 20 + .../manyImportFiles/manyImportFile443.ets | 20 + .../manyImportFiles/manyImportFile444.ets | 20 + .../manyImportFiles/manyImportFile445.ets | 20 + .../manyImportFiles/manyImportFile446.ets | 20 + .../manyImportFiles/manyImportFile447.ets | 20 + .../manyImportFiles/manyImportFile448.ets | 20 + .../manyImportFiles/manyImportFile449.ets | 20 + .../manyImportFiles/manyImportFile45.ets | 20 + .../manyImportFiles/manyImportFile450.ets | 20 + .../manyImportFiles/manyImportFile451.ets | 20 + .../manyImportFiles/manyImportFile452.ets | 20 + .../manyImportFiles/manyImportFile453.ets | 20 + .../manyImportFiles/manyImportFile454.ets | 20 + .../manyImportFiles/manyImportFile455.ets | 20 + .../manyImportFiles/manyImportFile456.ets | 20 + .../manyImportFiles/manyImportFile457.ets | 20 + .../manyImportFiles/manyImportFile458.ets | 20 + .../manyImportFiles/manyImportFile459.ets | 20 + .../manyImportFiles/manyImportFile46.ets | 20 + .../manyImportFiles/manyImportFile460.ets | 20 + .../manyImportFiles/manyImportFile461.ets | 20 + .../manyImportFiles/manyImportFile462.ets | 20 + .../manyImportFiles/manyImportFile463.ets | 20 + .../manyImportFiles/manyImportFile464.ets | 20 + .../manyImportFiles/manyImportFile465.ets | 20 + .../manyImportFiles/manyImportFile466.ets | 20 + .../manyImportFiles/manyImportFile467.ets | 20 + .../manyImportFiles/manyImportFile468.ets | 20 + .../manyImportFiles/manyImportFile469.ets | 20 + .../manyImportFiles/manyImportFile47.ets | 20 + .../manyImportFiles/manyImportFile470.ets | 20 + .../manyImportFiles/manyImportFile471.ets | 20 + .../manyImportFiles/manyImportFile472.ets | 20 + .../manyImportFiles/manyImportFile473.ets | 20 + .../manyImportFiles/manyImportFile474.ets | 20 + .../manyImportFiles/manyImportFile475.ets | 20 + .../manyImportFiles/manyImportFile476.ets | 20 + .../manyImportFiles/manyImportFile477.ets | 20 + .../manyImportFiles/manyImportFile478.ets | 20 + .../manyImportFiles/manyImportFile479.ets | 20 + .../manyImportFiles/manyImportFile48.ets | 20 + .../manyImportFiles/manyImportFile480.ets | 20 + .../manyImportFiles/manyImportFile481.ets | 20 + .../manyImportFiles/manyImportFile482.ets | 20 + .../manyImportFiles/manyImportFile483.ets | 20 + .../manyImportFiles/manyImportFile484.ets | 20 + .../manyImportFiles/manyImportFile485.ets | 20 + .../manyImportFiles/manyImportFile486.ets | 20 + .../manyImportFiles/manyImportFile487.ets | 20 + .../manyImportFiles/manyImportFile488.ets | 20 + .../manyImportFiles/manyImportFile489.ets | 20 + .../manyImportFiles/manyImportFile49.ets | 20 + .../manyImportFiles/manyImportFile490.ets | 20 + .../manyImportFiles/manyImportFile491.ets | 20 + .../manyImportFiles/manyImportFile492.ets | 20 + .../manyImportFiles/manyImportFile493.ets | 20 + .../manyImportFiles/manyImportFile494.ets | 20 + .../manyImportFiles/manyImportFile495.ets | 20 + .../manyImportFiles/manyImportFile496.ets | 20 + .../manyImportFiles/manyImportFile497.ets | 20 + .../manyImportFiles/manyImportFile498.ets | 20 + .../manyImportFiles/manyImportFile499.ets | 20 + .../pages/manyImportFiles/manyImportFile5.ets | 20 + .../manyImportFiles/manyImportFile50.ets | 20 + .../manyImportFiles/manyImportFile500.ets | 20 + .../manyImportFiles/manyImportFile501.ets | 20 + .../manyImportFiles/manyImportFile502.ets | 20 + .../manyImportFiles/manyImportFile503.ets | 20 + .../manyImportFiles/manyImportFile504.ets | 20 + .../manyImportFiles/manyImportFile505.ets | 20 + .../manyImportFiles/manyImportFile506.ets | 20 + .../manyImportFiles/manyImportFile507.ets | 20 + .../manyImportFiles/manyImportFile508.ets | 20 + .../manyImportFiles/manyImportFile509.ets | 20 + .../manyImportFiles/manyImportFile51.ets | 20 + .../manyImportFiles/manyImportFile510.ets | 20 + .../manyImportFiles/manyImportFile511.ets | 20 + .../manyImportFiles/manyImportFile512.ets | 20 + .../manyImportFiles/manyImportFile513.ets | 20 + .../manyImportFiles/manyImportFile514.ets | 20 + .../manyImportFiles/manyImportFile515.ets | 20 + .../manyImportFiles/manyImportFile516.ets | 20 + .../manyImportFiles/manyImportFile517.ets | 20 + .../manyImportFiles/manyImportFile518.ets | 20 + .../manyImportFiles/manyImportFile519.ets | 20 + .../manyImportFiles/manyImportFile52.ets | 20 + .../manyImportFiles/manyImportFile520.ets | 20 + .../manyImportFiles/manyImportFile521.ets | 20 + .../manyImportFiles/manyImportFile522.ets | 20 + .../manyImportFiles/manyImportFile523.ets | 20 + .../manyImportFiles/manyImportFile524.ets | 20 + .../manyImportFiles/manyImportFile525.ets | 20 + .../manyImportFiles/manyImportFile526.ets | 20 + .../manyImportFiles/manyImportFile527.ets | 20 + .../manyImportFiles/manyImportFile528.ets | 20 + .../manyImportFiles/manyImportFile529.ets | 20 + .../manyImportFiles/manyImportFile53.ets | 20 + .../manyImportFiles/manyImportFile530.ets | 20 + .../manyImportFiles/manyImportFile531.ets | 20 + .../manyImportFiles/manyImportFile532.ets | 20 + .../manyImportFiles/manyImportFile533.ets | 20 + .../manyImportFiles/manyImportFile534.ets | 20 + .../manyImportFiles/manyImportFile535.ets | 20 + .../manyImportFiles/manyImportFile536.ets | 20 + .../manyImportFiles/manyImportFile537.ets | 20 + .../manyImportFiles/manyImportFile538.ets | 20 + .../manyImportFiles/manyImportFile539.ets | 20 + .../manyImportFiles/manyImportFile54.ets | 20 + .../manyImportFiles/manyImportFile540.ets | 20 + .../manyImportFiles/manyImportFile541.ets | 20 + .../manyImportFiles/manyImportFile542.ets | 20 + .../manyImportFiles/manyImportFile543.ets | 20 + .../manyImportFiles/manyImportFile544.ets | 20 + .../manyImportFiles/manyImportFile545.ets | 20 + .../manyImportFiles/manyImportFile546.ets | 20 + .../manyImportFiles/manyImportFile547.ets | 20 + .../manyImportFiles/manyImportFile548.ets | 20 + .../manyImportFiles/manyImportFile549.ets | 20 + .../manyImportFiles/manyImportFile55.ets | 20 + .../manyImportFiles/manyImportFile550.ets | 20 + .../manyImportFiles/manyImportFile551.ets | 20 + .../manyImportFiles/manyImportFile552.ets | 20 + .../manyImportFiles/manyImportFile553.ets | 20 + .../manyImportFiles/manyImportFile554.ets | 20 + .../manyImportFiles/manyImportFile555.ets | 20 + .../manyImportFiles/manyImportFile556.ets | 20 + .../manyImportFiles/manyImportFile557.ets | 20 + .../manyImportFiles/manyImportFile558.ets | 20 + .../manyImportFiles/manyImportFile559.ets | 20 + .../manyImportFiles/manyImportFile56.ets | 20 + .../manyImportFiles/manyImportFile560.ets | 20 + .../manyImportFiles/manyImportFile561.ets | 20 + .../manyImportFiles/manyImportFile562.ets | 20 + .../manyImportFiles/manyImportFile563.ets | 20 + .../manyImportFiles/manyImportFile564.ets | 20 + .../manyImportFiles/manyImportFile565.ets | 20 + .../manyImportFiles/manyImportFile566.ets | 20 + .../manyImportFiles/manyImportFile567.ets | 20 + .../manyImportFiles/manyImportFile568.ets | 20 + .../manyImportFiles/manyImportFile569.ets | 20 + .../manyImportFiles/manyImportFile57.ets | 20 + .../manyImportFiles/manyImportFile570.ets | 20 + .../manyImportFiles/manyImportFile571.ets | 20 + .../manyImportFiles/manyImportFile572.ets | 20 + .../manyImportFiles/manyImportFile573.ets | 20 + .../manyImportFiles/manyImportFile574.ets | 20 + .../manyImportFiles/manyImportFile575.ets | 20 + .../manyImportFiles/manyImportFile576.ets | 20 + .../manyImportFiles/manyImportFile577.ets | 20 + .../manyImportFiles/manyImportFile578.ets | 20 + .../manyImportFiles/manyImportFile579.ets | 20 + .../manyImportFiles/manyImportFile58.ets | 20 + .../manyImportFiles/manyImportFile580.ets | 20 + .../manyImportFiles/manyImportFile581.ets | 20 + .../manyImportFiles/manyImportFile582.ets | 20 + .../manyImportFiles/manyImportFile583.ets | 20 + .../manyImportFiles/manyImportFile584.ets | 20 + .../manyImportFiles/manyImportFile585.ets | 20 + .../manyImportFiles/manyImportFile586.ets | 20 + .../manyImportFiles/manyImportFile587.ets | 20 + .../manyImportFiles/manyImportFile588.ets | 20 + .../manyImportFiles/manyImportFile589.ets | 20 + .../manyImportFiles/manyImportFile59.ets | 20 + .../manyImportFiles/manyImportFile590.ets | 20 + .../manyImportFiles/manyImportFile591.ets | 20 + .../manyImportFiles/manyImportFile592.ets | 20 + .../manyImportFiles/manyImportFile593.ets | 20 + .../manyImportFiles/manyImportFile594.ets | 20 + .../manyImportFiles/manyImportFile595.ets | 20 + .../manyImportFiles/manyImportFile596.ets | 20 + .../manyImportFiles/manyImportFile597.ets | 20 + .../manyImportFiles/manyImportFile598.ets | 20 + .../manyImportFiles/manyImportFile599.ets | 20 + .../pages/manyImportFiles/manyImportFile6.ets | 20 + .../manyImportFiles/manyImportFile60.ets | 20 + .../manyImportFiles/manyImportFile600.ets | 20 + .../manyImportFiles/manyImportFile601.ets | 20 + .../manyImportFiles/manyImportFile602.ets | 20 + .../manyImportFiles/manyImportFile603.ets | 20 + .../manyImportFiles/manyImportFile604.ets | 20 + .../manyImportFiles/manyImportFile605.ets | 20 + .../manyImportFiles/manyImportFile606.ets | 20 + .../manyImportFiles/manyImportFile607.ets | 20 + .../manyImportFiles/manyImportFile608.ets | 20 + .../manyImportFiles/manyImportFile609.ets | 20 + .../manyImportFiles/manyImportFile61.ets | 20 + .../manyImportFiles/manyImportFile610.ets | 20 + .../manyImportFiles/manyImportFile611.ets | 20 + .../manyImportFiles/manyImportFile612.ets | 20 + .../manyImportFiles/manyImportFile613.ets | 20 + .../manyImportFiles/manyImportFile614.ets | 20 + .../manyImportFiles/manyImportFile615.ets | 20 + .../manyImportFiles/manyImportFile616.ets | 20 + .../manyImportFiles/manyImportFile617.ets | 20 + .../manyImportFiles/manyImportFile618.ets | 20 + .../manyImportFiles/manyImportFile619.ets | 20 + .../manyImportFiles/manyImportFile62.ets | 20 + .../manyImportFiles/manyImportFile620.ets | 20 + .../manyImportFiles/manyImportFile621.ets | 20 + .../manyImportFiles/manyImportFile622.ets | 20 + .../manyImportFiles/manyImportFile623.ets | 20 + .../manyImportFiles/manyImportFile624.ets | 20 + .../manyImportFiles/manyImportFile625.ets | 20 + .../manyImportFiles/manyImportFile626.ets | 20 + .../manyImportFiles/manyImportFile627.ets | 20 + .../manyImportFiles/manyImportFile628.ets | 20 + .../manyImportFiles/manyImportFile629.ets | 20 + .../manyImportFiles/manyImportFile63.ets | 20 + .../manyImportFiles/manyImportFile630.ets | 20 + .../manyImportFiles/manyImportFile631.ets | 20 + .../manyImportFiles/manyImportFile632.ets | 20 + .../manyImportFiles/manyImportFile633.ets | 20 + .../manyImportFiles/manyImportFile634.ets | 20 + .../manyImportFiles/manyImportFile635.ets | 20 + .../manyImportFiles/manyImportFile636.ets | 20 + .../manyImportFiles/manyImportFile637.ets | 20 + .../manyImportFiles/manyImportFile638.ets | 20 + .../manyImportFiles/manyImportFile639.ets | 20 + .../manyImportFiles/manyImportFile64.ets | 20 + .../manyImportFiles/manyImportFile640.ets | 20 + .../manyImportFiles/manyImportFile641.ets | 20 + .../manyImportFiles/manyImportFile642.ets | 20 + .../manyImportFiles/manyImportFile643.ets | 20 + .../manyImportFiles/manyImportFile644.ets | 20 + .../manyImportFiles/manyImportFile645.ets | 20 + .../manyImportFiles/manyImportFile646.ets | 20 + .../manyImportFiles/manyImportFile647.ets | 20 + .../manyImportFiles/manyImportFile648.ets | 20 + .../manyImportFiles/manyImportFile649.ets | 20 + .../manyImportFiles/manyImportFile65.ets | 20 + .../manyImportFiles/manyImportFile650.ets | 20 + .../manyImportFiles/manyImportFile651.ets | 20 + .../manyImportFiles/manyImportFile652.ets | 20 + .../manyImportFiles/manyImportFile653.ets | 20 + .../manyImportFiles/manyImportFile654.ets | 20 + .../manyImportFiles/manyImportFile655.ets | 20 + .../manyImportFiles/manyImportFile656.ets | 20 + .../manyImportFiles/manyImportFile657.ets | 20 + .../manyImportFiles/manyImportFile658.ets | 20 + .../manyImportFiles/manyImportFile659.ets | 20 + .../manyImportFiles/manyImportFile66.ets | 20 + .../manyImportFiles/manyImportFile660.ets | 20 + .../manyImportFiles/manyImportFile661.ets | 20 + .../manyImportFiles/manyImportFile662.ets | 20 + .../manyImportFiles/manyImportFile663.ets | 20 + .../manyImportFiles/manyImportFile664.ets | 20 + .../manyImportFiles/manyImportFile665.ets | 20 + .../manyImportFiles/manyImportFile666.ets | 20 + .../manyImportFiles/manyImportFile667.ets | 20 + .../manyImportFiles/manyImportFile668.ets | 20 + .../manyImportFiles/manyImportFile669.ets | 20 + .../manyImportFiles/manyImportFile67.ets | 20 + .../manyImportFiles/manyImportFile670.ets | 20 + .../manyImportFiles/manyImportFile671.ets | 20 + .../manyImportFiles/manyImportFile672.ets | 20 + .../manyImportFiles/manyImportFile673.ets | 20 + .../manyImportFiles/manyImportFile674.ets | 20 + .../manyImportFiles/manyImportFile675.ets | 20 + .../manyImportFiles/manyImportFile676.ets | 20 + .../manyImportFiles/manyImportFile677.ets | 20 + .../manyImportFiles/manyImportFile678.ets | 20 + .../manyImportFiles/manyImportFile679.ets | 20 + .../manyImportFiles/manyImportFile68.ets | 20 + .../manyImportFiles/manyImportFile680.ets | 20 + .../manyImportFiles/manyImportFile681.ets | 20 + .../manyImportFiles/manyImportFile682.ets | 20 + .../manyImportFiles/manyImportFile683.ets | 20 + .../manyImportFiles/manyImportFile684.ets | 20 + .../manyImportFiles/manyImportFile685.ets | 20 + .../manyImportFiles/manyImportFile686.ets | 20 + .../manyImportFiles/manyImportFile687.ets | 20 + .../manyImportFiles/manyImportFile688.ets | 20 + .../manyImportFiles/manyImportFile689.ets | 20 + .../manyImportFiles/manyImportFile69.ets | 20 + .../manyImportFiles/manyImportFile690.ets | 20 + .../manyImportFiles/manyImportFile691.ets | 20 + .../manyImportFiles/manyImportFile692.ets | 20 + .../manyImportFiles/manyImportFile693.ets | 20 + .../manyImportFiles/manyImportFile694.ets | 20 + .../manyImportFiles/manyImportFile695.ets | 20 + .../manyImportFiles/manyImportFile696.ets | 20 + .../manyImportFiles/manyImportFile697.ets | 20 + .../manyImportFiles/manyImportFile698.ets | 20 + .../manyImportFiles/manyImportFile699.ets | 20 + .../pages/manyImportFiles/manyImportFile7.ets | 20 + .../manyImportFiles/manyImportFile70.ets | 20 + .../manyImportFiles/manyImportFile700.ets | 20 + .../manyImportFiles/manyImportFile701.ets | 20 + .../manyImportFiles/manyImportFile702.ets | 20 + .../manyImportFiles/manyImportFile703.ets | 20 + .../manyImportFiles/manyImportFile704.ets | 20 + .../manyImportFiles/manyImportFile705.ets | 20 + .../manyImportFiles/manyImportFile706.ets | 20 + .../manyImportFiles/manyImportFile707.ets | 20 + .../manyImportFiles/manyImportFile708.ets | 20 + .../manyImportFiles/manyImportFile709.ets | 20 + .../manyImportFiles/manyImportFile71.ets | 20 + .../manyImportFiles/manyImportFile710.ets | 20 + .../manyImportFiles/manyImportFile711.ets | 20 + .../manyImportFiles/manyImportFile712.ets | 20 + .../manyImportFiles/manyImportFile713.ets | 20 + .../manyImportFiles/manyImportFile714.ets | 20 + .../manyImportFiles/manyImportFile715.ets | 20 + .../manyImportFiles/manyImportFile716.ets | 20 + .../manyImportFiles/manyImportFile717.ets | 20 + .../manyImportFiles/manyImportFile718.ets | 20 + .../manyImportFiles/manyImportFile719.ets | 20 + .../manyImportFiles/manyImportFile72.ets | 20 + .../manyImportFiles/manyImportFile720.ets | 20 + .../manyImportFiles/manyImportFile721.ets | 20 + .../manyImportFiles/manyImportFile722.ets | 20 + .../manyImportFiles/manyImportFile723.ets | 20 + .../manyImportFiles/manyImportFile724.ets | 20 + .../manyImportFiles/manyImportFile725.ets | 20 + .../manyImportFiles/manyImportFile726.ets | 20 + .../manyImportFiles/manyImportFile727.ets | 20 + .../manyImportFiles/manyImportFile728.ets | 20 + .../manyImportFiles/manyImportFile729.ets | 20 + .../manyImportFiles/manyImportFile73.ets | 20 + .../manyImportFiles/manyImportFile730.ets | 20 + .../manyImportFiles/manyImportFile731.ets | 20 + .../manyImportFiles/manyImportFile732.ets | 20 + .../manyImportFiles/manyImportFile733.ets | 20 + .../manyImportFiles/manyImportFile734.ets | 20 + .../manyImportFiles/manyImportFile735.ets | 20 + .../manyImportFiles/manyImportFile736.ets | 20 + .../manyImportFiles/manyImportFile737.ets | 20 + .../manyImportFiles/manyImportFile738.ets | 20 + .../manyImportFiles/manyImportFile739.ets | 20 + .../manyImportFiles/manyImportFile74.ets | 20 + .../manyImportFiles/manyImportFile740.ets | 20 + .../manyImportFiles/manyImportFile741.ets | 20 + .../manyImportFiles/manyImportFile742.ets | 20 + .../manyImportFiles/manyImportFile743.ets | 20 + .../manyImportFiles/manyImportFile744.ets | 20 + .../manyImportFiles/manyImportFile745.ets | 20 + .../manyImportFiles/manyImportFile746.ets | 20 + .../manyImportFiles/manyImportFile747.ets | 20 + .../manyImportFiles/manyImportFile748.ets | 20 + .../manyImportFiles/manyImportFile749.ets | 20 + .../manyImportFiles/manyImportFile75.ets | 20 + .../manyImportFiles/manyImportFile750.ets | 20 + .../manyImportFiles/manyImportFile751.ets | 20 + .../manyImportFiles/manyImportFile752.ets | 20 + .../manyImportFiles/manyImportFile753.ets | 20 + .../manyImportFiles/manyImportFile754.ets | 20 + .../manyImportFiles/manyImportFile755.ets | 20 + .../manyImportFiles/manyImportFile756.ets | 20 + .../manyImportFiles/manyImportFile757.ets | 20 + .../manyImportFiles/manyImportFile758.ets | 20 + .../manyImportFiles/manyImportFile759.ets | 20 + .../manyImportFiles/manyImportFile76.ets | 20 + .../manyImportFiles/manyImportFile760.ets | 20 + .../manyImportFiles/manyImportFile761.ets | 20 + .../manyImportFiles/manyImportFile762.ets | 20 + .../manyImportFiles/manyImportFile763.ets | 20 + .../manyImportFiles/manyImportFile764.ets | 20 + .../manyImportFiles/manyImportFile765.ets | 20 + .../manyImportFiles/manyImportFile766.ets | 20 + .../manyImportFiles/manyImportFile767.ets | 20 + .../manyImportFiles/manyImportFile768.ets | 20 + .../manyImportFiles/manyImportFile769.ets | 20 + .../manyImportFiles/manyImportFile77.ets | 20 + .../manyImportFiles/manyImportFile770.ets | 20 + .../manyImportFiles/manyImportFile771.ets | 20 + .../manyImportFiles/manyImportFile772.ets | 20 + .../manyImportFiles/manyImportFile773.ets | 20 + .../manyImportFiles/manyImportFile774.ets | 20 + .../manyImportFiles/manyImportFile775.ets | 20 + .../manyImportFiles/manyImportFile776.ets | 20 + .../manyImportFiles/manyImportFile777.ets | 20 + .../manyImportFiles/manyImportFile778.ets | 20 + .../manyImportFiles/manyImportFile779.ets | 20 + .../manyImportFiles/manyImportFile78.ets | 20 + .../manyImportFiles/manyImportFile780.ets | 20 + .../manyImportFiles/manyImportFile781.ets | 20 + .../manyImportFiles/manyImportFile782.ets | 20 + .../manyImportFiles/manyImportFile783.ets | 20 + .../manyImportFiles/manyImportFile784.ets | 20 + .../manyImportFiles/manyImportFile785.ets | 20 + .../manyImportFiles/manyImportFile786.ets | 20 + .../manyImportFiles/manyImportFile787.ets | 20 + .../manyImportFiles/manyImportFile788.ets | 20 + .../manyImportFiles/manyImportFile789.ets | 20 + .../manyImportFiles/manyImportFile79.ets | 20 + .../manyImportFiles/manyImportFile790.ets | 20 + .../manyImportFiles/manyImportFile791.ets | 20 + .../manyImportFiles/manyImportFile792.ets | 20 + .../manyImportFiles/manyImportFile793.ets | 20 + .../manyImportFiles/manyImportFile794.ets | 20 + .../manyImportFiles/manyImportFile795.ets | 20 + .../manyImportFiles/manyImportFile796.ets | 20 + .../manyImportFiles/manyImportFile797.ets | 20 + .../manyImportFiles/manyImportFile798.ets | 20 + .../manyImportFiles/manyImportFile799.ets | 20 + .../pages/manyImportFiles/manyImportFile8.ets | 20 + .../manyImportFiles/manyImportFile80.ets | 20 + .../manyImportFiles/manyImportFile800.ets | 20 + .../manyImportFiles/manyImportFile801.ets | 20 + .../manyImportFiles/manyImportFile802.ets | 20 + .../manyImportFiles/manyImportFile803.ets | 20 + .../manyImportFiles/manyImportFile804.ets | 20 + .../manyImportFiles/manyImportFile805.ets | 20 + .../manyImportFiles/manyImportFile806.ets | 20 + .../manyImportFiles/manyImportFile807.ets | 20 + .../manyImportFiles/manyImportFile808.ets | 20 + .../manyImportFiles/manyImportFile809.ets | 20 + .../manyImportFiles/manyImportFile81.ets | 20 + .../manyImportFiles/manyImportFile810.ets | 20 + .../manyImportFiles/manyImportFile811.ets | 20 + .../manyImportFiles/manyImportFile812.ets | 20 + .../manyImportFiles/manyImportFile813.ets | 20 + .../manyImportFiles/manyImportFile814.ets | 20 + .../manyImportFiles/manyImportFile815.ets | 20 + .../manyImportFiles/manyImportFile816.ets | 20 + .../manyImportFiles/manyImportFile817.ets | 20 + .../manyImportFiles/manyImportFile818.ets | 20 + .../manyImportFiles/manyImportFile819.ets | 20 + .../manyImportFiles/manyImportFile82.ets | 20 + .../manyImportFiles/manyImportFile820.ets | 20 + .../manyImportFiles/manyImportFile821.ets | 20 + .../manyImportFiles/manyImportFile822.ets | 20 + .../manyImportFiles/manyImportFile823.ets | 20 + .../manyImportFiles/manyImportFile824.ets | 20 + .../manyImportFiles/manyImportFile825.ets | 20 + .../manyImportFiles/manyImportFile826.ets | 20 + .../manyImportFiles/manyImportFile827.ets | 20 + .../manyImportFiles/manyImportFile828.ets | 20 + .../manyImportFiles/manyImportFile829.ets | 20 + .../manyImportFiles/manyImportFile83.ets | 20 + .../manyImportFiles/manyImportFile830.ets | 20 + .../manyImportFiles/manyImportFile831.ets | 20 + .../manyImportFiles/manyImportFile832.ets | 20 + .../manyImportFiles/manyImportFile833.ets | 20 + .../manyImportFiles/manyImportFile834.ets | 20 + .../manyImportFiles/manyImportFile835.ets | 20 + .../manyImportFiles/manyImportFile836.ets | 20 + .../manyImportFiles/manyImportFile837.ets | 20 + .../manyImportFiles/manyImportFile838.ets | 20 + .../manyImportFiles/manyImportFile839.ets | 20 + .../manyImportFiles/manyImportFile84.ets | 20 + .../manyImportFiles/manyImportFile840.ets | 20 + .../manyImportFiles/manyImportFile841.ets | 20 + .../manyImportFiles/manyImportFile842.ets | 20 + .../manyImportFiles/manyImportFile843.ets | 20 + .../manyImportFiles/manyImportFile844.ets | 20 + .../manyImportFiles/manyImportFile845.ets | 20 + .../manyImportFiles/manyImportFile846.ets | 20 + .../manyImportFiles/manyImportFile847.ets | 20 + .../manyImportFiles/manyImportFile848.ets | 20 + .../manyImportFiles/manyImportFile849.ets | 20 + .../manyImportFiles/manyImportFile85.ets | 20 + .../manyImportFiles/manyImportFile850.ets | 20 + .../manyImportFiles/manyImportFile851.ets | 20 + .../manyImportFiles/manyImportFile852.ets | 20 + .../manyImportFiles/manyImportFile853.ets | 20 + .../manyImportFiles/manyImportFile854.ets | 20 + .../manyImportFiles/manyImportFile855.ets | 20 + .../manyImportFiles/manyImportFile856.ets | 20 + .../manyImportFiles/manyImportFile857.ets | 20 + .../manyImportFiles/manyImportFile858.ets | 20 + .../manyImportFiles/manyImportFile859.ets | 20 + .../manyImportFiles/manyImportFile86.ets | 20 + .../manyImportFiles/manyImportFile860.ets | 20 + .../manyImportFiles/manyImportFile861.ets | 20 + .../manyImportFiles/manyImportFile862.ets | 20 + .../manyImportFiles/manyImportFile863.ets | 20 + .../manyImportFiles/manyImportFile864.ets | 20 + .../manyImportFiles/manyImportFile865.ets | 20 + .../manyImportFiles/manyImportFile866.ets | 20 + .../manyImportFiles/manyImportFile867.ets | 20 + .../manyImportFiles/manyImportFile868.ets | 20 + .../manyImportFiles/manyImportFile869.ets | 20 + .../manyImportFiles/manyImportFile87.ets | 20 + .../manyImportFiles/manyImportFile870.ets | 20 + .../manyImportFiles/manyImportFile871.ets | 20 + .../manyImportFiles/manyImportFile872.ets | 20 + .../manyImportFiles/manyImportFile873.ets | 20 + .../manyImportFiles/manyImportFile874.ets | 20 + .../manyImportFiles/manyImportFile875.ets | 20 + .../manyImportFiles/manyImportFile876.ets | 20 + .../manyImportFiles/manyImportFile877.ets | 20 + .../manyImportFiles/manyImportFile878.ets | 20 + .../manyImportFiles/manyImportFile879.ets | 20 + .../manyImportFiles/manyImportFile88.ets | 20 + .../manyImportFiles/manyImportFile880.ets | 20 + .../manyImportFiles/manyImportFile881.ets | 20 + .../manyImportFiles/manyImportFile882.ets | 20 + .../manyImportFiles/manyImportFile883.ets | 20 + .../manyImportFiles/manyImportFile884.ets | 20 + .../manyImportFiles/manyImportFile885.ets | 20 + .../manyImportFiles/manyImportFile886.ets | 20 + .../manyImportFiles/manyImportFile887.ets | 20 + .../manyImportFiles/manyImportFile888.ets | 20 + .../manyImportFiles/manyImportFile889.ets | 20 + .../manyImportFiles/manyImportFile89.ets | 20 + .../manyImportFiles/manyImportFile890.ets | 20 + .../manyImportFiles/manyImportFile891.ets | 20 + .../manyImportFiles/manyImportFile892.ets | 20 + .../manyImportFiles/manyImportFile893.ets | 20 + .../manyImportFiles/manyImportFile894.ets | 20 + .../manyImportFiles/manyImportFile895.ets | 20 + .../manyImportFiles/manyImportFile896.ets | 20 + .../manyImportFiles/manyImportFile897.ets | 20 + .../manyImportFiles/manyImportFile898.ets | 20 + .../manyImportFiles/manyImportFile899.ets | 20 + .../pages/manyImportFiles/manyImportFile9.ets | 20 + .../manyImportFiles/manyImportFile90.ets | 20 + .../manyImportFiles/manyImportFile900.ets | 20 + .../manyImportFiles/manyImportFile901.ets | 20 + .../manyImportFiles/manyImportFile902.ets | 20 + .../manyImportFiles/manyImportFile903.ets | 20 + .../manyImportFiles/manyImportFile904.ets | 20 + .../manyImportFiles/manyImportFile905.ets | 20 + .../manyImportFiles/manyImportFile906.ets | 20 + .../manyImportFiles/manyImportFile907.ets | 20 + .../manyImportFiles/manyImportFile908.ets | 20 + .../manyImportFiles/manyImportFile909.ets | 20 + .../manyImportFiles/manyImportFile91.ets | 20 + .../manyImportFiles/manyImportFile910.ets | 20 + .../manyImportFiles/manyImportFile911.ets | 20 + .../manyImportFiles/manyImportFile912.ets | 20 + .../manyImportFiles/manyImportFile913.ets | 20 + .../manyImportFiles/manyImportFile914.ets | 20 + .../manyImportFiles/manyImportFile915.ets | 20 + .../manyImportFiles/manyImportFile916.ets | 20 + .../manyImportFiles/manyImportFile917.ets | 20 + .../manyImportFiles/manyImportFile918.ets | 20 + .../manyImportFiles/manyImportFile919.ets | 20 + .../manyImportFiles/manyImportFile92.ets | 20 + .../manyImportFiles/manyImportFile920.ets | 20 + .../manyImportFiles/manyImportFile921.ets | 20 + .../manyImportFiles/manyImportFile922.ets | 20 + .../manyImportFiles/manyImportFile923.ets | 20 + .../manyImportFiles/manyImportFile924.ets | 20 + .../manyImportFiles/manyImportFile925.ets | 20 + .../manyImportFiles/manyImportFile926.ets | 20 + .../manyImportFiles/manyImportFile927.ets | 20 + .../manyImportFiles/manyImportFile928.ets | 20 + .../manyImportFiles/manyImportFile929.ets | 20 + .../manyImportFiles/manyImportFile93.ets | 20 + .../manyImportFiles/manyImportFile930.ets | 20 + .../manyImportFiles/manyImportFile931.ets | 20 + .../manyImportFiles/manyImportFile932.ets | 20 + .../manyImportFiles/manyImportFile933.ets | 20 + .../manyImportFiles/manyImportFile934.ets | 20 + .../manyImportFiles/manyImportFile935.ets | 20 + .../manyImportFiles/manyImportFile936.ets | 20 + .../manyImportFiles/manyImportFile937.ets | 20 + .../manyImportFiles/manyImportFile938.ets | 20 + .../manyImportFiles/manyImportFile939.ets | 20 + .../manyImportFiles/manyImportFile94.ets | 20 + .../manyImportFiles/manyImportFile940.ets | 20 + .../manyImportFiles/manyImportFile941.ets | 20 + .../manyImportFiles/manyImportFile942.ets | 20 + .../manyImportFiles/manyImportFile943.ets | 20 + .../manyImportFiles/manyImportFile944.ets | 20 + .../manyImportFiles/manyImportFile945.ets | 20 + .../manyImportFiles/manyImportFile946.ets | 20 + .../manyImportFiles/manyImportFile947.ets | 20 + .../manyImportFiles/manyImportFile948.ets | 20 + .../manyImportFiles/manyImportFile949.ets | 20 + .../manyImportFiles/manyImportFile95.ets | 20 + .../manyImportFiles/manyImportFile950.ets | 20 + .../manyImportFiles/manyImportFile951.ets | 20 + .../manyImportFiles/manyImportFile952.ets | 20 + .../manyImportFiles/manyImportFile953.ets | 20 + .../manyImportFiles/manyImportFile954.ets | 20 + .../manyImportFiles/manyImportFile955.ets | 20 + .../manyImportFiles/manyImportFile956.ets | 20 + .../manyImportFiles/manyImportFile957.ets | 20 + .../manyImportFiles/manyImportFile958.ets | 20 + .../manyImportFiles/manyImportFile959.ets | 20 + .../manyImportFiles/manyImportFile96.ets | 20 + .../manyImportFiles/manyImportFile960.ets | 20 + .../manyImportFiles/manyImportFile961.ets | 20 + .../manyImportFiles/manyImportFile962.ets | 20 + .../manyImportFiles/manyImportFile963.ets | 20 + .../manyImportFiles/manyImportFile964.ets | 20 + .../manyImportFiles/manyImportFile965.ets | 20 + .../manyImportFiles/manyImportFile966.ets | 20 + .../manyImportFiles/manyImportFile967.ets | 20 + .../manyImportFiles/manyImportFile968.ets | 20 + .../manyImportFiles/manyImportFile969.ets | 20 + .../manyImportFiles/manyImportFile97.ets | 20 + .../manyImportFiles/manyImportFile970.ets | 20 + .../manyImportFiles/manyImportFile971.ets | 20 + .../manyImportFiles/manyImportFile972.ets | 20 + .../manyImportFiles/manyImportFile973.ets | 20 + .../manyImportFiles/manyImportFile974.ets | 20 + .../manyImportFiles/manyImportFile975.ets | 20 + .../manyImportFiles/manyImportFile976.ets | 20 + .../manyImportFiles/manyImportFile977.ets | 20 + .../manyImportFiles/manyImportFile978.ets | 20 + .../manyImportFiles/manyImportFile979.ets | 20 + .../manyImportFiles/manyImportFile98.ets | 20 + .../manyImportFiles/manyImportFile980.ets | 20 + .../manyImportFiles/manyImportFile981.ets | 20 + .../manyImportFiles/manyImportFile982.ets | 20 + .../manyImportFiles/manyImportFile983.ets | 20 + .../manyImportFiles/manyImportFile984.ets | 20 + .../manyImportFiles/manyImportFile985.ets | 20 + .../manyImportFiles/manyImportFile986.ets | 20 + .../manyImportFiles/manyImportFile987.ets | 20 + .../manyImportFiles/manyImportFile988.ets | 20 + .../manyImportFiles/manyImportFile989.ets | 20 + .../manyImportFiles/manyImportFile99.ets | 20 + .../manyImportFiles/manyImportFile990.ets | 20 + .../manyImportFiles/manyImportFile991.ets | 20 + .../manyImportFiles/manyImportFile992.ets | 20 + .../manyImportFiles/manyImportFile993.ets | 20 + .../manyImportFiles/manyImportFile994.ets | 20 + .../manyImportFiles/manyImportFile995.ets | 20 + .../manyImportFiles/manyImportFile996.ets | 20 + .../manyImportFiles/manyImportFile997.ets | 20 + .../manyImportFiles/manyImportFile998.ets | 20 + .../manyImportFiles/manyImportFile999.ets | 20 + .../user/src/ets/pages/manyImportMain.ets | 18 + .../user/src/ets/pages/stateVariables.ets | 20087 ++++++++++++++++ 2514 files changed, 316588 insertions(+), 7 deletions(-) create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/Index.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/builtinComponents.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/customComponents1.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/customComponents2.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile10.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile100.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1000.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1001.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1002.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1003.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1004.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1005.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1006.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1007.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1008.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1009.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile101.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1010.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1011.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1012.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1013.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1014.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1015.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1016.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1017.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1018.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1019.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile102.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1020.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1021.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1022.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1023.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1024.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1025.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1026.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1027.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1028.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1029.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile103.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1030.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1031.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1032.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1033.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1034.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1035.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1036.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1037.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1038.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1039.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile104.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1040.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1041.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1042.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1043.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1044.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1045.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1046.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1047.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1048.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1049.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile105.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1050.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1051.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1052.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1053.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1054.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1055.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1056.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1057.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1058.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1059.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile106.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1060.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1061.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1062.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1063.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1064.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1065.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1066.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1067.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1068.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1069.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile107.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1070.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1071.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1072.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1073.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1074.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1075.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1076.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1077.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1078.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1079.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile108.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1080.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1081.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1082.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1083.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1084.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1085.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1086.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1087.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1088.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1089.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile109.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1090.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1091.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1092.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1093.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1094.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1095.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1096.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1097.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1098.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1099.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile11.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile110.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1100.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1101.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1102.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1103.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1104.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1105.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1106.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1107.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1108.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1109.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile111.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1110.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1111.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1112.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1113.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1114.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1115.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1116.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1117.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1118.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1119.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile112.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1120.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1121.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1122.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1123.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1124.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1125.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1126.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1127.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1128.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1129.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile113.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1130.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1131.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1132.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1133.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1134.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1135.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1136.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1137.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1138.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1139.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile114.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1140.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1141.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1142.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1143.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1144.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1145.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1146.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1147.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1148.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1149.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile115.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1150.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1151.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1152.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1153.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1154.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1155.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1156.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1157.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1158.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1159.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile116.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1160.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1161.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1162.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1163.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1164.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1165.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1166.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1167.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1168.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1169.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile117.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1170.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1171.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1172.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1173.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1174.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1175.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1176.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1177.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1178.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1179.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile118.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1180.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1181.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1182.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1183.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1184.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1185.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1186.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1187.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1188.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1189.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile119.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1190.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1191.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1192.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1193.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1194.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1195.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1196.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1197.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1198.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1199.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile12.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile120.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1200.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1201.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1202.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1203.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1204.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1205.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1206.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1207.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1208.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1209.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile121.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1210.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1211.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1212.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1213.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1214.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1215.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1216.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1217.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1218.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1219.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile122.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1220.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1221.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1222.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1223.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1224.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1225.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1226.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1227.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1228.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1229.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile123.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1230.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1231.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1232.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1233.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1234.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1235.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1236.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1237.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1238.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1239.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile124.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1240.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1241.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1242.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1243.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1244.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1245.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1246.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1247.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1248.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1249.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile125.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1250.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1251.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1252.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1253.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1254.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1255.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1256.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1257.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1258.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1259.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile126.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1260.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1261.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1262.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1263.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1264.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1265.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1266.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1267.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1268.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1269.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile127.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1270.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1271.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1272.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1273.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1274.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1275.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1276.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1277.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1278.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1279.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile128.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1280.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1281.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1282.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1283.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1284.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1285.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1286.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1287.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1288.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1289.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile129.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1290.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1291.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1292.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1293.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1294.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1295.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1296.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1297.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1298.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1299.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile13.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile130.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1300.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1301.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1302.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1303.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1304.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1305.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1306.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1307.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1308.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1309.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile131.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1310.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1311.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1312.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1313.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1314.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1315.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1316.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1317.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1318.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1319.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile132.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1320.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1321.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1322.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1323.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1324.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1325.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1326.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1327.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1328.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1329.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile133.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1330.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1331.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1332.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1333.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1334.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1335.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1336.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1337.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1338.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1339.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile134.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1340.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1341.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1342.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1343.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1344.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1345.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1346.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1347.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1348.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1349.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile135.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1350.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1351.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1352.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1353.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1354.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1355.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1356.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1357.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1358.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1359.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile136.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1360.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1361.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1362.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1363.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1364.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1365.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1366.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1367.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1368.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1369.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile137.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1370.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1371.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1372.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1373.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1374.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1375.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1376.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1377.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1378.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1379.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile138.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1380.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1381.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1382.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1383.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1384.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1385.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1386.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1387.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1388.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1389.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile139.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1390.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1391.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1392.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1393.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1394.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1395.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1396.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1397.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1398.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1399.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile14.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile140.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1400.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1401.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1402.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1403.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1404.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1405.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1406.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1407.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1408.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1409.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile141.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1410.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1411.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1412.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1413.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1414.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1415.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1416.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1417.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1418.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1419.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile142.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1420.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1421.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1422.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1423.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1424.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1425.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1426.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1427.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1428.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1429.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile143.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1430.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1431.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1432.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1433.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1434.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1435.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1436.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1437.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1438.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1439.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile144.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1440.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1441.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1442.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1443.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1444.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1445.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1446.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1447.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1448.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1449.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile145.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1450.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1451.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1452.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1453.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1454.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1455.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1456.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1457.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1458.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1459.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile146.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1460.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1461.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1462.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1463.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1464.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1465.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1466.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1467.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1468.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1469.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile147.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1470.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1471.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1472.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1473.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1474.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1475.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1476.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1477.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1478.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1479.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile148.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1480.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1481.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1482.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1483.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1484.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1485.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1486.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1487.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1488.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1489.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile149.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1490.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1491.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1492.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1493.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1494.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1495.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1496.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1497.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1498.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1499.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile15.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile150.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1500.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1501.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1502.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1503.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1504.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1505.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1506.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1507.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1508.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1509.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile151.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1510.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1511.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1512.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1513.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1514.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1515.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1516.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1517.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1518.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1519.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile152.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1520.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1521.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1522.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1523.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1524.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1525.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1526.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1527.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1528.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1529.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile153.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1530.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1531.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1532.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1533.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1534.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1535.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1536.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1537.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1538.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1539.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile154.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1540.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1541.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1542.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1543.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1544.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1545.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1546.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1547.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1548.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1549.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile155.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1550.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1551.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1552.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1553.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1554.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1555.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1556.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1557.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1558.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1559.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile156.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1560.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1561.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1562.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1563.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1564.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1565.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1566.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1567.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1568.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1569.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile157.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1570.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1571.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1572.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1573.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1574.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1575.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1576.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1577.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1578.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1579.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile158.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1580.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1581.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1582.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1583.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1584.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1585.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1586.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1587.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1588.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1589.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile159.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1590.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1591.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1592.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1593.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1594.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1595.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1596.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1597.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1598.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1599.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile16.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile160.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1600.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1601.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1602.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1603.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1604.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1605.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1606.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1607.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1608.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1609.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile161.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1610.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1611.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1612.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1613.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1614.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1615.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1616.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1617.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1618.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1619.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile162.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1620.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1621.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1622.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1623.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1624.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1625.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1626.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1627.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1628.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1629.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile163.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1630.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1631.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1632.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1633.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1634.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1635.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1636.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1637.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1638.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1639.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile164.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1640.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1641.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1642.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1643.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1644.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1645.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1646.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1647.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1648.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1649.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile165.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1650.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1651.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1652.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1653.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1654.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1655.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1656.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1657.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1658.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1659.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile166.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1660.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1661.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1662.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1663.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1664.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1665.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1666.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1667.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1668.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1669.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile167.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1670.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1671.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1672.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1673.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1674.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1675.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1676.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1677.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1678.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1679.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile168.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1680.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1681.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1682.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1683.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1684.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1685.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1686.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1687.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1688.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1689.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile169.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1690.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1691.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1692.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1693.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1694.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1695.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1696.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1697.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1698.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1699.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile17.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile170.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1700.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1701.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1702.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1703.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1704.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1705.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1706.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1707.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1708.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1709.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile171.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1710.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1711.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1712.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1713.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1714.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1715.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1716.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1717.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1718.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1719.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile172.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1720.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1721.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1722.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1723.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1724.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1725.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1726.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1727.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1728.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1729.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile173.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1730.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1731.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1732.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1733.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1734.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1735.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1736.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1737.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1738.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1739.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile174.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1740.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1741.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1742.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1743.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1744.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1745.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1746.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1747.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1748.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1749.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile175.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1750.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1751.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1752.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1753.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1754.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1755.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1756.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1757.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1758.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1759.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile176.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1760.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1761.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1762.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1763.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1764.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1765.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1766.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1767.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1768.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1769.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile177.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1770.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1771.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1772.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1773.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1774.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1775.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1776.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1777.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1778.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1779.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile178.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1780.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1781.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1782.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1783.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1784.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1785.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1786.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1787.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1788.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1789.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile179.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1790.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1791.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1792.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1793.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1794.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1795.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1796.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1797.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1798.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1799.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile18.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile180.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1800.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1801.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1802.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1803.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1804.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1805.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1806.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1807.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1808.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1809.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile181.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1810.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1811.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1812.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1813.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1814.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1815.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1816.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1817.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1818.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1819.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile182.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1820.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1821.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1822.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1823.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1824.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1825.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1826.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1827.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1828.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1829.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile183.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1830.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1831.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1832.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1833.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1834.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1835.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1836.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1837.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1838.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1839.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile184.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1840.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1841.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1842.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1843.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1844.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1845.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1846.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1847.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1848.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1849.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile185.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1850.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1851.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1852.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1853.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1854.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1855.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1856.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1857.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1858.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1859.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile186.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1860.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1861.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1862.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1863.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1864.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1865.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1866.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1867.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1868.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1869.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile187.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1870.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1871.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1872.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1873.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1874.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1875.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1876.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1877.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1878.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1879.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile188.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1880.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1881.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1882.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1883.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1884.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1885.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1886.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1887.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1888.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1889.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile189.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1890.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1891.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1892.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1893.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1894.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1895.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1896.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1897.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1898.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1899.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile19.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile190.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1900.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1901.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1902.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1903.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1904.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1905.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1906.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1907.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1908.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1909.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile191.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1910.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1911.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1912.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1913.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1914.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1915.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1916.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1917.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1918.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1919.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile192.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1920.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1921.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1922.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1923.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1924.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1925.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1926.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1927.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1928.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1929.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile193.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1930.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1931.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1932.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1933.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1934.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1935.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1936.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1937.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1938.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1939.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile194.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1940.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1941.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1942.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1943.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1944.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1945.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1946.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1947.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1948.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1949.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile195.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1950.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1951.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1952.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1953.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1954.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1955.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1956.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1957.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1958.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1959.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile196.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1960.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1961.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1962.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1963.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1964.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1965.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1966.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1967.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1968.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1969.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile197.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1970.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1971.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1972.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1973.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1974.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1975.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1976.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1977.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1978.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1979.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile198.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1980.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1981.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1982.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1983.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1984.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1985.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1986.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1987.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1988.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1989.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile199.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1990.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1991.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1992.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1993.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1994.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1995.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1996.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1997.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1998.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1999.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile20.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile200.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2000.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile201.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile202.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile203.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile204.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile205.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile206.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile207.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile208.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile209.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile21.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile210.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile211.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile212.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile213.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile214.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile215.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile216.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile217.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile218.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile219.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile22.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile220.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile221.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile222.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile223.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile224.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile225.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile226.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile227.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile228.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile229.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile23.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile230.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile231.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile232.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile233.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile234.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile235.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile236.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile237.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile238.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile239.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile24.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile240.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile241.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile242.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile243.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile244.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile245.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile246.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile247.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile248.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile249.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile25.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile250.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile251.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile252.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile253.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile254.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile255.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile256.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile257.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile258.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile259.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile26.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile260.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile261.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile262.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile263.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile264.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile265.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile266.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile267.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile268.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile269.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile27.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile270.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile271.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile272.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile273.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile274.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile275.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile276.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile277.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile278.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile279.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile28.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile280.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile281.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile282.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile283.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile284.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile285.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile286.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile287.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile288.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile289.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile29.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile290.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile291.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile292.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile293.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile294.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile295.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile296.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile297.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile298.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile299.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile3.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile30.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile300.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile301.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile302.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile303.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile304.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile305.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile306.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile307.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile308.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile309.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile31.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile310.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile311.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile312.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile313.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile314.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile315.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile316.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile317.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile318.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile319.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile32.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile320.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile321.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile322.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile323.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile324.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile325.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile326.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile327.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile328.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile329.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile33.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile330.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile331.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile332.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile333.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile334.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile335.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile336.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile337.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile338.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile339.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile34.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile340.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile341.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile342.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile343.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile344.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile345.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile346.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile347.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile348.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile349.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile35.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile350.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile351.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile352.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile353.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile354.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile355.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile356.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile357.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile358.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile359.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile36.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile360.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile361.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile362.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile363.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile364.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile365.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile366.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile367.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile368.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile369.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile37.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile370.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile371.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile372.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile373.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile374.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile375.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile376.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile377.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile378.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile379.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile38.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile380.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile381.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile382.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile383.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile384.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile385.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile386.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile387.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile388.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile389.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile39.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile390.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile391.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile392.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile393.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile394.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile395.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile396.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile397.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile398.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile399.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile4.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile40.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile400.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile401.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile402.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile403.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile404.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile405.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile406.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile407.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile408.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile409.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile41.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile410.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile411.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile412.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile413.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile414.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile415.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile416.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile417.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile418.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile419.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile42.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile420.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile421.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile422.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile423.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile424.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile425.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile426.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile427.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile428.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile429.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile43.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile430.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile431.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile432.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile433.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile434.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile435.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile436.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile437.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile438.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile439.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile44.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile440.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile441.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile442.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile443.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile444.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile445.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile446.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile447.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile448.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile449.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile45.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile450.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile451.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile452.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile453.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile454.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile455.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile456.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile457.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile458.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile459.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile46.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile460.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile461.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile462.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile463.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile464.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile465.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile466.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile467.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile468.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile469.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile47.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile470.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile471.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile472.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile473.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile474.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile475.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile476.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile477.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile478.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile479.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile48.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile480.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile481.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile482.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile483.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile484.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile485.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile486.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile487.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile488.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile489.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile49.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile490.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile491.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile492.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile493.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile494.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile495.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile496.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile497.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile498.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile499.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile5.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile50.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile500.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile501.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile502.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile503.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile504.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile505.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile506.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile507.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile508.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile509.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile51.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile510.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile511.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile512.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile513.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile514.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile515.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile516.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile517.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile518.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile519.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile52.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile520.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile521.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile522.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile523.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile524.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile525.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile526.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile527.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile528.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile529.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile53.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile530.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile531.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile532.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile533.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile534.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile535.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile536.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile537.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile538.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile539.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile54.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile540.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile541.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile542.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile543.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile544.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile545.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile546.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile547.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile548.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile549.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile55.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile550.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile551.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile552.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile553.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile554.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile555.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile556.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile557.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile558.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile559.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile56.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile560.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile561.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile562.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile563.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile564.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile565.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile566.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile567.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile568.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile569.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile57.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile570.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile571.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile572.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile573.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile574.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile575.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile576.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile577.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile578.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile579.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile58.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile580.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile581.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile582.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile583.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile584.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile585.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile586.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile587.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile588.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile589.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile59.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile590.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile591.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile592.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile593.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile594.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile595.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile596.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile597.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile598.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile599.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile6.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile60.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile600.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile601.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile602.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile603.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile604.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile605.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile606.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile607.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile608.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile609.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile61.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile610.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile611.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile612.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile613.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile614.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile615.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile616.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile617.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile618.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile619.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile62.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile620.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile621.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile622.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile623.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile624.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile625.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile626.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile627.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile628.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile629.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile63.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile630.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile631.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile632.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile633.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile634.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile635.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile636.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile637.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile638.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile639.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile64.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile640.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile641.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile642.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile643.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile644.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile645.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile646.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile647.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile648.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile649.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile65.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile650.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile651.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile652.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile653.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile654.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile655.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile656.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile657.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile658.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile659.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile66.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile660.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile661.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile662.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile663.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile664.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile665.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile666.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile667.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile668.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile669.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile67.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile670.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile671.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile672.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile673.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile674.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile675.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile676.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile677.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile678.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile679.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile68.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile680.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile681.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile682.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile683.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile684.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile685.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile686.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile687.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile688.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile689.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile69.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile690.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile691.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile692.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile693.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile694.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile695.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile696.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile697.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile698.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile699.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile7.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile70.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile700.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile701.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile702.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile703.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile704.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile705.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile706.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile707.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile708.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile709.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile71.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile710.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile711.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile712.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile713.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile714.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile715.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile716.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile717.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile718.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile719.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile72.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile720.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile721.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile722.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile723.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile724.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile725.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile726.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile727.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile728.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile729.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile73.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile730.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile731.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile732.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile733.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile734.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile735.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile736.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile737.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile738.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile739.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile74.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile740.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile741.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile742.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile743.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile744.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile745.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile746.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile747.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile748.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile749.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile75.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile750.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile751.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile752.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile753.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile754.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile755.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile756.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile757.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile758.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile759.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile76.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile760.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile761.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile762.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile763.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile764.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile765.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile766.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile767.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile768.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile769.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile77.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile770.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile771.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile772.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile773.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile774.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile775.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile776.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile777.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile778.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile779.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile78.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile780.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile781.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile782.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile783.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile784.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile785.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile786.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile787.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile788.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile789.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile79.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile790.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile791.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile792.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile793.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile794.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile795.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile796.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile797.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile798.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile799.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile8.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile80.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile800.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile801.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile802.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile803.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile804.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile805.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile806.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile807.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile808.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile809.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile81.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile810.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile811.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile812.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile813.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile814.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile815.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile816.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile817.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile818.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile819.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile82.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile820.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile821.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile822.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile823.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile824.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile825.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile826.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile827.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile828.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile829.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile83.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile830.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile831.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile832.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile833.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile834.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile835.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile836.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile837.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile838.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile839.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile84.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile840.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile841.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile842.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile843.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile844.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile845.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile846.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile847.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile848.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile849.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile85.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile850.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile851.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile852.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile853.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile854.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile855.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile856.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile857.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile858.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile859.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile86.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile860.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile861.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile862.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile863.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile864.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile865.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile866.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile867.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile868.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile869.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile87.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile870.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile871.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile872.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile873.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile874.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile875.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile876.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile877.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile878.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile879.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile88.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile880.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile881.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile882.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile883.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile884.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile885.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile886.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile887.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile888.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile889.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile89.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile890.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile891.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile892.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile893.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile894.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile895.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile896.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile897.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile898.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile899.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile9.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile90.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile900.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile901.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile902.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile903.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile904.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile905.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile906.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile907.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile908.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile909.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile91.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile910.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile911.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile912.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile913.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile914.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile915.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile916.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile917.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile918.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile919.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile92.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile920.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile921.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile922.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile923.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile924.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile925.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile926.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile927.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile928.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile929.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile93.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile930.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile931.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile932.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile933.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile934.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile935.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile936.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile937.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile938.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile939.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile94.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile940.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile941.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile942.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile943.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile944.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile945.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile946.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile947.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile948.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile949.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile95.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile950.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile951.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile952.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile953.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile954.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile955.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile956.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile957.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile958.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile959.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile96.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile960.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile961.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile962.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile963.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile964.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile965.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile966.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile967.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile968.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile969.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile97.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile970.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile971.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile972.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile973.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile974.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile975.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile976.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile977.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile978.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile979.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile98.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile980.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile981.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile982.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile983.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile984.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile985.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile986.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile987.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile988.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile989.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile99.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile990.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile991.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile992.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile993.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile994.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile995.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile996.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile997.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile998.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile999.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/manyImportMain.ets create mode 100644 arkoala-arkts/trivial/user/src/ets/pages/stateVariables.ets diff --git a/arkoala-arkts/cats/user/src/ets/SomeCat.ets b/arkoala-arkts/cats/user/src/ets/SomeCat.ets index 5f910e2cb..58f3342fa 100644 --- a/arkoala-arkts/cats/user/src/ets/SomeCat.ets +++ b/arkoala-arkts/cats/user/src/ets/SomeCat.ets @@ -119,4 +119,4 @@ struct SomeCat { console.log("Cat on exit: ", progress) }) } -} \ No newline at end of file +} diff --git a/arkoala-arkts/shopping/user/src/ets/pages/collect/nullPage.ets b/arkoala-arkts/shopping/user/src/ets/pages/collect/nullPage.ets index ed1d680b3..bfccab372 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/collect/nullPage.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/collect/nullPage.ets @@ -31,4 +31,4 @@ export struct NullPage { .height('40%') .backgroundColor('#dfe5e3') } -} \ No newline at end of file +} diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/boutique.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/boutique.ets index c89d56549..963a1bc6a 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/boutique.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/boutique.ets @@ -53,4 +53,4 @@ export struct Boutique { } .width('92%') } -} \ No newline at end of file +} diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/core1.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/core1.ets index 7a6d9fe54..bf3bea23e 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/core1.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/core1.ets @@ -56,4 +56,4 @@ export struct Core1 { .height(160 * this.ratio) } } -} \ No newline at end of file +} diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/core2.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/core2.ets index 96290c1b6..cfe8675d2 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/core2.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/core2.ets @@ -58,4 +58,4 @@ export struct Core2 { .width('100%') } } -} \ No newline at end of file +} diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/goodsList.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/goodsList.ets index 75dcf49ce..f9bed4b06 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/goodsList.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/goodsList.ets @@ -126,4 +126,4 @@ export struct GoodsList { .width('100%') .backgroundColor('#10000000') } -} \ No newline at end of file +} diff --git a/arkoala-arkts/trivial/user/package.json b/arkoala-arkts/trivial/user/package.json index c5a07e745..0dc5a72a3 100644 --- a/arkoala-arkts/trivial/user/package.json +++ b/arkoala-arkts/trivial/user/package.json @@ -12,7 +12,7 @@ "clean": "rimraf build generated unmemoized js_output abc lib app/user/build app/user/libs", "build:user": "npm run compile -C ../../../ui2abc/ui-plugins && npm run build", "build:dump": "node ../../../ui2abc/fast-arktsc --config ./ui2abcconfig.json --simultaneous --compiler-flags '--dump-plugin-ast' --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", - "build": "node ../../../ui2abc/fast-arktsc --config ./ui2abcconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", + "build": "node ../../../ui2abc/fast-arktsc --simultaneous --group-by 100 --config ./ui2abcconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", "run": "npm run build:user && mkdir -p ../../build/userPandaFiles && cp ./build/user.abc ../../build/userPandaFiles/hello.abc && npm run build:loader:node -C ../.. && ACE_LIBRARY_PATH=../../build PANDA_HOME=../../../incremental/tools/panda/node_modules/@panda/sdk node ../../build/index.js panda-ani:class=@ohos.example.src.ets.entry.Entry 10", "copy": "mkdir -p ../build && cp -r build/user.abc ../build/", "pack": "npm run clt:download && cd app && DEVECO_SDK_HOME=../$npm_package_config_sdk_path ../$npm_package_config_hvigorw_path --no-daemon --mode module -p product=default -p module=user@default assembleHar", diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets new file mode 100644 index 000000000..934d32e97 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets @@ -0,0 +1,1002 @@ +import { FLAG_OF_FILE_0 } from './file0' +import { FLAG_OF_FILE_1 } from './file1' +import { FLAG_OF_FILE_2 } from './file2' +import { FLAG_OF_FILE_3 } from './file3' +import { FLAG_OF_FILE_4 } from './file4' +import { FLAG_OF_FILE_5 } from './file5' +import { FLAG_OF_FILE_6 } from './file6' +import { FLAG_OF_FILE_7 } from './file7' +import { FLAG_OF_FILE_8 } from './file8' +import { FLAG_OF_FILE_9 } from './file9' +import { FLAG_OF_FILE_10 } from './file10' +import { FLAG_OF_FILE_11 } from './file11' +import { FLAG_OF_FILE_12 } from './file12' +import { FLAG_OF_FILE_13 } from './file13' +import { FLAG_OF_FILE_14 } from './file14' +import { FLAG_OF_FILE_15 } from './file15' +import { FLAG_OF_FILE_16 } from './file16' +import { FLAG_OF_FILE_17 } from './file17' +import { FLAG_OF_FILE_18 } from './file18' +import { FLAG_OF_FILE_19 } from './file19' +import { FLAG_OF_FILE_20 } from './file20' +import { FLAG_OF_FILE_21 } from './file21' +import { FLAG_OF_FILE_22 } from './file22' +import { FLAG_OF_FILE_23 } from './file23' +import { FLAG_OF_FILE_24 } from './file24' +import { FLAG_OF_FILE_25 } from './file25' +import { FLAG_OF_FILE_26 } from './file26' +import { FLAG_OF_FILE_27 } from './file27' +import { FLAG_OF_FILE_28 } from './file28' +import { FLAG_OF_FILE_29 } from './file29' +import { FLAG_OF_FILE_30 } from './file30' +import { FLAG_OF_FILE_31 } from './file31' +import { FLAG_OF_FILE_32 } from './file32' +import { FLAG_OF_FILE_33 } from './file33' +import { FLAG_OF_FILE_34 } from './file34' +import { FLAG_OF_FILE_35 } from './file35' +import { FLAG_OF_FILE_36 } from './file36' +import { FLAG_OF_FILE_37 } from './file37' +import { FLAG_OF_FILE_38 } from './file38' +import { FLAG_OF_FILE_39 } from './file39' +import { FLAG_OF_FILE_40 } from './file40' +import { FLAG_OF_FILE_41 } from './file41' +import { FLAG_OF_FILE_42 } from './file42' +import { FLAG_OF_FILE_43 } from './file43' +import { FLAG_OF_FILE_44 } from './file44' +import { FLAG_OF_FILE_45 } from './file45' +import { FLAG_OF_FILE_46 } from './file46' +import { FLAG_OF_FILE_47 } from './file47' +import { FLAG_OF_FILE_48 } from './file48' +import { FLAG_OF_FILE_49 } from './file49' +import { FLAG_OF_FILE_50 } from './file50' +import { FLAG_OF_FILE_51 } from './file51' +import { FLAG_OF_FILE_52 } from './file52' +import { FLAG_OF_FILE_53 } from './file53' +import { FLAG_OF_FILE_54 } from './file54' +import { FLAG_OF_FILE_55 } from './file55' +import { FLAG_OF_FILE_56 } from './file56' +import { FLAG_OF_FILE_57 } from './file57' +import { FLAG_OF_FILE_58 } from './file58' +import { FLAG_OF_FILE_59 } from './file59' +import { FLAG_OF_FILE_60 } from './file60' +import { FLAG_OF_FILE_61 } from './file61' +import { FLAG_OF_FILE_62 } from './file62' +import { FLAG_OF_FILE_63 } from './file63' +import { FLAG_OF_FILE_64 } from './file64' +import { FLAG_OF_FILE_65 } from './file65' +import { FLAG_OF_FILE_66 } from './file66' +import { FLAG_OF_FILE_67 } from './file67' +import { FLAG_OF_FILE_68 } from './file68' +import { FLAG_OF_FILE_69 } from './file69' +import { FLAG_OF_FILE_70 } from './file70' +import { FLAG_OF_FILE_71 } from './file71' +import { FLAG_OF_FILE_72 } from './file72' +import { FLAG_OF_FILE_73 } from './file73' +import { FLAG_OF_FILE_74 } from './file74' +import { FLAG_OF_FILE_75 } from './file75' +import { FLAG_OF_FILE_76 } from './file76' +import { FLAG_OF_FILE_77 } from './file77' +import { FLAG_OF_FILE_78 } from './file78' +import { FLAG_OF_FILE_79 } from './file79' +import { FLAG_OF_FILE_80 } from './file80' +import { FLAG_OF_FILE_81 } from './file81' +import { FLAG_OF_FILE_82 } from './file82' +import { FLAG_OF_FILE_83 } from './file83' +import { FLAG_OF_FILE_84 } from './file84' +import { FLAG_OF_FILE_85 } from './file85' +import { FLAG_OF_FILE_86 } from './file86' +import { FLAG_OF_FILE_87 } from './file87' +import { FLAG_OF_FILE_88 } from './file88' +import { FLAG_OF_FILE_89 } from './file89' +import { FLAG_OF_FILE_90 } from './file90' +import { FLAG_OF_FILE_91 } from './file91' +import { FLAG_OF_FILE_92 } from './file92' +import { FLAG_OF_FILE_93 } from './file93' +import { FLAG_OF_FILE_94 } from './file94' +import { FLAG_OF_FILE_95 } from './file95' +import { FLAG_OF_FILE_96 } from './file96' +import { FLAG_OF_FILE_97 } from './file97' +import { FLAG_OF_FILE_98 } from './file98' +import { FLAG_OF_FILE_99 } from './file99' +import { FLAG_OF_FILE_100 } from './file100' +import { FLAG_OF_FILE_101 } from './file101' +import { FLAG_OF_FILE_102 } from './file102' +import { FLAG_OF_FILE_103 } from './file103' +import { FLAG_OF_FILE_104 } from './file104' +import { FLAG_OF_FILE_105 } from './file105' +import { FLAG_OF_FILE_106 } from './file106' +import { FLAG_OF_FILE_107 } from './file107' +import { FLAG_OF_FILE_108 } from './file108' +import { FLAG_OF_FILE_109 } from './file109' +import { FLAG_OF_FILE_110 } from './file110' +import { FLAG_OF_FILE_111 } from './file111' +import { FLAG_OF_FILE_112 } from './file112' +import { FLAG_OF_FILE_113 } from './file113' +import { FLAG_OF_FILE_114 } from './file114' +import { FLAG_OF_FILE_115 } from './file115' +import { FLAG_OF_FILE_116 } from './file116' +import { FLAG_OF_FILE_117 } from './file117' +import { FLAG_OF_FILE_118 } from './file118' +import { FLAG_OF_FILE_119 } from './file119' +import { FLAG_OF_FILE_120 } from './file120' +import { FLAG_OF_FILE_121 } from './file121' +import { FLAG_OF_FILE_122 } from './file122' +import { FLAG_OF_FILE_123 } from './file123' +import { FLAG_OF_FILE_124 } from './file124' +import { FLAG_OF_FILE_125 } from './file125' +import { FLAG_OF_FILE_126 } from './file126' +import { FLAG_OF_FILE_127 } from './file127' +import { FLAG_OF_FILE_128 } from './file128' +import { FLAG_OF_FILE_129 } from './file129' +import { FLAG_OF_FILE_130 } from './file130' +import { FLAG_OF_FILE_131 } from './file131' +import { FLAG_OF_FILE_132 } from './file132' +import { FLAG_OF_FILE_133 } from './file133' +import { FLAG_OF_FILE_134 } from './file134' +import { FLAG_OF_FILE_135 } from './file135' +import { FLAG_OF_FILE_136 } from './file136' +import { FLAG_OF_FILE_137 } from './file137' +import { FLAG_OF_FILE_138 } from './file138' +import { FLAG_OF_FILE_139 } from './file139' +import { FLAG_OF_FILE_140 } from './file140' +import { FLAG_OF_FILE_141 } from './file141' +import { FLAG_OF_FILE_142 } from './file142' +import { FLAG_OF_FILE_143 } from './file143' +import { FLAG_OF_FILE_144 } from './file144' +import { FLAG_OF_FILE_145 } from './file145' +import { FLAG_OF_FILE_146 } from './file146' +import { FLAG_OF_FILE_147 } from './file147' +import { FLAG_OF_FILE_148 } from './file148' +import { FLAG_OF_FILE_149 } from './file149' +import { FLAG_OF_FILE_150 } from './file150' +import { FLAG_OF_FILE_151 } from './file151' +import { FLAG_OF_FILE_152 } from './file152' +import { FLAG_OF_FILE_153 } from './file153' +import { FLAG_OF_FILE_154 } from './file154' +import { FLAG_OF_FILE_155 } from './file155' +import { FLAG_OF_FILE_156 } from './file156' +import { FLAG_OF_FILE_157 } from './file157' +import { FLAG_OF_FILE_158 } from './file158' +import { FLAG_OF_FILE_159 } from './file159' +import { FLAG_OF_FILE_160 } from './file160' +import { FLAG_OF_FILE_161 } from './file161' +import { FLAG_OF_FILE_162 } from './file162' +import { FLAG_OF_FILE_163 } from './file163' +import { FLAG_OF_FILE_164 } from './file164' +import { FLAG_OF_FILE_165 } from './file165' +import { FLAG_OF_FILE_166 } from './file166' +import { FLAG_OF_FILE_167 } from './file167' +import { FLAG_OF_FILE_168 } from './file168' +import { FLAG_OF_FILE_169 } from './file169' +import { FLAG_OF_FILE_170 } from './file170' +import { FLAG_OF_FILE_171 } from './file171' +import { FLAG_OF_FILE_172 } from './file172' +import { FLAG_OF_FILE_173 } from './file173' +import { FLAG_OF_FILE_174 } from './file174' +import { FLAG_OF_FILE_175 } from './file175' +import { FLAG_OF_FILE_176 } from './file176' +import { FLAG_OF_FILE_177 } from './file177' +import { FLAG_OF_FILE_178 } from './file178' +import { FLAG_OF_FILE_179 } from './file179' +import { FLAG_OF_FILE_180 } from './file180' +import { FLAG_OF_FILE_181 } from './file181' +import { FLAG_OF_FILE_182 } from './file182' +import { FLAG_OF_FILE_183 } from './file183' +import { FLAG_OF_FILE_184 } from './file184' +import { FLAG_OF_FILE_185 } from './file185' +import { FLAG_OF_FILE_186 } from './file186' +import { FLAG_OF_FILE_187 } from './file187' +import { FLAG_OF_FILE_188 } from './file188' +import { FLAG_OF_FILE_189 } from './file189' +import { FLAG_OF_FILE_190 } from './file190' +import { FLAG_OF_FILE_191 } from './file191' +import { FLAG_OF_FILE_192 } from './file192' +import { FLAG_OF_FILE_193 } from './file193' +import { FLAG_OF_FILE_194 } from './file194' +import { FLAG_OF_FILE_195 } from './file195' +import { FLAG_OF_FILE_196 } from './file196' +import { FLAG_OF_FILE_197 } from './file197' +import { FLAG_OF_FILE_198 } from './file198' +import { FLAG_OF_FILE_199 } from './file199' +import { FLAG_OF_FILE_200 } from './file200' +import { FLAG_OF_FILE_201 } from './file201' +import { FLAG_OF_FILE_202 } from './file202' +import { FLAG_OF_FILE_203 } from './file203' +import { FLAG_OF_FILE_204 } from './file204' +import { FLAG_OF_FILE_205 } from './file205' +import { FLAG_OF_FILE_206 } from './file206' +import { FLAG_OF_FILE_207 } from './file207' +import { FLAG_OF_FILE_208 } from './file208' +import { FLAG_OF_FILE_209 } from './file209' +import { FLAG_OF_FILE_210 } from './file210' +import { FLAG_OF_FILE_211 } from './file211' +import { FLAG_OF_FILE_212 } from './file212' +import { FLAG_OF_FILE_213 } from './file213' +import { FLAG_OF_FILE_214 } from './file214' +import { FLAG_OF_FILE_215 } from './file215' +import { FLAG_OF_FILE_216 } from './file216' +import { FLAG_OF_FILE_217 } from './file217' +import { FLAG_OF_FILE_218 } from './file218' +import { FLAG_OF_FILE_219 } from './file219' +import { FLAG_OF_FILE_220 } from './file220' +import { FLAG_OF_FILE_221 } from './file221' +import { FLAG_OF_FILE_222 } from './file222' +import { FLAG_OF_FILE_223 } from './file223' +import { FLAG_OF_FILE_224 } from './file224' +import { FLAG_OF_FILE_225 } from './file225' +import { FLAG_OF_FILE_226 } from './file226' +import { FLAG_OF_FILE_227 } from './file227' +import { FLAG_OF_FILE_228 } from './file228' +import { FLAG_OF_FILE_229 } from './file229' +import { FLAG_OF_FILE_230 } from './file230' +import { FLAG_OF_FILE_231 } from './file231' +import { FLAG_OF_FILE_232 } from './file232' +import { FLAG_OF_FILE_233 } from './file233' +import { FLAG_OF_FILE_234 } from './file234' +import { FLAG_OF_FILE_235 } from './file235' +import { FLAG_OF_FILE_236 } from './file236' +import { FLAG_OF_FILE_237 } from './file237' +import { FLAG_OF_FILE_238 } from './file238' +import { FLAG_OF_FILE_239 } from './file239' +import { FLAG_OF_FILE_240 } from './file240' +import { FLAG_OF_FILE_241 } from './file241' +import { FLAG_OF_FILE_242 } from './file242' +import { FLAG_OF_FILE_243 } from './file243' +import { FLAG_OF_FILE_244 } from './file244' +import { FLAG_OF_FILE_245 } from './file245' +import { FLAG_OF_FILE_246 } from './file246' +import { FLAG_OF_FILE_247 } from './file247' +import { FLAG_OF_FILE_248 } from './file248' +import { FLAG_OF_FILE_249 } from './file249' +import { FLAG_OF_FILE_250 } from './file250' +import { FLAG_OF_FILE_251 } from './file251' +import { FLAG_OF_FILE_252 } from './file252' +import { FLAG_OF_FILE_253 } from './file253' +import { FLAG_OF_FILE_254 } from './file254' +import { FLAG_OF_FILE_255 } from './file255' +import { FLAG_OF_FILE_256 } from './file256' +import { FLAG_OF_FILE_257 } from './file257' +import { FLAG_OF_FILE_258 } from './file258' +import { FLAG_OF_FILE_259 } from './file259' +import { FLAG_OF_FILE_260 } from './file260' +import { FLAG_OF_FILE_261 } from './file261' +import { FLAG_OF_FILE_262 } from './file262' +import { FLAG_OF_FILE_263 } from './file263' +import { FLAG_OF_FILE_264 } from './file264' +import { FLAG_OF_FILE_265 } from './file265' +import { FLAG_OF_FILE_266 } from './file266' +import { FLAG_OF_FILE_267 } from './file267' +import { FLAG_OF_FILE_268 } from './file268' +import { FLAG_OF_FILE_269 } from './file269' +import { FLAG_OF_FILE_270 } from './file270' +import { FLAG_OF_FILE_271 } from './file271' +import { FLAG_OF_FILE_272 } from './file272' +import { FLAG_OF_FILE_273 } from './file273' +import { FLAG_OF_FILE_274 } from './file274' +import { FLAG_OF_FILE_275 } from './file275' +import { FLAG_OF_FILE_276 } from './file276' +import { FLAG_OF_FILE_277 } from './file277' +import { FLAG_OF_FILE_278 } from './file278' +import { FLAG_OF_FILE_279 } from './file279' +import { FLAG_OF_FILE_280 } from './file280' +import { FLAG_OF_FILE_281 } from './file281' +import { FLAG_OF_FILE_282 } from './file282' +import { FLAG_OF_FILE_283 } from './file283' +import { FLAG_OF_FILE_284 } from './file284' +import { FLAG_OF_FILE_285 } from './file285' +import { FLAG_OF_FILE_286 } from './file286' +import { FLAG_OF_FILE_287 } from './file287' +import { FLAG_OF_FILE_288 } from './file288' +import { FLAG_OF_FILE_289 } from './file289' +import { FLAG_OF_FILE_290 } from './file290' +import { FLAG_OF_FILE_291 } from './file291' +import { FLAG_OF_FILE_292 } from './file292' +import { FLAG_OF_FILE_293 } from './file293' +import { FLAG_OF_FILE_294 } from './file294' +import { FLAG_OF_FILE_295 } from './file295' +import { FLAG_OF_FILE_296 } from './file296' +import { FLAG_OF_FILE_297 } from './file297' +import { FLAG_OF_FILE_298 } from './file298' +import { FLAG_OF_FILE_299 } from './file299' +import { FLAG_OF_FILE_300 } from './file300' +import { FLAG_OF_FILE_301 } from './file301' +import { FLAG_OF_FILE_302 } from './file302' +import { FLAG_OF_FILE_303 } from './file303' +import { FLAG_OF_FILE_304 } from './file304' +import { FLAG_OF_FILE_305 } from './file305' +import { FLAG_OF_FILE_306 } from './file306' +import { FLAG_OF_FILE_307 } from './file307' +import { FLAG_OF_FILE_308 } from './file308' +import { FLAG_OF_FILE_309 } from './file309' +import { FLAG_OF_FILE_310 } from './file310' +import { FLAG_OF_FILE_311 } from './file311' +import { FLAG_OF_FILE_312 } from './file312' +import { FLAG_OF_FILE_313 } from './file313' +import { FLAG_OF_FILE_314 } from './file314' +import { FLAG_OF_FILE_315 } from './file315' +import { FLAG_OF_FILE_316 } from './file316' +import { FLAG_OF_FILE_317 } from './file317' +import { FLAG_OF_FILE_318 } from './file318' +import { FLAG_OF_FILE_319 } from './file319' +import { FLAG_OF_FILE_320 } from './file320' +import { FLAG_OF_FILE_321 } from './file321' +import { FLAG_OF_FILE_322 } from './file322' +import { FLAG_OF_FILE_323 } from './file323' +import { FLAG_OF_FILE_324 } from './file324' +import { FLAG_OF_FILE_325 } from './file325' +import { FLAG_OF_FILE_326 } from './file326' +import { FLAG_OF_FILE_327 } from './file327' +import { FLAG_OF_FILE_328 } from './file328' +import { FLAG_OF_FILE_329 } from './file329' +import { FLAG_OF_FILE_330 } from './file330' +import { FLAG_OF_FILE_331 } from './file331' +import { FLAG_OF_FILE_332 } from './file332' +import { FLAG_OF_FILE_333 } from './file333' +import { FLAG_OF_FILE_334 } from './file334' +import { FLAG_OF_FILE_335 } from './file335' +import { FLAG_OF_FILE_336 } from './file336' +import { FLAG_OF_FILE_337 } from './file337' +import { FLAG_OF_FILE_338 } from './file338' +import { FLAG_OF_FILE_339 } from './file339' +import { FLAG_OF_FILE_340 } from './file340' +import { FLAG_OF_FILE_341 } from './file341' +import { FLAG_OF_FILE_342 } from './file342' +import { FLAG_OF_FILE_343 } from './file343' +import { FLAG_OF_FILE_344 } from './file344' +import { FLAG_OF_FILE_345 } from './file345' +import { FLAG_OF_FILE_346 } from './file346' +import { FLAG_OF_FILE_347 } from './file347' +import { FLAG_OF_FILE_348 } from './file348' +import { FLAG_OF_FILE_349 } from './file349' +import { FLAG_OF_FILE_350 } from './file350' +import { FLAG_OF_FILE_351 } from './file351' +import { FLAG_OF_FILE_352 } from './file352' +import { FLAG_OF_FILE_353 } from './file353' +import { FLAG_OF_FILE_354 } from './file354' +import { FLAG_OF_FILE_355 } from './file355' +import { FLAG_OF_FILE_356 } from './file356' +import { FLAG_OF_FILE_357 } from './file357' +import { FLAG_OF_FILE_358 } from './file358' +import { FLAG_OF_FILE_359 } from './file359' +import { FLAG_OF_FILE_360 } from './file360' +import { FLAG_OF_FILE_361 } from './file361' +import { FLAG_OF_FILE_362 } from './file362' +import { FLAG_OF_FILE_363 } from './file363' +import { FLAG_OF_FILE_364 } from './file364' +import { FLAG_OF_FILE_365 } from './file365' +import { FLAG_OF_FILE_366 } from './file366' +import { FLAG_OF_FILE_367 } from './file367' +import { FLAG_OF_FILE_368 } from './file368' +import { FLAG_OF_FILE_369 } from './file369' +import { FLAG_OF_FILE_370 } from './file370' +import { FLAG_OF_FILE_371 } from './file371' +import { FLAG_OF_FILE_372 } from './file372' +import { FLAG_OF_FILE_373 } from './file373' +import { FLAG_OF_FILE_374 } from './file374' +import { FLAG_OF_FILE_375 } from './file375' +import { FLAG_OF_FILE_376 } from './file376' +import { FLAG_OF_FILE_377 } from './file377' +import { FLAG_OF_FILE_378 } from './file378' +import { FLAG_OF_FILE_379 } from './file379' +import { FLAG_OF_FILE_380 } from './file380' +import { FLAG_OF_FILE_381 } from './file381' +import { FLAG_OF_FILE_382 } from './file382' +import { FLAG_OF_FILE_383 } from './file383' +import { FLAG_OF_FILE_384 } from './file384' +import { FLAG_OF_FILE_385 } from './file385' +import { FLAG_OF_FILE_386 } from './file386' +import { FLAG_OF_FILE_387 } from './file387' +import { FLAG_OF_FILE_388 } from './file388' +import { FLAG_OF_FILE_389 } from './file389' +import { FLAG_OF_FILE_390 } from './file390' +import { FLAG_OF_FILE_391 } from './file391' +import { FLAG_OF_FILE_392 } from './file392' +import { FLAG_OF_FILE_393 } from './file393' +import { FLAG_OF_FILE_394 } from './file394' +import { FLAG_OF_FILE_395 } from './file395' +import { FLAG_OF_FILE_396 } from './file396' +import { FLAG_OF_FILE_397 } from './file397' +import { FLAG_OF_FILE_398 } from './file398' +import { FLAG_OF_FILE_399 } from './file399' +import { FLAG_OF_FILE_400 } from './file400' +import { FLAG_OF_FILE_401 } from './file401' +import { FLAG_OF_FILE_402 } from './file402' +import { FLAG_OF_FILE_403 } from './file403' +import { FLAG_OF_FILE_404 } from './file404' +import { FLAG_OF_FILE_405 } from './file405' +import { FLAG_OF_FILE_406 } from './file406' +import { FLAG_OF_FILE_407 } from './file407' +import { FLAG_OF_FILE_408 } from './file408' +import { FLAG_OF_FILE_409 } from './file409' +import { FLAG_OF_FILE_410 } from './file410' +import { FLAG_OF_FILE_411 } from './file411' +import { FLAG_OF_FILE_412 } from './file412' +import { FLAG_OF_FILE_413 } from './file413' +import { FLAG_OF_FILE_414 } from './file414' +import { FLAG_OF_FILE_415 } from './file415' +import { FLAG_OF_FILE_416 } from './file416' +import { FLAG_OF_FILE_417 } from './file417' +import { FLAG_OF_FILE_418 } from './file418' +import { FLAG_OF_FILE_419 } from './file419' +import { FLAG_OF_FILE_420 } from './file420' +import { FLAG_OF_FILE_421 } from './file421' +import { FLAG_OF_FILE_422 } from './file422' +import { FLAG_OF_FILE_423 } from './file423' +import { FLAG_OF_FILE_424 } from './file424' +import { FLAG_OF_FILE_425 } from './file425' +import { FLAG_OF_FILE_426 } from './file426' +import { FLAG_OF_FILE_427 } from './file427' +import { FLAG_OF_FILE_428 } from './file428' +import { FLAG_OF_FILE_429 } from './file429' +import { FLAG_OF_FILE_430 } from './file430' +import { FLAG_OF_FILE_431 } from './file431' +import { FLAG_OF_FILE_432 } from './file432' +import { FLAG_OF_FILE_433 } from './file433' +import { FLAG_OF_FILE_434 } from './file434' +import { FLAG_OF_FILE_435 } from './file435' +import { FLAG_OF_FILE_436 } from './file436' +import { FLAG_OF_FILE_437 } from './file437' +import { FLAG_OF_FILE_438 } from './file438' +import { FLAG_OF_FILE_439 } from './file439' +import { FLAG_OF_FILE_440 } from './file440' +import { FLAG_OF_FILE_441 } from './file441' +import { FLAG_OF_FILE_442 } from './file442' +import { FLAG_OF_FILE_443 } from './file443' +import { FLAG_OF_FILE_444 } from './file444' +import { FLAG_OF_FILE_445 } from './file445' +import { FLAG_OF_FILE_446 } from './file446' +import { FLAG_OF_FILE_447 } from './file447' +import { FLAG_OF_FILE_448 } from './file448' +import { FLAG_OF_FILE_449 } from './file449' +import { FLAG_OF_FILE_450 } from './file450' +import { FLAG_OF_FILE_451 } from './file451' +import { FLAG_OF_FILE_452 } from './file452' +import { FLAG_OF_FILE_453 } from './file453' +import { FLAG_OF_FILE_454 } from './file454' +import { FLAG_OF_FILE_455 } from './file455' +import { FLAG_OF_FILE_456 } from './file456' +import { FLAG_OF_FILE_457 } from './file457' +import { FLAG_OF_FILE_458 } from './file458' +import { FLAG_OF_FILE_459 } from './file459' +import { FLAG_OF_FILE_460 } from './file460' +import { FLAG_OF_FILE_461 } from './file461' +import { FLAG_OF_FILE_462 } from './file462' +import { FLAG_OF_FILE_463 } from './file463' +import { FLAG_OF_FILE_464 } from './file464' +import { FLAG_OF_FILE_465 } from './file465' +import { FLAG_OF_FILE_466 } from './file466' +import { FLAG_OF_FILE_467 } from './file467' +import { FLAG_OF_FILE_468 } from './file468' +import { FLAG_OF_FILE_469 } from './file469' +import { FLAG_OF_FILE_470 } from './file470' +import { FLAG_OF_FILE_471 } from './file471' +import { FLAG_OF_FILE_472 } from './file472' +import { FLAG_OF_FILE_473 } from './file473' +import { FLAG_OF_FILE_474 } from './file474' +import { FLAG_OF_FILE_475 } from './file475' +import { FLAG_OF_FILE_476 } from './file476' +import { FLAG_OF_FILE_477 } from './file477' +import { FLAG_OF_FILE_478 } from './file478' +import { FLAG_OF_FILE_479 } from './file479' +import { FLAG_OF_FILE_480 } from './file480' +import { FLAG_OF_FILE_481 } from './file481' +import { FLAG_OF_FILE_482 } from './file482' +import { FLAG_OF_FILE_483 } from './file483' +import { FLAG_OF_FILE_484 } from './file484' +import { FLAG_OF_FILE_485 } from './file485' +import { FLAG_OF_FILE_486 } from './file486' +import { FLAG_OF_FILE_487 } from './file487' +import { FLAG_OF_FILE_488 } from './file488' +import { FLAG_OF_FILE_489 } from './file489' +import { FLAG_OF_FILE_490 } from './file490' +import { FLAG_OF_FILE_491 } from './file491' +import { FLAG_OF_FILE_492 } from './file492' +import { FLAG_OF_FILE_493 } from './file493' +import { FLAG_OF_FILE_494 } from './file494' +import { FLAG_OF_FILE_495 } from './file495' +import { FLAG_OF_FILE_496 } from './file496' +import { FLAG_OF_FILE_497 } from './file497' +import { FLAG_OF_FILE_498 } from './file498' +import { FLAG_OF_FILE_499 } from './file499' +let s0 = FLAG_OF_FILE_0 +let s1 = FLAG_OF_FILE_1 +let s2 = FLAG_OF_FILE_2 +let s3 = FLAG_OF_FILE_3 +let s4 = FLAG_OF_FILE_4 +let s5 = FLAG_OF_FILE_5 +let s6 = FLAG_OF_FILE_6 +let s7 = FLAG_OF_FILE_7 +let s8 = FLAG_OF_FILE_8 +let s9 = FLAG_OF_FILE_9 +let s10 = FLAG_OF_FILE_10 +let s11 = FLAG_OF_FILE_11 +let s12 = FLAG_OF_FILE_12 +let s13 = FLAG_OF_FILE_13 +let s14 = FLAG_OF_FILE_14 +let s15 = FLAG_OF_FILE_15 +let s16 = FLAG_OF_FILE_16 +let s17 = FLAG_OF_FILE_17 +let s18 = FLAG_OF_FILE_18 +let s19 = FLAG_OF_FILE_19 +let s20 = FLAG_OF_FILE_20 +let s21 = FLAG_OF_FILE_21 +let s22 = FLAG_OF_FILE_22 +let s23 = FLAG_OF_FILE_23 +let s24 = FLAG_OF_FILE_24 +let s25 = FLAG_OF_FILE_25 +let s26 = FLAG_OF_FILE_26 +let s27 = FLAG_OF_FILE_27 +let s28 = FLAG_OF_FILE_28 +let s29 = FLAG_OF_FILE_29 +let s30 = FLAG_OF_FILE_30 +let s31 = FLAG_OF_FILE_31 +let s32 = FLAG_OF_FILE_32 +let s33 = FLAG_OF_FILE_33 +let s34 = FLAG_OF_FILE_34 +let s35 = FLAG_OF_FILE_35 +let s36 = FLAG_OF_FILE_36 +let s37 = FLAG_OF_FILE_37 +let s38 = FLAG_OF_FILE_38 +let s39 = FLAG_OF_FILE_39 +let s40 = FLAG_OF_FILE_40 +let s41 = FLAG_OF_FILE_41 +let s42 = FLAG_OF_FILE_42 +let s43 = FLAG_OF_FILE_43 +let s44 = FLAG_OF_FILE_44 +let s45 = FLAG_OF_FILE_45 +let s46 = FLAG_OF_FILE_46 +let s47 = FLAG_OF_FILE_47 +let s48 = FLAG_OF_FILE_48 +let s49 = FLAG_OF_FILE_49 +let s50 = FLAG_OF_FILE_50 +let s51 = FLAG_OF_FILE_51 +let s52 = FLAG_OF_FILE_52 +let s53 = FLAG_OF_FILE_53 +let s54 = FLAG_OF_FILE_54 +let s55 = FLAG_OF_FILE_55 +let s56 = FLAG_OF_FILE_56 +let s57 = FLAG_OF_FILE_57 +let s58 = FLAG_OF_FILE_58 +let s59 = FLAG_OF_FILE_59 +let s60 = FLAG_OF_FILE_60 +let s61 = FLAG_OF_FILE_61 +let s62 = FLAG_OF_FILE_62 +let s63 = FLAG_OF_FILE_63 +let s64 = FLAG_OF_FILE_64 +let s65 = FLAG_OF_FILE_65 +let s66 = FLAG_OF_FILE_66 +let s67 = FLAG_OF_FILE_67 +let s68 = FLAG_OF_FILE_68 +let s69 = FLAG_OF_FILE_69 +let s70 = FLAG_OF_FILE_70 +let s71 = FLAG_OF_FILE_71 +let s72 = FLAG_OF_FILE_72 +let s73 = FLAG_OF_FILE_73 +let s74 = FLAG_OF_FILE_74 +let s75 = FLAG_OF_FILE_75 +let s76 = FLAG_OF_FILE_76 +let s77 = FLAG_OF_FILE_77 +let s78 = FLAG_OF_FILE_78 +let s79 = FLAG_OF_FILE_79 +let s80 = FLAG_OF_FILE_80 +let s81 = FLAG_OF_FILE_81 +let s82 = FLAG_OF_FILE_82 +let s83 = FLAG_OF_FILE_83 +let s84 = FLAG_OF_FILE_84 +let s85 = FLAG_OF_FILE_85 +let s86 = FLAG_OF_FILE_86 +let s87 = FLAG_OF_FILE_87 +let s88 = FLAG_OF_FILE_88 +let s89 = FLAG_OF_FILE_89 +let s90 = FLAG_OF_FILE_90 +let s91 = FLAG_OF_FILE_91 +let s92 = FLAG_OF_FILE_92 +let s93 = FLAG_OF_FILE_93 +let s94 = FLAG_OF_FILE_94 +let s95 = FLAG_OF_FILE_95 +let s96 = FLAG_OF_FILE_96 +let s97 = FLAG_OF_FILE_97 +let s98 = FLAG_OF_FILE_98 +let s99 = FLAG_OF_FILE_99 +let s100 = FLAG_OF_FILE_100 +let s101 = FLAG_OF_FILE_101 +let s102 = FLAG_OF_FILE_102 +let s103 = FLAG_OF_FILE_103 +let s104 = FLAG_OF_FILE_104 +let s105 = FLAG_OF_FILE_105 +let s106 = FLAG_OF_FILE_106 +let s107 = FLAG_OF_FILE_107 +let s108 = FLAG_OF_FILE_108 +let s109 = FLAG_OF_FILE_109 +let s110 = FLAG_OF_FILE_110 +let s111 = FLAG_OF_FILE_111 +let s112 = FLAG_OF_FILE_112 +let s113 = FLAG_OF_FILE_113 +let s114 = FLAG_OF_FILE_114 +let s115 = FLAG_OF_FILE_115 +let s116 = FLAG_OF_FILE_116 +let s117 = FLAG_OF_FILE_117 +let s118 = FLAG_OF_FILE_118 +let s119 = FLAG_OF_FILE_119 +let s120 = FLAG_OF_FILE_120 +let s121 = FLAG_OF_FILE_121 +let s122 = FLAG_OF_FILE_122 +let s123 = FLAG_OF_FILE_123 +let s124 = FLAG_OF_FILE_124 +let s125 = FLAG_OF_FILE_125 +let s126 = FLAG_OF_FILE_126 +let s127 = FLAG_OF_FILE_127 +let s128 = FLAG_OF_FILE_128 +let s129 = FLAG_OF_FILE_129 +let s130 = FLAG_OF_FILE_130 +let s131 = FLAG_OF_FILE_131 +let s132 = FLAG_OF_FILE_132 +let s133 = FLAG_OF_FILE_133 +let s134 = FLAG_OF_FILE_134 +let s135 = FLAG_OF_FILE_135 +let s136 = FLAG_OF_FILE_136 +let s137 = FLAG_OF_FILE_137 +let s138 = FLAG_OF_FILE_138 +let s139 = FLAG_OF_FILE_139 +let s140 = FLAG_OF_FILE_140 +let s141 = FLAG_OF_FILE_141 +let s142 = FLAG_OF_FILE_142 +let s143 = FLAG_OF_FILE_143 +let s144 = FLAG_OF_FILE_144 +let s145 = FLAG_OF_FILE_145 +let s146 = FLAG_OF_FILE_146 +let s147 = FLAG_OF_FILE_147 +let s148 = FLAG_OF_FILE_148 +let s149 = FLAG_OF_FILE_149 +let s150 = FLAG_OF_FILE_150 +let s151 = FLAG_OF_FILE_151 +let s152 = FLAG_OF_FILE_152 +let s153 = FLAG_OF_FILE_153 +let s154 = FLAG_OF_FILE_154 +let s155 = FLAG_OF_FILE_155 +let s156 = FLAG_OF_FILE_156 +let s157 = FLAG_OF_FILE_157 +let s158 = FLAG_OF_FILE_158 +let s159 = FLAG_OF_FILE_159 +let s160 = FLAG_OF_FILE_160 +let s161 = FLAG_OF_FILE_161 +let s162 = FLAG_OF_FILE_162 +let s163 = FLAG_OF_FILE_163 +let s164 = FLAG_OF_FILE_164 +let s165 = FLAG_OF_FILE_165 +let s166 = FLAG_OF_FILE_166 +let s167 = FLAG_OF_FILE_167 +let s168 = FLAG_OF_FILE_168 +let s169 = FLAG_OF_FILE_169 +let s170 = FLAG_OF_FILE_170 +let s171 = FLAG_OF_FILE_171 +let s172 = FLAG_OF_FILE_172 +let s173 = FLAG_OF_FILE_173 +let s174 = FLAG_OF_FILE_174 +let s175 = FLAG_OF_FILE_175 +let s176 = FLAG_OF_FILE_176 +let s177 = FLAG_OF_FILE_177 +let s178 = FLAG_OF_FILE_178 +let s179 = FLAG_OF_FILE_179 +let s180 = FLAG_OF_FILE_180 +let s181 = FLAG_OF_FILE_181 +let s182 = FLAG_OF_FILE_182 +let s183 = FLAG_OF_FILE_183 +let s184 = FLAG_OF_FILE_184 +let s185 = FLAG_OF_FILE_185 +let s186 = FLAG_OF_FILE_186 +let s187 = FLAG_OF_FILE_187 +let s188 = FLAG_OF_FILE_188 +let s189 = FLAG_OF_FILE_189 +let s190 = FLAG_OF_FILE_190 +let s191 = FLAG_OF_FILE_191 +let s192 = FLAG_OF_FILE_192 +let s193 = FLAG_OF_FILE_193 +let s194 = FLAG_OF_FILE_194 +let s195 = FLAG_OF_FILE_195 +let s196 = FLAG_OF_FILE_196 +let s197 = FLAG_OF_FILE_197 +let s198 = FLAG_OF_FILE_198 +let s199 = FLAG_OF_FILE_199 +let s200 = FLAG_OF_FILE_200 +let s201 = FLAG_OF_FILE_201 +let s202 = FLAG_OF_FILE_202 +let s203 = FLAG_OF_FILE_203 +let s204 = FLAG_OF_FILE_204 +let s205 = FLAG_OF_FILE_205 +let s206 = FLAG_OF_FILE_206 +let s207 = FLAG_OF_FILE_207 +let s208 = FLAG_OF_FILE_208 +let s209 = FLAG_OF_FILE_209 +let s210 = FLAG_OF_FILE_210 +let s211 = FLAG_OF_FILE_211 +let s212 = FLAG_OF_FILE_212 +let s213 = FLAG_OF_FILE_213 +let s214 = FLAG_OF_FILE_214 +let s215 = FLAG_OF_FILE_215 +let s216 = FLAG_OF_FILE_216 +let s217 = FLAG_OF_FILE_217 +let s218 = FLAG_OF_FILE_218 +let s219 = FLAG_OF_FILE_219 +let s220 = FLAG_OF_FILE_220 +let s221 = FLAG_OF_FILE_221 +let s222 = FLAG_OF_FILE_222 +let s223 = FLAG_OF_FILE_223 +let s224 = FLAG_OF_FILE_224 +let s225 = FLAG_OF_FILE_225 +let s226 = FLAG_OF_FILE_226 +let s227 = FLAG_OF_FILE_227 +let s228 = FLAG_OF_FILE_228 +let s229 = FLAG_OF_FILE_229 +let s230 = FLAG_OF_FILE_230 +let s231 = FLAG_OF_FILE_231 +let s232 = FLAG_OF_FILE_232 +let s233 = FLAG_OF_FILE_233 +let s234 = FLAG_OF_FILE_234 +let s235 = FLAG_OF_FILE_235 +let s236 = FLAG_OF_FILE_236 +let s237 = FLAG_OF_FILE_237 +let s238 = FLAG_OF_FILE_238 +let s239 = FLAG_OF_FILE_239 +let s240 = FLAG_OF_FILE_240 +let s241 = FLAG_OF_FILE_241 +let s242 = FLAG_OF_FILE_242 +let s243 = FLAG_OF_FILE_243 +let s244 = FLAG_OF_FILE_244 +let s245 = FLAG_OF_FILE_245 +let s246 = FLAG_OF_FILE_246 +let s247 = FLAG_OF_FILE_247 +let s248 = FLAG_OF_FILE_248 +let s249 = FLAG_OF_FILE_249 +let s250 = FLAG_OF_FILE_250 +let s251 = FLAG_OF_FILE_251 +let s252 = FLAG_OF_FILE_252 +let s253 = FLAG_OF_FILE_253 +let s254 = FLAG_OF_FILE_254 +let s255 = FLAG_OF_FILE_255 +let s256 = FLAG_OF_FILE_256 +let s257 = FLAG_OF_FILE_257 +let s258 = FLAG_OF_FILE_258 +let s259 = FLAG_OF_FILE_259 +let s260 = FLAG_OF_FILE_260 +let s261 = FLAG_OF_FILE_261 +let s262 = FLAG_OF_FILE_262 +let s263 = FLAG_OF_FILE_263 +let s264 = FLAG_OF_FILE_264 +let s265 = FLAG_OF_FILE_265 +let s266 = FLAG_OF_FILE_266 +let s267 = FLAG_OF_FILE_267 +let s268 = FLAG_OF_FILE_268 +let s269 = FLAG_OF_FILE_269 +let s270 = FLAG_OF_FILE_270 +let s271 = FLAG_OF_FILE_271 +let s272 = FLAG_OF_FILE_272 +let s273 = FLAG_OF_FILE_273 +let s274 = FLAG_OF_FILE_274 +let s275 = FLAG_OF_FILE_275 +let s276 = FLAG_OF_FILE_276 +let s277 = FLAG_OF_FILE_277 +let s278 = FLAG_OF_FILE_278 +let s279 = FLAG_OF_FILE_279 +let s280 = FLAG_OF_FILE_280 +let s281 = FLAG_OF_FILE_281 +let s282 = FLAG_OF_FILE_282 +let s283 = FLAG_OF_FILE_283 +let s284 = FLAG_OF_FILE_284 +let s285 = FLAG_OF_FILE_285 +let s286 = FLAG_OF_FILE_286 +let s287 = FLAG_OF_FILE_287 +let s288 = FLAG_OF_FILE_288 +let s289 = FLAG_OF_FILE_289 +let s290 = FLAG_OF_FILE_290 +let s291 = FLAG_OF_FILE_291 +let s292 = FLAG_OF_FILE_292 +let s293 = FLAG_OF_FILE_293 +let s294 = FLAG_OF_FILE_294 +let s295 = FLAG_OF_FILE_295 +let s296 = FLAG_OF_FILE_296 +let s297 = FLAG_OF_FILE_297 +let s298 = FLAG_OF_FILE_298 +let s299 = FLAG_OF_FILE_299 +let s300 = FLAG_OF_FILE_300 +let s301 = FLAG_OF_FILE_301 +let s302 = FLAG_OF_FILE_302 +let s303 = FLAG_OF_FILE_303 +let s304 = FLAG_OF_FILE_304 +let s305 = FLAG_OF_FILE_305 +let s306 = FLAG_OF_FILE_306 +let s307 = FLAG_OF_FILE_307 +let s308 = FLAG_OF_FILE_308 +let s309 = FLAG_OF_FILE_309 +let s310 = FLAG_OF_FILE_310 +let s311 = FLAG_OF_FILE_311 +let s312 = FLAG_OF_FILE_312 +let s313 = FLAG_OF_FILE_313 +let s314 = FLAG_OF_FILE_314 +let s315 = FLAG_OF_FILE_315 +let s316 = FLAG_OF_FILE_316 +let s317 = FLAG_OF_FILE_317 +let s318 = FLAG_OF_FILE_318 +let s319 = FLAG_OF_FILE_319 +let s320 = FLAG_OF_FILE_320 +let s321 = FLAG_OF_FILE_321 +let s322 = FLAG_OF_FILE_322 +let s323 = FLAG_OF_FILE_323 +let s324 = FLAG_OF_FILE_324 +let s325 = FLAG_OF_FILE_325 +let s326 = FLAG_OF_FILE_326 +let s327 = FLAG_OF_FILE_327 +let s328 = FLAG_OF_FILE_328 +let s329 = FLAG_OF_FILE_329 +let s330 = FLAG_OF_FILE_330 +let s331 = FLAG_OF_FILE_331 +let s332 = FLAG_OF_FILE_332 +let s333 = FLAG_OF_FILE_333 +let s334 = FLAG_OF_FILE_334 +let s335 = FLAG_OF_FILE_335 +let s336 = FLAG_OF_FILE_336 +let s337 = FLAG_OF_FILE_337 +let s338 = FLAG_OF_FILE_338 +let s339 = FLAG_OF_FILE_339 +let s340 = FLAG_OF_FILE_340 +let s341 = FLAG_OF_FILE_341 +let s342 = FLAG_OF_FILE_342 +let s343 = FLAG_OF_FILE_343 +let s344 = FLAG_OF_FILE_344 +let s345 = FLAG_OF_FILE_345 +let s346 = FLAG_OF_FILE_346 +let s347 = FLAG_OF_FILE_347 +let s348 = FLAG_OF_FILE_348 +let s349 = FLAG_OF_FILE_349 +let s350 = FLAG_OF_FILE_350 +let s351 = FLAG_OF_FILE_351 +let s352 = FLAG_OF_FILE_352 +let s353 = FLAG_OF_FILE_353 +let s354 = FLAG_OF_FILE_354 +let s355 = FLAG_OF_FILE_355 +let s356 = FLAG_OF_FILE_356 +let s357 = FLAG_OF_FILE_357 +let s358 = FLAG_OF_FILE_358 +let s359 = FLAG_OF_FILE_359 +let s360 = FLAG_OF_FILE_360 +let s361 = FLAG_OF_FILE_361 +let s362 = FLAG_OF_FILE_362 +let s363 = FLAG_OF_FILE_363 +let s364 = FLAG_OF_FILE_364 +let s365 = FLAG_OF_FILE_365 +let s366 = FLAG_OF_FILE_366 +let s367 = FLAG_OF_FILE_367 +let s368 = FLAG_OF_FILE_368 +let s369 = FLAG_OF_FILE_369 +let s370 = FLAG_OF_FILE_370 +let s371 = FLAG_OF_FILE_371 +let s372 = FLAG_OF_FILE_372 +let s373 = FLAG_OF_FILE_373 +let s374 = FLAG_OF_FILE_374 +let s375 = FLAG_OF_FILE_375 +let s376 = FLAG_OF_FILE_376 +let s377 = FLAG_OF_FILE_377 +let s378 = FLAG_OF_FILE_378 +let s379 = FLAG_OF_FILE_379 +let s380 = FLAG_OF_FILE_380 +let s381 = FLAG_OF_FILE_381 +let s382 = FLAG_OF_FILE_382 +let s383 = FLAG_OF_FILE_383 +let s384 = FLAG_OF_FILE_384 +let s385 = FLAG_OF_FILE_385 +let s386 = FLAG_OF_FILE_386 +let s387 = FLAG_OF_FILE_387 +let s388 = FLAG_OF_FILE_388 +let s389 = FLAG_OF_FILE_389 +let s390 = FLAG_OF_FILE_390 +let s391 = FLAG_OF_FILE_391 +let s392 = FLAG_OF_FILE_392 +let s393 = FLAG_OF_FILE_393 +let s394 = FLAG_OF_FILE_394 +let s395 = FLAG_OF_FILE_395 +let s396 = FLAG_OF_FILE_396 +let s397 = FLAG_OF_FILE_397 +let s398 = FLAG_OF_FILE_398 +let s399 = FLAG_OF_FILE_399 +let s400 = FLAG_OF_FILE_400 +let s401 = FLAG_OF_FILE_401 +let s402 = FLAG_OF_FILE_402 +let s403 = FLAG_OF_FILE_403 +let s404 = FLAG_OF_FILE_404 +let s405 = FLAG_OF_FILE_405 +let s406 = FLAG_OF_FILE_406 +let s407 = FLAG_OF_FILE_407 +let s408 = FLAG_OF_FILE_408 +let s409 = FLAG_OF_FILE_409 +let s410 = FLAG_OF_FILE_410 +let s411 = FLAG_OF_FILE_411 +let s412 = FLAG_OF_FILE_412 +let s413 = FLAG_OF_FILE_413 +let s414 = FLAG_OF_FILE_414 +let s415 = FLAG_OF_FILE_415 +let s416 = FLAG_OF_FILE_416 +let s417 = FLAG_OF_FILE_417 +let s418 = FLAG_OF_FILE_418 +let s419 = FLAG_OF_FILE_419 +let s420 = FLAG_OF_FILE_420 +let s421 = FLAG_OF_FILE_421 +let s422 = FLAG_OF_FILE_422 +let s423 = FLAG_OF_FILE_423 +let s424 = FLAG_OF_FILE_424 +let s425 = FLAG_OF_FILE_425 +let s426 = FLAG_OF_FILE_426 +let s427 = FLAG_OF_FILE_427 +let s428 = FLAG_OF_FILE_428 +let s429 = FLAG_OF_FILE_429 +let s430 = FLAG_OF_FILE_430 +let s431 = FLAG_OF_FILE_431 +let s432 = FLAG_OF_FILE_432 +let s433 = FLAG_OF_FILE_433 +let s434 = FLAG_OF_FILE_434 +let s435 = FLAG_OF_FILE_435 +let s436 = FLAG_OF_FILE_436 +let s437 = FLAG_OF_FILE_437 +let s438 = FLAG_OF_FILE_438 +let s439 = FLAG_OF_FILE_439 +let s440 = FLAG_OF_FILE_440 +let s441 = FLAG_OF_FILE_441 +let s442 = FLAG_OF_FILE_442 +let s443 = FLAG_OF_FILE_443 +let s444 = FLAG_OF_FILE_444 +let s445 = FLAG_OF_FILE_445 +let s446 = FLAG_OF_FILE_446 +let s447 = FLAG_OF_FILE_447 +let s448 = FLAG_OF_FILE_448 +let s449 = FLAG_OF_FILE_449 +let s450 = FLAG_OF_FILE_450 +let s451 = FLAG_OF_FILE_451 +let s452 = FLAG_OF_FILE_452 +let s453 = FLAG_OF_FILE_453 +let s454 = FLAG_OF_FILE_454 +let s455 = FLAG_OF_FILE_455 +let s456 = FLAG_OF_FILE_456 +let s457 = FLAG_OF_FILE_457 +let s458 = FLAG_OF_FILE_458 +let s459 = FLAG_OF_FILE_459 +let s460 = FLAG_OF_FILE_460 +let s461 = FLAG_OF_FILE_461 +let s462 = FLAG_OF_FILE_462 +let s463 = FLAG_OF_FILE_463 +let s464 = FLAG_OF_FILE_464 +let s465 = FLAG_OF_FILE_465 +let s466 = FLAG_OF_FILE_466 +let s467 = FLAG_OF_FILE_467 +let s468 = FLAG_OF_FILE_468 +let s469 = FLAG_OF_FILE_469 +let s470 = FLAG_OF_FILE_470 +let s471 = FLAG_OF_FILE_471 +let s472 = FLAG_OF_FILE_472 +let s473 = FLAG_OF_FILE_473 +let s474 = FLAG_OF_FILE_474 +let s475 = FLAG_OF_FILE_475 +let s476 = FLAG_OF_FILE_476 +let s477 = FLAG_OF_FILE_477 +let s478 = FLAG_OF_FILE_478 +let s479 = FLAG_OF_FILE_479 +let s480 = FLAG_OF_FILE_480 +let s481 = FLAG_OF_FILE_481 +let s482 = FLAG_OF_FILE_482 +let s483 = FLAG_OF_FILE_483 +let s484 = FLAG_OF_FILE_484 +let s485 = FLAG_OF_FILE_485 +let s486 = FLAG_OF_FILE_486 +let s487 = FLAG_OF_FILE_487 +let s488 = FLAG_OF_FILE_488 +let s489 = FLAG_OF_FILE_489 +let s490 = FLAG_OF_FILE_490 +let s491 = FLAG_OF_FILE_491 +let s492 = FLAG_OF_FILE_492 +let s493 = FLAG_OF_FILE_493 +let s494 = FLAG_OF_FILE_494 +let s495 = FLAG_OF_FILE_495 +let s496 = FLAG_OF_FILE_496 +let s497 = FLAG_OF_FILE_497 +let s498 = FLAG_OF_FILE_498 +let s499 = FLAG_OF_FILE_499 + +export const INDEX_FLAG: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets new file mode 100644 index 000000000..927d16a7c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets @@ -0,0 +1,310 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import promptAction from '@ohos.promptAction'; + +import { BusinessError } from '@ohos.base'; + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Component, Column, TextController,DragEvent,ColumnOptions, + Text,TextInput,CopyOptions,Color,Margin,DragResult,Rectangle, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, + ClickEvent,Visibility,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.ets + + +@Component +struct UIAttributesImageeffectInterface0090 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.ets + + +@Component +struct UIAttributesColorrampInterface0590{ + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State repeat:boolean=false; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.repeat=true + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.repeat=false + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0080.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0080 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragForeground/ActionEventCommoneventDragForeground0130.ets + + +@Component +struct ActionEventCommoneventDragForeground0130 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + @State wid: number = 100 + @State hei: number = 100 + @State input: string = 'abcabc' + private textController: TextController = new TextController() + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 0, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + this.backAnimator!.onFinish = () => { + _this.flag = true + console.info(_this.TAG, 'backAnimator onfinish') + } + this.backAnimator!.onRepeat = () => { + console.info(_this.TAG, 'backAnimator repeat') + } + this.backAnimator!.onCancel = () => { + console.info(_this.TAG, 'backAnimator cancel') + } + this.backAnimator!.onFrame = (value: number) => { + _this.wid = value + _this.hei = value + } + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag'}`) + TextInput({ placeholder: '请拖入内容', text: this.input }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .foregroundColor(Color.Yellow) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + if (this.backAnimator) { + this.backAnimator?.play() + } + event.useCustomDropAnimation = true; + }) + Text('可拖入文本') + .draggable(true) + .margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .foregroundColor(Color.Yellow) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + event.useCustomDropAnimation = true; + event.setResult(DragResult.DRAG_SUCCESSFUL); + if (this.backAnimator) { + this.backAnimator?.play() + } + }) + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0140.ets + + +@Component +struct ActionEventCommoneventDragText0140 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0150.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0150 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_0: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets new file mode 100644 index 000000000..1cd6d9629 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets @@ -0,0 +1,402 @@ +import { + Color, + Entry, + ObscuredReasons, + Component, + ClickEvent, + Row, + Column, + Text, + Image, + Button, + FlexAlign +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + FontWeight, + MenuItem, + ObscuredReasons, + Menu, + ImageSize, + Menu, + Builder, + MenuItemOptions, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid010.ets + +@Component +struct UIComponentGrid010 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + @State gridWidthStart: number = 50 + @State gridHeightStart: number = 90 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 6; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + GridItem() { + Text("0") + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.gridHeightStart) + .width(this.gridWidthStart) + }.borderWidth(2).borderColor(Color.Red) + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .width(300) + .height(600) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .cellLength(0) + Button('Width increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 90 + this.gridWidthStart = 160 + }).id('btn01') + Button('Height increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 300 + this.gridWidthStart = 50 + }).id('btn02') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.ets + + +@Component +struct UIAttributesColorrampInterface0550 { + @State repeat: boolean = false; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd2') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.repeat = true + this.btnShow = Visibility.None + } else { + this.repeat= false + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.ets + + +@Component +struct UIAttributesShapecroppingInterface0020 { + build() { + Column({ space: 3 } as ColumnOptions) { + Image('cat.jpg') + .width("100%") + Text('不设置clip效果') + Image('cat.jpg') + .width("100%") + .margin({ top: 8 } as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic11.ets + +@Component +struct buttonDynamicExample11 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = true + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button11') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0190.ets + + +@Component +struct ActionEventCommoneventDragInput0190 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets + + +@Component +struct UIAttributesBackgroundInterface093 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({} as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets + + +@Component +struct UIAttributesSelectedStyle0140 { + @State select: boolean = false; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + } as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0140') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets + + +@Component +struct UIComponentMediaImageMask0020 { + @State isShow: boolean = true + @State borderW: number = 1; + @State borderC: number = Color.White; + @State changeAppear: string = '点我卸载挂载组件' + build() { + Row() { + Column() { + if (this.isShow) { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + Button(this.changeAppear).onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + this.isShow = !this.isShow + }).id('mask0020_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + + +export const FLAG_OF_FILE_1: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets new file mode 100644 index 000000000..df128c766 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets @@ -0,0 +1,433 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState,OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,Stack,Alignment,ClickEvent, + ForEach,TextAlign,Text,BarState,Padding,Button,Flex,cursorControl,FlexDirection,ItemAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0130.ets + + +@Component +struct ActionEventCommonEventMouseStyle0130 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0130_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0130" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0130_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.ets + + +@Component +struct UIAttributesModaltransitionVision0310 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0270047.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0270047 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onScrollFrameBegin((offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + this.msgInfo= "trigger Grid onScrollFrameBegin" + return { offsetRemain: offset } + } as OnScrollFrameBeginCallback|undefined) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0270047'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic8.ets + +@Component +struct buttonDynamicExample8 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button8') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_016.ets + +@Component +struct Grid06 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsTemplate属性值为0fr').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('0fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets + + +@Component +struct UIAttributesBackgroundInterface0420 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: 90, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0100_565.ets + + +@Component +struct UIComponentListandgridGridInterface_0100_565 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_10: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets new file mode 100644 index 000000000..95eb4ec2d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets @@ -0,0 +1,408 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rect,FlexAlign,Color,Margin,Text,RectOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + NavDestination,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0290 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets + + +@Component +struct UIAttributesImageEffectProjection0130 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets + + +@Component +struct UIAttributesBackgroundInterface0540 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets + + +@Component +struct UIAttributesImageEffectProjection0190 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:50, y:50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0420 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0420_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0420_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0420_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Rect({ + width: '90%', + height: 80 + } as RectOptions) + .fill(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0420_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0430.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0430 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: (curves.springMotion(0.8, 0.4) as ICurve) } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0030.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0030 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0100.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0100 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_FILL) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0030.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(false) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0110629.ets + + +@Component +struct UIComponentListandgridXommonSmooth0110629 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0110629') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0110629_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0110629_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_100: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets new file mode 100644 index 000000000..f60927cfe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets @@ -0,0 +1,393 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, GridItem, Blank, GridDirection, Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Line, + Color,Blank,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,Callback,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,GestureEvent,Text,Color,Button,Margin,GestureGroup, + GestureMode,LongPressGesture,PanGesture +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0150.ets + + +@Component +struct ActionEventControlCallback0150 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Button('Button1') + .id("ActionEventControlCallback0150_01") + .width(80) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + this.change = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + }) + .onActionUpdate((event?: GestureEvent) => { + }) + .onActionEnd(() => { + }) + ) + ) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0200_308.ets + + +@Component +struct UIComponentListandgridGridInterface_0200_308 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Off) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0020_579.ets + + +@Component +struct UIComponentListandgridGridEvents_0020_579 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragEnter((event: ItemDragInfo) => { + this.text1 = 'onItemDragEnter'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0210 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + Blank() + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/rowsGapsCellLength.ets + +@Component +struct GridExample { + @State numbers: Array = new Array() + @State rowsGap: number = 10 + @State cellLength: number = 0 + aboutToAppear() { + for (let i = 1; i <= 10; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(this.rowsGap) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(this.cellLength) + .layoutDirection(GridDirection.Row) + Button('') + .id('rowsGap_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.rowsGap+=2 + }) + Button('') + .id('cellLength_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.cellLength+=50 + }) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0020 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_101: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets new file mode 100644 index 000000000..09ac4c15f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets @@ -0,0 +1,407 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions,BlurStyle, + $$,SheetSize,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput,Margin,SearchOptions,TextInputOptions,SearchController, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,RowSplit,Text,TextAlign,ListScroller,List, + ListItem,Axis, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets + + +@Component +struct UIAttributesImageEffectProjection0180 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:0, y:0} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0070 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .width('80%') + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets + + +@Component +struct UIAttributesBackgroundInterface0200 { + build() { + Column() { + Row() { + Text("Regular") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Regular) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.ets + + +@Component +struct UIAttributesTransparencyInterface0020 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0.5') + .onClick((e:ClickEvent) => { + this.opacityValue = 0.5; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0090.ets + + +@Component +struct UIAttributesFocuscontrolInterface0090 { + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + Button("3") + .focusOnTouch(false) + Button("focusOnTouch true") + .id('UIComponentCommonattrResult0030_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(false) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0390 { + listScroller: ListScroller = new ListScroller() + build() { + Column() { + List({scroller:this.listScroller }){ + ListItem(){ + RowSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + }.listDirection(Axis.Horizontal) + .id('button') + .height('100%') + .width('100%') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0130.ets + + +@Component +struct UIAttributesBcakgroundSeriable0130 { + @State top: number = 220 + @State bottom: number = 20 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.ets + + +@Component +struct UIAttributesColorrampInterface0390 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:false + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0110.ets + + +@Component +struct UIAttributesFocuscontrolInterface0110 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + .groupDefaultFocus(true) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0020.ets + + +@Component +struct ActionEventCommoneventClickDfx0020 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0020") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxModalTransition/ComponentPopupBoxModalTransitionStyle0010.ets + + +@Component +struct ComponentPopupBoxModalTransitionStyle0010 { + @State isShow: Boolean = false; + @Builder + myBuilder() { + Column() { + Button('') { + Text("CONTEXT") + }.height(50).width(200) + } + } + build() { + Column() { + Button("show builder") + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.MEDIUM, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" }, + preferType: SheetType.CENTER, + offset: { x: '-50vp', y: '-50vp' } + } as SheetOptions).id('ComponentPopupBoxModalTransitionStyle0010_button_01') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.ets + + +@Component +struct UIAttributesImageeffectInterface0080 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(-10) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_102: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets new file mode 100644 index 000000000..dea0f1cbf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets @@ -0,0 +1,410 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + Scroll,ForEach, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.ets + + +@Component +struct UIAttributesModaltransitionInteration0080 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor:'#88000000', + enableOutsideInteractive: false, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets + + +@Component +struct UIAttributesImageEffectProjection0170 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Visible) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0160.ets + + +@Component +struct ActionEventCommoneventDragInput0160 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.ets + + +@Component +struct UIAttributesModaltransitionSafearea0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Scroll() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + TextInput({ text: `inpput ${item}` }) + .id(`input${item}`) + .margin({top: 20} as Margin) + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets + + +@Component +struct UIAttributesBackgroundInterface081 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({} as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0090.ets + + +@Component +struct UIComponentBackgroundimage0090 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.ets + + +@Component +struct UIAttributesColorrampInterface0450 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0960.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0960 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0960_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_103: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets new file mode 100644 index 000000000..3c7c409da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets @@ -0,0 +1,438 @@ +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,FontWeight,TimePickerResult, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, + Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { XComponent, Component, Column, ColumnOptions } from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets + + +@Component +struct UIAttributesBackgroundInterface1430 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets + + +@Component +struct UiAttributesFloatingLayerInterface0120 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Bottom}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.ets + + +@Component +struct UIAttributesGraphictransformationInterface0310 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('centerY:"50%"') + Image('cat.jpg') + .width(400) + .scale({centerY:"50%"} as ScaleOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/CAPI_NEW2/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0070.ets + + +@Component +struct ActionEventCommoneventDragdefault0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(12) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.ets + + +@Component +struct UIAttributesModaltransitionAnimator0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + detents: [300, 500] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.ets + + +@Component +struct UIAttributesGraphictransformationInterface0290 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1,y:1,z:1,centerX:"50%",centerY:"50%"}') + Image('cat.jpg') + .width(100) + .scale({x:1,y:1,z:1,centerX:"50%",centerY:"50%"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0570 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0570_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0570_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0570_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult):void => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0570_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets + + +@Component +struct UIAttributesImageEffectProjection0040 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + .colorBlend(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.ets + + +@Component +struct UIAttributesImageeffectInterface0250 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0220.ets + + +@Component +struct ActionEventCommoneventDragInput0220 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_104: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets new file mode 100644 index 000000000..6aca5661e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets @@ -0,0 +1,383 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Column, + Component, + Builder, + FlexAlign, + Scroll, + Divider, + TextAlign, + OutlineStyle, + ImageSize, + OutlineRadiuses, + Color +} from '@ohos.arkui.component'; + +import { State, } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, + $$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0170.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0170 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.ets + + +@Component +struct UIAttributesModaltransitionVision0710 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.FIT_CONTENT] as [SheetSize|String|Double|Resource], + preferType: SheetType.BOTTOM, + height: SheetSize.FIT_CONTENT + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes40.ets + + +@Component +struct UIAttributesTouchableInteraction40 { + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('RotationGesture angle:' + this.angle) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(80) + .rotate({ angle: this.angle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction40') + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + }) + ) + }.width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/BorderAndOutlineSetIndex.ets + +@Component +struct BorderAndOutlineSetIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('内边框角度大于外边框').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderRadius(100) + .outlineRadius(50) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角Dimension为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角outlineRadius为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineColor(0xAFEEEE) + .outlineWidth(5) + .outlineRadius({topLeft:15, topRight:15, bottomLeft:15, bottomRight:15} as OutlineRadiuses) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dashed').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dotted').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为solid').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.ets + + +@Component +struct UIAttributesRenderFit0050 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0360.ets + + +@Component +struct ActionEventCommonEventMouseStyle0360 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0360_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0360" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0360_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_105: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets new file mode 100644 index 000000000..99221eff0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets @@ -0,0 +1,391 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets + + +@Component +struct UIAttributesBackgroundInterface0250 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: -10, + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0330.ets + + +@Component +struct ActionEventCommonEventMouseStyle0330 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RESIZE_LEFT_RIGHT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0330_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0330" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0330_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentColor.ets + +@Component +struct ContentColor { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentColor1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow true").fontSize(11).id('ContentColor2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Blue, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentColor3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('ContentColor4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.ets + + +@Component +struct UIAttributesColorRampBlurGradient0050 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Left} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid009.ets + +@Component +struct UIComponentGrid009 { + @State numbers: Array = new Array() + @State maxCountValue: number = 0 + @State minCountValue: number = 2 + layoutDirectionValue: GridDirection = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + @State TextWidth: number = 50 + @State TextHeight: number = 90 + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.TextHeight) + .width(this.TextWidth) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .width(170) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCountValue) + .minCount(this.minCountValue) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('Infinity') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = Infinity + }).id('btn01') + Button('maxCountValue value is 2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = 2 + }).id('btn02') + Button('maxCountValue value is -2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = -2 + }).id('btn03') + Button('TextWidth value is 100') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Column/GridDirection.ColumnReverse)as GridDirection + this.maxCountValue = 0 + this.TextHeight = 90 + this.TextWidth = 100 + this.minCountValue = -2 + }).id('btn04') + Button('GridItem size 150*50') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.maxCountValue = -2 + this.TextHeight = 150 + this.TextWidth = 50 + this.minCountValue = 0 + }).id('btn05') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/IsShow.ets + +@Component +struct IsShowTF { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('IsShow1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow flase").fontSize(11).id('IsShow2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar,backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('IsShow3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('IsShow4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_106: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets new file mode 100644 index 000000000..b07efeea6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets @@ -0,0 +1,382 @@ +import { Entry, Component,Color,Column,List,ListOptions,FlexAlign,HorizontalAlign, + Margin,ShadowOptions,TextAlign,LazyForEach,ListItem,Text, + IDataSource,DataChangeListener +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin, ForEach, + NavigationMode, ListOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Scroll,ColumnOptions,Column,Button,ClickEvent,Margin,Text +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0180 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0120 { + @State isTextVisible:boolean = true + onButtonClick(){ + this.isTextVisible = false + } + build() { + Column(){ + Row(){ + if (this.isTextVisible){ + Text('Text子组件').fontSize(50).fontColor(Color.White) + .margin({left:100,top:50} as Margin) + } + }.width('100%').height(200).backgroundColor(Color.Green) + Button("HideNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible50.ets + + +@Component +struct UIComponentGridAccessible50 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .accessibilityGroup(true) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickScenarios/ActionEventCommoneventClickScenarios0020.ets + +@Component +struct ActionEventCommoneventClickScenarios0020 { + @State txt:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Button('button').onClick((e:ClickEvent) => { + this.txt = '触发点击事件' + }) + .id('btn') + Text(this.txt).fontSize(20).margin(10) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.ets + + +@Component +struct UIAttributesColorrampInterface0440 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:-20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0060.ets + + +@Component +struct ActionGestureRegister0060 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0170 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0170_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0170_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets + + +class BasicDataSource implements IDataSource { + private listenerList: DataChangeListener[] = [] as DataChangeListener[] + private originDataArray: string[] = [] as string[]; + public totalCount(): number { + return 0; + } + public getData(index: number): string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listenerList.indexOf(listener) < 0) { + console.info('add listener'); + this.listenerList.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listenerList.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listenerList.splice(pos, Number(1)); + } + } + notifyDataReload(): void { + this.listenerList.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listenerList.forEach(listener => { + listener.onDataMove(from, to); + }) + } +} +export class DataSource extends BasicDataSource { + private dataArray: string[] = [] as string[]; + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number): string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, Number(0), data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public reloadData(list: string[]) { + this.dataArray = list + this.notifyDataReload() //重新加载 + } +} +@Component +struct UIAttributesImageEffectUseShadowBatching0010 { + @State dataList: DataSource = new DataSource() + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 20; index++) { + this.dataList.pushData(index.toString()); + } + } + build() { + Column() { + List({ space: 20 } as ListOptions) { + LazyForEach(this.dataList, (index: string, i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + } + .shadow({ radius: 200, color: this.colors[Number(index)%4] } as ShadowOptions) + .height(120) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + + +export const FLAG_OF_FILE_107: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets new file mode 100644 index 000000000..5d6fb3597 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets @@ -0,0 +1,406 @@ +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Driver } from '@kit.TestKit'; + +import { Entry, Component, Row, Column, Color, Image, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility,ImageError,DragResult, + Text,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0180.ets + + +@Component +struct ActionEventCommoneventDragCard0180 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + }.id('ActionEventCommoneventDragCard0180_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.MOVE + }) + .onDrop((event: DragEvent, extraParams?: string):void=>{ + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0080.ets + + +@Component +struct UIComponentGridAccessible0080 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State dir: Direction = Direction.Ltr + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .direction(this.dir) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.dir = Direction.Rtl + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0240.ets + + +@Component +struct ActionEventCommoneventDragInput0240 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0540 { + build() { + Row() { + Column() { + Image("2.png") + } + .width(300) + .height(300) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("13216549546519849646518946515616516165161616165161656195415915919",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0400 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(20) + .border({ width: 3 }) + .width(100) + .height(50) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(40) + .width(200) + .height(100) + .backgroundColor(Color.Green) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ).overlay((): void => {this.overlayBuilder()}) + .margin({top:150} as Margin) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0070 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Column() + .width(100) + .height(100) + .borderWidth(1) + Column() + .width(100) + .height(100) + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets + + +@Component +struct UIAttributesImageEffectProjection0090 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .radialGradient({center: [100, 100], radius: 100, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_108: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets new file mode 100644 index 000000000..0b6e4ed6a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets @@ -0,0 +1,410 @@ +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Toggle, + ImageSize, + Column, + ColumnOptions,ToggleType +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets + + +@Component +struct UIAttributesSelectedStyle0100 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean): void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets + + +@Component +struct UIAttributesBackgroundInterface0530 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0090 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0200.ets + + +@Component +struct UIActtonEventComdneventDracInterface0200 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0200_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0200_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0300.ets + + +@Component +struct UIAttributesBcakgroundSeriable0300 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width('100%') + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.ets + + +@Component +struct UIAttributesImageeffectInvert0060 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 0.1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0070.ets + + +@Component +struct UIComponentGridAccessible0070 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State colNum: string = '1fr 1fr 1fr 1fr 1fr' + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate(this.colNum) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.colNum = '1fr 1fr 1fr 1fr' + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0010 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Column(){ + } + .blendMode(BlendMode.SRC_IN) + .backgroundColor(this.isClick == true ? Color.Transparent : Color.Pink) + .height(300).width('100%') + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0030.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0030 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_109: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets new file mode 100644 index 000000000..12ae72d3b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets @@ -0,0 +1,427 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Image,TransitionEffect,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0080.ets + + +@Component +struct UIActtonEventComdneventDracForeground0080 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0080_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0080_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets + + +@Component +struct UIAttributesBackgroundInterface0260 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){ + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 0, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.ets + + +@Component +struct UIAttributesColorrampInterface0360 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0020.ets + + +@Component +struct ActionEventCommoneventDragImage0020 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets + + +@Component +struct UiAttributesFloatingLayerInterface0010 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", {}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0410.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0410 { + @State flag: boolean = true; + build() { + Column() { + Button('').width(80).height(30).margin(30) + .id('buttonId') + .onClick((e:ClickEvent) => { + this.flag = !this.flag; + }) + if (this.flag) { + Image('2.png').width(200).height(200) + .transition(TransitionEffect.OPACITY.animation({ duration: 2000, curve: Curve.Ease } as AnimateParam).combine( + TransitionEffect.rotate({ z: 1, angle: 180 }) + )) + } + }.width('100%').renderFit(RenderFit.TOP_RIGHT) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.ets + + +@Component +struct UIAttributesModaltransitionVision0470 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundEffect2.ets + +@Component +struct TextBackgroundEffect2 { + build() { + Scroll() { + Column() { + Text('radius:100 ALWAYS_INACTIVE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + + +export const FLAG_OF_FILE_11: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets new file mode 100644 index 000000000..53d41ee78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets @@ -0,0 +1,414 @@ +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Image,$r,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Color,ClickEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0160.ets + + +@Component +struct ActionEventControlcallback0160 { + @State context: string = "" + build() { + Column(){ + Text('text') + .height('80%').width('100%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0160 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1 }) + .id('UIAttributesClivkreboundeffectInterface0160_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets + + +@Component +struct UiAttributesFloatingLayerInterface0030 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid005.ets + +@Component +struct UIComponentGrid005 { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State rowsTemplateValue: string = "1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplateValue) + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('repeat(auto-fit, 90px)') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.rowsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur5.ets + +@Component +struct linearGradientBlur5 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.ets + + +@Component +struct UIComponentCommonattrGrayscale0010 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0110.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0110 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0110_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0110_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.ets + + +@Component +struct UIAttributesColorrampInterface0430{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%" + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0040 { + build() { + Column({space:10} as ColumnOptions) { + Column({space:5} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0530.ets + + +@Component +struct ActionEventCommoneventDragInterface0530 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.ets + + +@Component +struct UIComponentCommonattrGrayscale0020 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [-10, -10] } + }) + } + .width('100%') + .height('100%') + } + } +} + + +export const FLAG_OF_FILE_110: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets new file mode 100644 index 000000000..92ea39447 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets @@ -0,0 +1,417 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, $r,Image,DragPreviewMode,DragPreviewOptions, + Margin,Row +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets + + +@Component +struct UIAttributesBackgroundInterface0280 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为20%发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: "20%", + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.ets + + +@Component +struct UIComponentCommonattrGrayscale0060 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Thick.ets + +@Component +struct BlurStyle_Thick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thick, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets + + +@Component +struct UIAttributesBackgroundInterface073 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopEnd) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0650.ets + + +@Component +struct ActionEventCommoneventDragdefault0650 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽中文文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListAndGridGridAutoStretch/UIComponentListAndGridGridAutoStretch0190274.ets + + +@Component +struct HelloComponent1 { + @State message: string = 'Hello, World'; + aboutToAppear() { + console.log('1114' + this.message + " aboutToAppear") + } + aboutToDisappear() { + console.log('1114' + this.message + " aboutToDisappear") + } + build() { + Text(this.message) + } +} +@Component +struct UIComponentListAndGridGridAutoStretch0190274 { + data2: Array = new Array(0, 1, 2, 3, 4, 5) + cachedCount1: number = 2 + build() { + Column({ space: 10 } as ColumnOptions) { + Text('auto-stretch 先根据设定的列宽计算列数,余下的空间会均分到每个列间距中').width('90%') + Grid() { + ForEach(this.data2, (item: number,index:number) => { + GridItem() { + Text('N' + item).height(80); + } + .backgroundColor(Color.Orange); + HelloComponent1({ message: "Item:" + item }); + }) + } + .width('90%') + .border({ width: 1, color: Color.Black }) + .columnsTemplate('repeat(auto-stretch, 90)') + .columnsGap(10) + .rowsGap(10) + .height(150) + .cachedCount(this.cachedCount1); + Button("change cachedCount") + .onClick((event?: ClickEvent) => { + this.cachedCount1 = 3; + }).id('UIComponentListAndGridGridAutoStretch0190274_001'); + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragThumbnail/ActionEventCommoneventDragThumbnail0080.ets + + +@Component +struct ActionEventCommoneventDragThumbnail0080 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width("100%") + .draggable(true) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO } as DragPreviewOptions) + .id('commoneventDragThumbnail0080') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0040.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0040 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart') + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets + + +@Component +struct UIAttributesBackgroundInterface074 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopStart) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0230 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('90%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('70%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('50%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + }.height('100%') + .resizeable(true) // 可拖动 + }.width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200.ets + + +@Component +struct UIAttributesModaltransitionVision0200 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:'100%', + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_111: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets new file mode 100644 index 000000000..c37627a00 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets @@ -0,0 +1,401 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, SizeOptions } from '@ohos.arkui.component'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommonEventDragDefault0110.ets + + +@Component +struct ActionEventCommonEventDragDefault0110 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('A位置Image拖拽') + .fontSize('30dp') + .margin(20) + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('view-1') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('B位置可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .id('view-2') + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number+.ets + +@Component +struct Number_zheng { + build() { + Column() { + Text('扩展尺寸: 100').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: 100, bottom: 100, left: 100, right: 100 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0220.ets + + +@Component +struct UIAttributesBcakgroundSeriable0220 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0220.ets + + +@Component +struct CommonEventDragVideo0220 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent): void => { + event.useCustomDropAnimation = false + if (event?.useCustomDropAnimation) { + this.status = "useCustomDropAnimation = true" + } else { + this.status = "useCustomDropAnimation = false" + } + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets + + +@Component +struct UIAttributesBackgroundInterface085 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets + + +@Component +struct UIAttributesBackgroundInterface0380 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: false + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0100_632.ets + + +@Component +struct HelloComponent { + @State message: string = 'Hello, World'; + aboutToAppear() { + console.log('1114' + this.message + " aboutToAppear") + } + aboutToDisappear() { + console.log('1114' + this.message + " aboutToDisappear") + } + build() { + Text(this.message) + } +} +@Component +struct UIComponentListandgridGridInterface_0100_632 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + HelloComponent({ message: "Item:" + day }); + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .cachedCount(2) + .columnsTemplate("repeat(auto-fit,90px)") + .margin(20) + .id('UIComponentListandgridGridInterface_0100_632') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_112: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets new file mode 100644 index 000000000..eca843079 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets @@ -0,0 +1,400 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + PopupButton, + PopupOptions, + PopupStateChangeCallback, + PopupStateChangeParam, + Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, ImageSize, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets + + +@Component +struct UIAttributesBackgroundInterface1370 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380.ets + + +@Component +struct UIAttributesGraphictransformationInterface0380 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale,设置参数{y:0}') + Image('cat.jpg') + .width(100) + .scale({y:0} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets + + +@Component +struct UIAttributesBackgroundInterface0020 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230.ets + + +@Component +struct UIAttributesImageeffectInterface0230 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible30.ets + + +@Component +struct UIComponentGridAccessible30 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0090 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0020 { + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(true) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets + + +@Component +struct UIAttributesBackgroundInterface071 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Start) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets + + +@Component +struct UIAttributesBackgroundInterface096 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets + + +@Component +struct UIAttributesBackgroundInterface090 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "90%" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0220 { + @State handlePopup: boolean = false; + @State handlePopup1: boolean = false; + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 } as Margin) + .id('overlay0220_button_02') + .onClick((e: ClickEvent) => { + this.handlePopup1 = !this.handlePopup1; + }) + .fontSize(20) + .fontColor(Color.Black) + .bindPopup(this.handlePopup1, { + message: 'Options2', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup1 = !this.handlePopup1 + console.info('confirm Button click') + } + }as PopupButton + }as PopupOptions) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 } as Margin) + } + build() { + Column() { + Button('show dialog') + .id('overlay0220_button_01') + .onClick((e: ClickEvent) => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }as PopupButton, + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }as PopupButton, + onStateChange: (e:PopupStateChangeParam) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + }as PopupStateChangeCallback + } as PopupOptions).overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Start }) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_113: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets new file mode 100644 index 000000000..96eb15351 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets @@ -0,0 +1,386 @@ +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, $r, Position } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Divider,Gauge,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Row,Text,List,ListItem,ClickEvent,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040.ets + + +@Component +struct UIAttributesModaltransitionVision0040 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[400, 500, 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040.ets + + +@Component +struct UIAttributesColorRampBlurGradient0040 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.24],[1,0.64],[1,1]], direction: GradientDirection.LeftBottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0200.ets + + +@Component +struct ActionEventCommonEventMouseStyle0200 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0200_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0200" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0200_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur19.ets + +@Component +struct linearGradientBlur19 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(undefined, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0100.ets + + +@Component +struct ActionEventControlCallback0100 { + @State context: string = "" + build() { + Row(){ + Text(this.context) + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + } + } + } + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/AdaptiveColor_AVERAGE.ets + +@Component +struct AdaptiveColor_AVERAGE { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0060.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0060 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + @State focusableValue: boolean = false + build() { + Column({ space: 5 }as ColumnOptions) { + Text('你好').focusable(this.focusableValue) + Image(this.iconStr).width(68).height(68).focusable(this.focusableValue) + .onClick((e: ClickEvent) => { + }) + Divider() + .focusable(this.focusableValue) + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets + + +@Component +struct UIAttributesBackgroundInterface079 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: $r('app.media.startIcon'), y: 100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160.ets + + +@Component +struct UIAttributesColorRampBlurGradient0160 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(80, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets + + +@Component +struct UIAttributesBackgroundInterface0120 { + build() { + Column() { + Row() { + Text("SYSTEM") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.SYSTEM}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_114: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets new file mode 100644 index 000000000..6ecce8a7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets @@ -0,0 +1,442 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,EdgeEffect,OnScrollCallback, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin, +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + TouchEvent, + TextArea +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Color,Hyperlink,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,ColumnOptions,Column,Button,ClickEvent,Text,Margin +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,BarState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, GridDirection, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030.ets + + +@Component +struct UIAttributesImageeffectInterface0030 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_004.ets + +@Component +struct onlyColumnLayoutDirection { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State layoutDirectValue: GridDirection = GridDirection.Row + onPageShow() { + console.info('onlyColumnLayoutDirection onPageShow') + this.layoutDirectValue = GridDirection.Column + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .layoutDirection(this.layoutDirectValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClick/ActionEventCommoneventClick0040.ets + + +@Component +struct ActionEventCommoneventClick0040 { + @State txt: string = '111' + build() { + Column({ space: 5 } as ColumnOptions) { + Button('button').onClick((e:ClickEvent) => { + this.txt = '触发点击事件' + }) + Text(this.txt).fontSize(20).margin(10) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0180 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Column() { + Hyperlink('https://www.baidu.com/', 'Go to the baidu website') { + } + .color(Color.Blue) + } + Column() { + Hyperlink('https://www.baidu.com/', 'Go to the baidu website') { + } + .color(Color.Blue) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0520.ets + + +@Component +struct ActionEventCommonEventMouseStyle0520 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_CIRCLE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0520_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0520" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0520_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets + + +@Component +struct textAreaActionEventCommon { + @State screenPostion: string= '' + build() { + Column() { + TextArea({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .key('key_textArea_action_event_common_001') + .onTouch((event: TouchEvent) => { + let touchIndex = event.touches[0]; + this.screenPostion = 'windowX:' + touchIndex.windowX + ';windowY:' + touchIndex.windowY + }) + Text(this.screenPostion ) + .width('100%') + }.height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface10.ets + + +@Component +struct AceActionEventCommoneventClickInterface10 { + @State text:string=''; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text) + .id('AceActionEventCommoneventClickInterface10') + .onClick((event: ClickEvent)=> { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0260273.ets + + +@Component +struct UIComponentListandgridXommonScrollto0260273 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State yOffset: number = 800 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring, { alwaysEnabled: true }) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('Button1') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: this.yOffset + 350, + animation: { duration: 500, canOverScroll: true } + }) + }).id('btn1') + Button('Button') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 0 + }) + }).id('btn') + Button('Button2') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: this.yOffset + 650, + animation: { duration: 500, canOverScroll: true } }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_115: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets new file mode 100644 index 000000000..8a5e0cf50 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets @@ -0,0 +1,369 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Flex, + Column, + Text, + Image, + Image, + FlexAlign, + Button, + ObscuredReasons, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0680.ets + + +@Component +struct ActionEventCommoneventDragdefault0680 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets + + +@Component +struct UIComponentMediaImageMask0110 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | undefined = [ObscuredReasons.PLACEHOLDER]; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick((e: ClickEvent) => { + this.widthSize = this.widthSize + 50; + this.heightSize = this.heightSize + 50; + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = undefined; + } + }).id('mask0110_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050.ets + + +@Component +struct UIComponentCommonattrGrayscale0050 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [-10, -10] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600.ets + + +@Component +struct UIAttributesModaltransitionVision0600 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: { + title: '正常显示标题' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010.ets + + +@Component +struct UIAttributesModaltransitionAnimator0010 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0600.ets + + +@Component +struct ActionEventCommoneventDragdefault0600 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '加标点符号的文本,。、' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions) { + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0020.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0020 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 }as ColumnOptions) { + Image(this.iconStr).width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Image(this.iconStr).width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_116: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets new file mode 100644 index 000000000..d13788532 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets @@ -0,0 +1,392 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import promptAction from '@ohos.promptAction'; + +import { BusinessError } from '@ohos.base'; + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Component, Column, TextController,DragEvent,ColumnOptions, + Text,TextInput,CopyOptions,Color,Margin,DragResult,Rectangle, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,Image,$r +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100.ets + + +@Component +struct UIAttributesModaltransitionSafearea0100 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0120 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .backgroundColor(Color.White) + .width(180) + .height(180) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .id('UIAttributesFloatingLayerOverlay0120_001') + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0240_264.ets + + +@Component +struct UIComponentListandgridGridInterface_0240_264 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + .padding(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0230.ets + + +@Component +struct ActionEventCommoneventDragInterface0230 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140.ets + + +@Component +struct UIAttributesImageEffectProjection0140 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(1) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0100 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + } + .width(180) + .height(180) + .alignItems(HorizontalAlign.Center) + .backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0100_001') + .onClick((e: ClickEvent) => { + try { + } catch (error) { + } + ; + }) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragForeground/ActionEventCommoneventDragForeground0140.ets + + +@Component +struct ActionEventCommoneventDragForeground0140 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + @State wid: number = 100 + @State hei: number = 100 + @State input: string = 'abcabc' + private textController: TextController = new TextController() + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 0, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + this.backAnimator!.onFinish = () => { + _this.flag = true + console.info(_this.TAG, 'backAnimator onfinish') + } + this.backAnimator!.onRepeat = () => { + console.info(_this.TAG, 'backAnimator repeat') + } + this.backAnimator!.onCancel = () => { + console.info(_this.TAG, 'backAnimator cancel') + } + this.backAnimator!.onFrame = (value: number) => { + _this.wid = value + _this.hei = value + } + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag'}`) + TextInput({ placeholder: '请拖入内容', text: this.input }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .foregroundColor(Color.Yellow) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + if (this.backAnimator) { + this.backAnimator?.play() + } + event.useCustomDropAnimation = false; + }) + Text('可拖入文本') + .draggable(true) + .margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .foregroundColor(Color.Yellow) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + event.useCustomDropAnimation = false; + event.setResult(DragResult.DRAG_SUCCESSFUL); + if (this.backAnimator) { + this.backAnimator?.play() + } + }) + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_117: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets new file mode 100644 index 000000000..f6e83cb9a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets @@ -0,0 +1,413 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,OnScrollCallback +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,$r,Image,Resource, +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480.ets + + +@Component +struct UIAttributesModaltransitionVision0480 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0100 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0160.ets + + +@Component +struct UIAttributesBcakgroundSeriable0160 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImage($r('app.media.startIcon')) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0230.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0230 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0230_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0230_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets + + +@Component +struct UIAttributesBackgroundInterface083 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventGetinspectorTree/AceActionEventGetinspectorTree010.ets + + +@Component +struct AceActionEventGetinspectorTree010 { + private imageOne: Resource = $r('app.media.startIcon'); + @State src: Resource = this.imageOne + build(){ + Column(){ + Text("get inspector") + Image(this.src) + .width(100) + .height(100) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0500.ets + + +@Component +struct ActionEventCommoneventDragdefault0500 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(300) + .height(300) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(300) + .height(300) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0080.ets + + +@Component +struct ActionEventCommoneventDragInput0080 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible20.ets + + +@Component +struct UIComponentGridAccessible20 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_118: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets new file mode 100644 index 000000000..ce54d02df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets @@ -0,0 +1,382 @@ +import { + Entry, + Component, + Text, + Column, + TextAlign, + Margin +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, ListOptions,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Menu, + ImageFit, + MenuItem, + MenuItemOptions, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0480_955.ets + + +@Component +struct UIComponentListandgridGridInterface_0480_955 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 2fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor('#FF0000') + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => {; + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210.ets + + +@Component +struct UIAttributesGraphictransformationInterface0210 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('不设置rotate') + Image('cat.jpg') + .width(100) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/AdaptiveColor_DEFAULT.ets + +@Component +struct AdaptiveColor_DEFAULT { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0070 { + @Builder + OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + }.width(400).height(400).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0010.ets + + +@Component +struct ActionGestureRegister0010 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020.ets + + +@Component +struct UIAttributesModaltransitionAnimator0020 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0330647.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0330647 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + this.msgInfo= "trigger Grid onScrollIndex" + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0330647'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets + + +@Component +struct UIAttributesBackgroundInterface1320 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.2],[0xFCD1D1, 0.6]], + repeating:false, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + + +export const FLAG_OF_FILE_119: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets new file mode 100644 index 000000000..d20621a01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets @@ -0,0 +1,365 @@ +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,FontStyle, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Padding +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0620.ets + + +@Component +struct ActionEventCommoneventDragInterface0620 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0450.ets + + +@Component +struct ActionEventCommoneventDragdefault0450 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '中间可拖拽文字' + @State font_style:FontStyle = FontStyle.Normal + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontStyle(this.font_style) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontStyle(FontStyle.Italic) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_style = FontStyle.Italic + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0480.ets + + +@Component +struct ActionEventCommonEventMouseStyle0480 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0480_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0480" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0480_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets + + +@Component +struct UIAttributesBackgroundInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "0.5turn", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0260 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + Button('MarginChange').onClick((e:ClickEvent)=>{ + this.mar = 50 + }).id('margin') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets + + +@Component +struct UIAttributesBackgroundInterface0300 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[0xD3E0DC,0.4], [Color.Red,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets + + +@Component +struct UIAttributesBackgroundInterface091 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 200, height: 100 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0310.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0310 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_12: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets new file mode 100644 index 000000000..a808c35b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets @@ -0,0 +1,415 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { CustomColors, CustomTheme, } from '@ohos.arkui.theme' + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, + List,ListItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, + ButtonType,ClickEvent,Visibility,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Padding,Rect,MouseEvent,MouseAction +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets + + +@Component +struct UIAttributesBackgroundInterface0590 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "200grad", + end: "400grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270.ets + + +@Component +struct UIAttributesImageeffectInterface0270 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0120 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_009.ets + +@Component +struct onlyRowCellLength { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State cellLengthValue: number = 1 + onPageShow() { + console.info('onlyRowCellLength onPageShow') + this.cellLengthValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('60%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .cellLength(this.cellLengthValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes210.ets + + +@Component +struct UIAttributesTouchableInteraction210 { + @State mouseText: string = ''; + build() { + Column() { + Rect() + .id('UIAttributesTouchableInteraction210') + .width('90%') + .height(50) + .fillOpacity(0) + .stroke(Color.Red) + .hitTestBehavior(HitTestMode.None) + .strokeWidth(3) + .width(180).height(80) + .onMouse((event: MouseEvent):void => { + if(event.action == MouseAction.Press){ + this.mouseText = 'Mouse click' ; + } + }) + Text(this.mouseText) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_031.ets + +@Component +struct Grid_031 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4') + @State numbers2: Array = new Array('0', '1','2','3','4','5') + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number): [number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string, index:number) => { + ForEach(this.numbers1, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580.ets + + +@Component +struct UIAttributesColorrampInterface0580 { + @State btnShow: Visibility = Visibility.Visible; + @State radius:string ='20%' + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: this.radius, + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.radius='60%' + this.btnShow = Visibility.Hidden + } else { + this.radius='20%' + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0100 { + build() { + Column() { + List(){ + ListItem(){ + ColumnSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('8').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('9').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('10').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + }.width('100%') + } + .id('button') + .height('100%') + .width('100%') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0360.ets + + +@Component +struct UIAttributesTouchableInteraction0360 { + @State message: string = ''; + @State show: boolean = false; + build() { + Row() { + Column() { + Button('changeShow') + .id('UIAttributesTouchableInteraction0360_001') + .onClick((): void => { + this.show = !this.show; + }) + if (this.show){ + Button('testButton') + .onAppear(() => { + this.message = 'testButton onAppear'; + }) + .onDisAppear(()=>{ + this.message = 'testButton onDisAppear'; + }) + } + Text(this.message) + } + .width('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_120: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets new file mode 100644 index 000000000..63905af8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets @@ -0,0 +1,453 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Text, + FontWeight, + Row, + Column, + Component, + Color, + $rawfile +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Font } from '@ohos.arkui.UIContext'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230.ets + + +@Component +struct UIAttributesImageEffectProjection0230 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: true} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets + + +@Component +struct UIAttributesBackgroundInterface087 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: -434, height: "280px" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0250_822.ets + + +@Component +struct UIComponentListandgridXommonScrollto0250_822 { + @State numbers: Array = new Array() + @State text: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0; i < 50; i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string,index: number) => day) + } + .id('0') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + .width('90%') + .backgroundColor(0xFAEEE0) + .height('60%') + .onReachStart(() => { + this.text.push('ReachStart') + }) + .onReachEnd(() => { + this.text.push('ReachEnd') + }) + Text(`触顶/底回调:${this.text}`) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0160.ets + + +@Component +struct ActionEventCommoneventDragdefault0160 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + .margin({top:30} as Margin) + .border({ width: 1 }) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0490.ets + + +@Component +struct ActionEventCommoneventDragdefault0490 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽 文字' + @State font_weight:number = 0 + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/homePage.ets + +@Entry({routeName:'TestHSPHome'}) +@Component +export struct IndexbWpR3 { + @State message: string = ''; + aboutToAppear(): void { + const fontTTF = $rawfile('iconfont.ttf') + let font = new Font() + font.registerFont({ familyName: "testIconFont", familySrc: fontTTF }) + } + build() { + Row() { + Column() { + Text('label') + .fontFamily("testIconFont") + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0180.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0180 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr) + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + } + .justifyContent(FlexAlign.Center) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible10.ets + + +@Component +struct UIComponentGridAccessible10 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_036.ets + +@Component +struct Grid_036 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12','13','14','15') + scroller1: Scroller = new Scroller() + @State columnsTemplate: string = '1fr 1fr 2fr' + @State rowsTemplate: string = '1fr 1fr 2fr' + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(60) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .columnsTemplate(this.columnsTemplate) + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width(300) .height(300) + .backgroundColor(0xFAEEE0) + .border({width:1} as BorderOptions) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("Both1") + .id('Both1') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr 2fr 1fr'; + this.rowsTemplate='1fr 1fr 1fr' + }) + } + ListItem(){ + Button("Both2") + .id('Both2') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr a 1fr'; + this.rowsTemplate='1fr 1fr 1fr' + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_121: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets new file mode 100644 index 000000000..4aa53090f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets @@ -0,0 +1,352 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry, Component, Column,ResourceStr,$r,Builder,Menu,ColumnOptions,MenuItem, + MenuItemGroup,Margin,FontWeight,MenuItemGroupOptions,MenuItemOptions,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ColumnOptions,MouseEvent, + Rect,Padding, + MouseButton,MouseAction +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360.ets + + +@Component +struct UIAttributesImageeffectInterface0360 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes220.ets + + +@Component +struct UIAttributesTouchableInteraction220 { + @State hoverText: string = 'no hover'; + @State mouseText: string = ''; + @State action: string = ''; + @State mouseBtn: string = ''; + @State color: Color = Color.Blue; + build() { + Column({ space: 20 } as ColumnOptions) { + Rect() + .width(180).height(80) + .id('UIAttributesTouchableInteraction220') + .hitTestBehavior(HitTestMode.None) + .onMouse((event: MouseEvent):void => { + if(event){ + switch (event.button) { + case MouseButton.None: + this.mouseBtn = 'None'; + break; + case MouseButton.Left: + this.mouseBtn = 'Left'; + break; + case MouseButton.Right: + this.mouseBtn = 'Right'; + break; + case MouseButton.Back: + this.mouseBtn = 'Back'; + break; + case MouseButton.Forward: + this.mouseBtn = 'Forward'; + break; + case MouseButton.Middle: + this.mouseBtn = 'Middle'; + break; + } + switch (event.action) { + case MouseAction.Hover: + this.action = 'Hover'; + break; + case MouseAction.Press: + this.action = 'Press'; + break; + case MouseAction.Move: + this.action = 'Move'; + break; + case MouseAction.Release: + this.action = 'Release'; + break; + } + this.mouseText = 'onMouse:\nButton = ' + this.mouseBtn + + '\nAction = ' + this.action + '\nXY=(' + event.x + ',' + event.y + ')' + + '\nwindowXY=(' + event.windowX + ',' + event.windowY + ')'; + } + }) + Text(this.mouseText) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470.ets + + +@Component +struct UIAttributesImageeffectInterface0470 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend(Color.Blue) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0230.ets + + +@Component +struct UIAttributesBcakgroundSeriable0230 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0340.ets + + +@Component +struct ActionEventControlCallback0340 { + @State context: string = "" + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + MenuItemGroup({ header: '小标题' } as MenuItemGroupOptions) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions).id('MenuItem') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('MenuItem'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + MenuItem({ + startIcon: $r('app.media.startIcon'), + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + } + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + } as MenuItemOptions) + } + } + build() { + Column({space: 20} as ColumnOptions) { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .id('Column') + .bindMenu(this.MyMenu) + .width('100%') + Text(this.context).margin({ top: 20 } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets + + +@Component +struct UIAttributesBackgroundInterface080 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: -100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0180.ets + + +@Component +struct ActionEventCommoneventDragInput0180 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_122: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets new file mode 100644 index 000000000..ae7269690 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets @@ -0,0 +1,392 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, Row, ObscuredReasons} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Toggle, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + ColumnOptions,ToggleType +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, ClickEvent, Button, + Margin, NavigationTitleMode, NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import inspector from '@ohos.arkui.inspector' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850.ets + + +@Component +struct UIAttributesColorrampInterface0850 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0], [Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets + + +@Component +struct UIAttributesBackgroundInterface0090 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080.ets + + +@Component +struct UIComponentCommonattrGrayscale0080 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [-10, -10] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets + + +@Component +struct UIAttributesBackgroundInterface0170 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0070.ets + + +@Component +struct UIActtonEventComdneventDracForeground0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0070_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0070_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0090.ets + + +@Component +struct ActionGestureRegister0090 { + @State isActiveWLAN: boolean = false + @State isActiveBluetooth: boolean = false + @State context: string = ""; + build() { + Navigation(new NavPathStack()) { + Text(this.context).margin({ top: 20 } as Margin); + } + .height('100%') + .width('100%') + .title('设置') + .backgroundColor("#F2F3F5") + .titleMode(NavigationTitleMode.Free) + .mode(NavigationMode.Auto) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets + + +@Component +struct UIAttributesSelectedStyle0120 { + @State isOn: boolean = true; + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: this.isOn }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean):void => { + console.info('Component status:' + isOn) + } ) + Button('Click') + .id('UIAttributesSelectedStyle0120') + .onClick((e:ClickEvent) => { + this.isOn = false; + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230.ets + + +@Component +struct UIAttributesColorrampInterface0230 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + angle:180, + direction:GradientDirection.Bottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/obscured.ets + +@Component +struct ObscuredExample { + build() { + Row() { + Column({space:20} as ColumnOptions) { + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .textIndent(5) + .fontSize(20).fontColor(Color.Black) + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .margin(5) + .fontSize(20).fontColor(Color.Black) + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .padding(5) + .fontSize(30).fontColor(Color.Black) + } + .width('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_123: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets new file mode 100644 index 000000000..d49ac9ede --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets @@ -0,0 +1,432 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,DragEvent,Button, + TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Grid, Edge, Margin, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import image from '@ohos.multimedia.image'; + +import { Entry, Component, Column,Button,Row,ButtonType,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Color, + FlexAlign,Builder,ClickEvent +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton141.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton141 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((e:ClickEvent): void => { + this.button1BC = Color.Green + }) + Button("Set Illegal height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent): void => { + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("button2") + .id('button2ID') + .backgroundColor(this.button2BC) + .onClick((): void => { + this.button2BC = Color.Green; + }) + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080.ets + + +@Component +struct UIAttributesRenderFit0080 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM_LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0060.ets + + +@Component +struct ActionEventCommoneventDragInterface0060 { + build() { + Row() { + Column() { + Button('/resource/image.jpeg',{ type: ButtonType.Normal, stateEffect: true }) + .width(200) + .height(50) + .borderRadius(100) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .id('dragInterface0060') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0010.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0010 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .id('ScrollScrollbarScrolledge0010_002') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Start) + }).id('ScrollScrollbarScrolledge0010_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0140.ets + + +@Component +struct ActionEventCommoneventDragdefault0140 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column() { + Flex() { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left:30} as Margin) + } + Row() { + Column(){ + Text('B位置') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080.ets + + +@Component +struct UIAttributesColorRampBlurGradient0080 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.RightTop} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0010.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_019.ets + +@Component +struct Grid09 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置minCount属性值为-3').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .layoutDirection(GridDirection.Column) + .minCount(-3) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_124: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets new file mode 100644 index 000000000..a3dadbf90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets @@ -0,0 +1,474 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import curves from '@ohos.curves' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,DragResult,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,Button,ClickEvent,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import router from '@ohos.router'; + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ShowDragBarChange.ets + +@Component +struct ShowDragBarChange { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ShowDragBarChange1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 dragBar flase").fontSize(11).id('ShowDragBarChange2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: false,backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ShowDragBarChange3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 dragBar ture").fontSize(11).id('ShowDragBarChange4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0270 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + Button('MarginChange').onClick((e:ClickEvent)=>{ + this.mar = 10; + }).id('margin') + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0170.ets + + +@Component +struct UIActtonEventComdneventDracInterface0170 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0170_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0170_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest6.ets + +@Component +struct ZIndexDynamicModificationTest6 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex: number = 0 + @State zIndexValue: Array> = + new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], + [999999, 9999, 9]) + @State zIndexValueIndex: number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex: number = 0 //组件的宽高的初始值 + @State isImage: boolean = false + @State isVideo: boolean = false + onPageShow() { + this.textValueIndex = 2 //text的value: 'CBA设置zIndex: 0 0 0' + this.whValueIndex = 1 //组件顺序设置为CBA + this.zIndexValueIndex = 1 //ABC设置zIndex: 0 0 0 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if (this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + } + .width('90%') + .height('30%') + .border({ width: 1, color: Color.Red } as BorderOptions) + .alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({ width: 1, color: Color.Red }).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]) + .height(this.whValue[this.whValueIndex][1]) + .backgroundColor(0xFFCCCC) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]) + .height(this.whValue[this.whValueIndex][3]) + .backgroundColor(0xCCFFFF) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]) + .height(this.whValue[this.whValueIndex][5]) + .backgroundColor(0xFFFACD) + .align(Alignment.TopStart) + }.width('90%').height('18%').border({ width: 1, color: Color.Red } as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040.ets + + +@Component +struct UIAttributesModaltransitionInteration0040 { + @State isShow: boolean = false + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:300, + preferType: SheetType.CENTER + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0020.ets + + +@Component +struct UIActtonEventComdneventDracForeground0020 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State widthSize: number = 200 + @State heightSize: number = 200 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + let curve = curves.cubicBezierCurve(0.2, 0, 0, 1.0); + this.widthSize = curve.interpolate(0.5) * this.widthSize; + this.heightSize = curve.interpolate(0.5) * this.heightSize; + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0020_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Image(this.targetImage) + .id("UIActtonEventComdneventDracForeground0020_02") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent?: DragEvent) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + event.useCustomDropAnimation = false; + this.imgState = Visibility.None; + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0020_03") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_125: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets new file mode 100644 index 000000000..eaee63998 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets @@ -0,0 +1,312 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_020.ets + +@Component +struct Grid10 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置minCount属性值为50').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .layoutDirection(GridDirection.Row) + .minCount(50) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0210322.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0210322 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + this.msgInfo= "trigger Grid onScrollStop" + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0210322'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets + + +@Component +struct UIAttributesBackgroundInterface0560 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: -90, + end: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0230.ets + + +@Component +struct ActionEventCommonEventMouseStyle0230 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_WEST_SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0230_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0230" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0230_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_126: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets new file mode 100644 index 000000000..3b4f33893 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets @@ -0,0 +1,478 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0030 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(null) + .id('UIAttributesClivkreboundeffectInterface0030_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0690.ets + + +@Component +struct ActionEventCommoneventDragdefault0690 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590.ets + + +@Component +struct UIAttributesModaltransitionVision0590 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: { + title: '测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_010.ets + +@Component +struct onlyRowColumnsGap { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGapValue: number = 1 + onPageShow() { + console.info('onlyRowColumnsGap onPageShow') + this.columnsGapValue = 20 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('40%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .columnsGap(this.columnsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number-.ets + +@Component +struct Number_fu { + build() { + Column() { + Text('扩展尺寸: -20').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: -20, bottom: -20, left: -20, right: -20 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets + + +@Component +struct UIAttributesBackgroundInterface113 { + build() { + Column() { + Row() + .backgroundColor(Color.Gray) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets + + +@Component +struct UIAttributesBackgroundInterface072 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Top) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0050.ets + + +@Component +struct ActionEventCommoneventDragText0050 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void=> { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .draggable(true) + .fontSize(30) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0700.ets + + +@Component +struct ActionEventCommoneventDragdefault0700 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(200) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(200) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0730.ets + + +@Component +struct UIActionEventCommonEventDragInterface0700 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((event as DragEvent), (event: DragEvent) => { + this.abstractContent = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_127: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets new file mode 100644 index 000000000..8184d7518 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets @@ -0,0 +1,390 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210.ets + + +@Component +struct UIAttributesColorrampInterface0210 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Top, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770.ets + + +@Component +struct UIAttributesColorrampInterface0770 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:380 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_008.ets + +@Component +struct onlyRowBarState { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State BarValue: BarState = BarState.Off + onPageShow() { + console.info('onlyRowBarState onPageShow') + this.BarValue = BarState.On + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('60%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .scrollBar(this.BarValue) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0690.ets + + +@Component +struct UIActionEventCommonEventDragInterface0690 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent) => { + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0260164.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0260164 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0260164_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 100 + }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0260164_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundEffect1.ets + +@Component +struct TextBackgroundEffect1 { + build() { + Column() { + Text('radius:0').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0 + }) + Text('radius:100 ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + Text('radius:100 ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100 ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + + +export const FLAG_OF_FILE_128: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets new file mode 100644 index 000000000..9a690aeba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets @@ -0,0 +1,393 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + Visibility,ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060.ets + + +@Component +struct UIAttributesImageeffectInterface0060 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0180.ets + + +@Component +struct ActionEventCommoneventDragdefault0180 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({top:250} as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010.ets + + +@Component +struct UIAttributesModaltransitionSafearea0010 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({top: 20} as Margin) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/MatrixTransformIndex.ets + +@Component +struct TransformExample { + build() { + Column() { + Text('组件设置矩阵变换transform,设置translate、scale、rotate组合').width('90%').fontColor(0xCCCCCC).padding(15).fontSize(14) + Row() + .width(100).height(100).backgroundColor(0xAFEEEE) + .transform(matrix4.identity().translate({ x: 50, y: 50 }).scale({ x: 1.5, y: 1 }).rotate({ + x: 0, + y: 0, + z: 1, + angle: 60 + })) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220.ets + + +@Component +struct UIAttributesColorrampInterface0220 { + @State btnShow: Visibility = Visibility.Visible; + @State angleR:number=0; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:this.angleR + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.btnShow = Visibility.Hidden + this.angleR=90 + } else { + this.btnShow = Visibility.Visible + this.angleR=0 + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets + + +@Component +struct UIAttributesBackgroundInterface124 { + build() { + Column() { + Row() + .backgroundColor('rgba(0,0,255,1.000)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390.ets + + +@Component +struct UIAttributesImageeffectInterface0390 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: Color.Black } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0080 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0250.ets + + +@Component +struct ActionEventCommonEventMouseStyle0250 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_COPY; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0250_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0250" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0250_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_129: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets new file mode 100644 index 000000000..48c217749 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets @@ -0,0 +1,397 @@ +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions,KeyEvent,ButtonType,KeyType, +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { sendKeyEvent } from "@internal.full.global" + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Column, + Button, + TextInput +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets + + +@Component +struct textInputActionEventCommon { + build() { + Column() { + TextInput({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .defaultFocus(true) + .key('key_textInput_action_event_common_001') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0240.ets + + +@Component +struct UIAttributesBcakgroundSeriable0240 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur8.ets + +@Component +struct linearGradientBlur8 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets + + +@Component +struct UIAttributesBackgroundInterface0430 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0270 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItem({ content: "菜单a" } as MenuItemOptions) + MenuItem({ content: "菜单a" } as MenuItemOptions) + .foregroundEffect({ radius: this.radiusValue }) + }.width(90) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.ets + + +@Component +struct UIAttributesImageeffectInterface0140 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button06.ets + + +@Component +struct Button06 { + @State isClicked: boolean = false; + @State text: string = ''; + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Button('Button06_btn1') + .id('Button06_btn1') + .width(300) + .height(80) + .fontColor(Color.Black) + .fontSize(25) + .fontWeight(FontWeight.Bold) + .backgroundColor(Color.Pink) + .type(ButtonType.Capsule) + .padding(10) + .onClick((event:ClickEvent) => { + setTimeout(() => { + let keyEvent: KeyEvent = { + type: KeyType.Down, + keyCode: 2049, + keyText: 'tab', + deviceId: 0, + metaKey: 0, + timestamp: 0, + stopPropagation: () => { + }, + intentionCode: IntentionCode.INTENTION_DOWN + } + this.isClicked = sendKeyEvent(keyEvent); // 发送按键事件 + }, 2000) + }) + Row() { + Text('sendKeyEvent: ').fontSize(25) + Text(this.isClicked + '').fontSize(25).id('Button06_Text') + }.margin({ top: 20 } as Margin).padding(15) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets + + +@Component +struct UIAttributesBackgroundInterface1500 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Top, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets + + +@Component +struct UIComponentCommonattrForegroundEffect440 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0440_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0440_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0440_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Text('我是 Row') + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width('100%') + .height(120) + .justifyContent(FlexAlign.Center) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0440_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets + + +@Component +struct UiAttributesFloatingLayerInterface0090 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.End}) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0010.ets + + +@Component +struct ActionEventCommoneventDragImage0010 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .id('img1') + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_13: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets new file mode 100644 index 000000000..162c337ee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets @@ -0,0 +1,362 @@ +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Navigation,NavDestination,Text,FlexAlign,HorizontalAlign,ScrollDirection,NavPathStack, + Flex,FlexDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,BuilderParam,Builder,Color,DragEvent,Text, + Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Span,Text,Stack,Alignment, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0530 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0530_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0530_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0530_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Stack({ alignContent: Alignment.Bottom }) { + Text('First child, show in bottom') + .width('90%') + .height('100%') + .backgroundColor(0xd2cab3) + .align(Alignment.Top) + Text('Second child, show in top') + .width('70%') + .height('60%') + .backgroundColor(0xc1cbac) + .align(Alignment.Top) + } + .width('100%') + .height(150) + .backgroundColor(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0530_004') + .layoutWeight(1) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface1060.ets + + +@Component +struct Child { + label: string = `Child`; + @BuilderParam customBuilderParam: () => void = this.customBuilder; + @BuilderParam customChangeThisBuilderParam: () => void = this.customChangeThisBuilder; + @Builder + customBuilder() { + }; + @Builder + customChangeThisBuilder() { + }; + build() { + Column() { + this.customBuilderParam() + this.customChangeThisBuilderParam() + }.draggable(true) + .backgroundColor(Color.Pink) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + } +} +@Component +struct ActionEventCommoneventDragInterface1060 { + label: string = `Parent`; + @Builder + componentBuilder() { + Text(`${this.label}`) + } + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Text('drag in') + } + .id('dragin') + .height(100) + .width(100) + .backgroundColor(Color.Yellow) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0180.ets + + +@Component +struct UIActtonEventComdneventDracInterface0180 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_18_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_18_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0320 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Navigation(new NavPathStack()) { + } + .height(200) + .width('100%') + .title('设置') + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets + + +@Component +struct UIAttributesBackgroundInterface130 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]] + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0030.ets + + +@Component +struct ActionEventCommoneventClickDfx0030 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0030") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0060.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0060 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_130: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets new file mode 100644 index 000000000..c99c1eacd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets @@ -0,0 +1,392 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + $r,MenuItem,MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,Row, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import resourceManager from '@ohos.resourceManager'; + + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest04.ets + +@Component +struct ZIndexTest04 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(3) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(2) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(-1) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions ).alignContent(Alignment.BottomEnd) + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(3) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(2) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(1) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + Stack() { + Text() + .zIndex(2) + .zIndex(200000000000) + .zIndex(0) + .zIndex(-2) + .zIndex(1) + .zIndex(-199999999999) + .zIndex(99) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('20%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0260.ets + + +@Component +struct UIAttributesFocuscontrolInterface0260 { +@State enabledValue :boolean = true + build() { + Column({ space: 20 } as ColumnOptions) { + Row(){ + Button("enable:false") + .id('UIAttributesFocuscontrolInterface0260_001') + .width(200) + .height(70) + .onClick((e: ClickEvent) => { + this.enabledValue = false + }) + } + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + .enabled(this.enabledValue) + }.width('100%') + } + } + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets + + +@Component +struct UIAttributesBackgroundInterface077 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: 100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0450 { + @State hei:number = 120; + @State mar:number = 20; + @State cl:boolean = true; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).id('text').clip(this.cl) + .onClick((e:ClickEvent)=>{ + this.cl = false; + }) + } + .height(500) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton165.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton165 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions).focusable(false) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions).focusable(false) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_165') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350.ets + + +@Component +struct UIAttributesModaltransitionVision0350 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 420, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420.ets + + +@Component +struct UIAttributesColorrampInterface0420 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + radius: "20px" + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100.ets + + +@Component +struct UIAttributesImageeffectInterface0100 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0280.ets + + +@Component +struct UIAttributesBcakgroundSeriable0280 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_131: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets new file mode 100644 index 000000000..a9542b2d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets @@ -0,0 +1,437 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,DragEvent, + RectOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + MenuItem, + FontWeight, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + Menu, + Menu, + Builder, + MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Row +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,EdgeEffect, ComputedBarAttribute, + Scroll, ScrollState, ForEach, Color, ColumnOptions, TextAlign, Margin, Row, RowOptions, Grid, Edge, BarState, GridItem, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0110.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0110 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Row({ space: 10 } as RowOptions) { + Button('velocity null').onClick((event:ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { velocity:0.01}) + }).id('UIComponentScrollScrollbarScrolledge0110_001') + } + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } as ComputedBarAttribute + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets + + +@Component +struct UIAttributesBackgroundInterface0010 { + build() { + Row() { + } + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0050.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0050 { + build() { + Column({ space: 5 }as ColumnOptions) { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .onClick((e: ClickEvent) => { + }) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets + + +@Component +struct UIAttributesSelectedStyle0150 { + @State select: boolean = true; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + } as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0150_1') + Button('Click') + .id('UIAttributesSelectedStyle0150_2') + .onClick((e: ClickEvent) => { + this.select = false; + }) + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0090.ets + + +@Component +struct UIAttributesTouchableInteraction0090 { + @State message: string = 'ROW1'; + @State message2: string = 'ROW2'; + build() { + Column(){ + Row(){ + Text(this.message) + } + .id('UIAttributesTouchableInteraction0090_001') + .hitTestBehavior(HitTestMode.None) + .onDragEnter((dragEnter:DragEvent):void=>{ + }) + .onDrop((): void=>{ + }) + Row(){ + Text(this.message2) + } + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0250.ets + + +@Component +struct ActionEventCommoneventDragdefault0250 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0700.ets + + +@Component +struct UIActionEventCommonEventDragInterface0700 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((event as DragEvent), (event: DragEvent) => { + this.abstractContent = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_132: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets new file mode 100644 index 000000000..93500da5b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets @@ -0,0 +1,451 @@ +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Area +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0040_534.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0040_534 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030.ets + + +@Component +struct UIAttributesColorRampBlurGradient0030 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes180.ets + + +@Component +struct UIAttributesTouchableInteraction180 { + @State value: string = 'Text' + @State sizeValue: string = '' + build() { + Column() { + Text(this.value) + .id('UIAttributesTouchableInteraction180') + .hitTestBehavior(HitTestMode.None) + .backgroundColor(Color.Green) + .margin(30) + .fontSize(20) + .onClick((): void => { + this.value = this.value + 'Text' + }) + .onAreaChange((oldValue: Area, newValue: Area): void => { + console.info(`Ace: on area change, oldValue is ${String(oldValue)} value is ${String(newValue)}`) + this.sizeValue = String(newValue) + }) + Text('new area is: \n' + this.sizeValue).margin({ right: 30, left: 30 } as Margin) + } + .width('100%').height('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0100 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 } as matrix4.ScaleOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('scale:x*0.5') + .id('UIAttributesGraphicTransformationSkew0100_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('scale:y*0.5') + .id('UIAttributesGraphicTransformationSkew0100_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('translate:z*0.5') + .id('UIAttributesGraphicTransformationSkew0100_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('translate:x*2') + .id('UIAttributesGraphicTransformationSkew0100_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('rotate:x+∠+45') + .id('UIAttributesGraphicTransformationSkew0100_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('rotate:y+∠+45') + .id('UIAttributesGraphicTransformationSkew0100_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('skew:x+1') + .id('UIAttributesGraphicTransformationSkew0100_007') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(1, 0); + }) + Button('skew:y+1') + .id('UIAttributesGraphicTransformationSkew0100_008') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, 1); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0090 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: undefined }) + .id('UIAttributesClivkreboundeffectInterface0090_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0150.ets + + +@Component +struct UIActtonEventComdneventDracInterface0150 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_02") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0200.ets + + +@Component +struct UIAttributesBcakgroundSeriable0200 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.XY) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500.ets + + +@Component +struct UIAttributesColorrampInterface0500 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_overflow.ets + +@Component +struct ButtonOverflow { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Row(){ + Button('To start preview in the stage model, select a UI file under src/main/ets.',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button('To start preview in the stage model, select a UI file under src/main/ets.To start preview in the stage model, select a UI file under src/main/ets.',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button('button',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: 800, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button('button',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: '500', + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .borderRadius(-30) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .borderRadius(50) + }.width('80%') + Row(){ + Button($r('app.media.startIcon')) + .width(100) + .height(80) + Button('字符串') + .width(100) + .height(80) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_133: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets new file mode 100644 index 000000000..a4b384f15 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets @@ -0,0 +1,323 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Color, + Row, + AttributeModifier, +} from '@ohos.arkui.component' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Scroll,ScrollDirection,BarState,EdgeEffect,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,ColumnOptions, + EdgeEffect,HorizontalAlign,FlexAlign } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0030.ets + + +@Component +struct UIAttributesFocuscontrolInterface0030 { + @State str: string = 'aa' + @State strError: string = '' + fun(): boolean { + this.strError = "error" + return true + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("DefaultFocus(a)") + .defaultFocus(this.fun()) + Text(this.strError) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0130 { + @State isDialogVisible: boolean = false; + onButtonClick(){ + this.isDialogVisible = true + if (this.isDialogVisible == true) { + } + } + build() { + Column(){ + Scroll(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isDialogVisible == true ? Color.Green :Color.White).margin({left:100,top:-100} as Margin) + }.width('100%').height(400).backgroundColor(Color.Green) + } + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .friction(0.6) + .edgeEffect(EdgeEffect.None) + Button("scroll") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets + + +@Component +struct UiAttributesFloatingLayerInterface0130 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets + + +@Component +struct UIAttributesBackgroundInterface0680 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomStart) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050.ets + + +@Component +struct UIAttributesModaltransitionInteration0050 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor: '#88888888', + preferType: SheetType.CENTER, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest5.ets + +@Component +struct ZIndexDynamicModificationTest5 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex: number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex: number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex: number = 0 //组件的宽高的初始值 + @State isImage: boolean = false + @State isVideo: boolean = false + onPageShow() { + this.textValueIndex = 1 //text的value: 'ABC设置zIndex: 0 0 0' + this.zIndexValueIndex = 1 //ABC设置zIndex: 0 0 0 + } + build() { + Column({ space: 5 } as ColumnOptions as ColumnOptions) { + Row(){ + Text('Z序控制动态修改').fontSize(22).fontColor(0x000000).fontWeight(FontWeight.Bold) + }.backgroundColor(0xE6E6FA).borderRadius(20).height('6%').width('100%').justifyContent(FlexAlign.Center) + if (this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({ width: 1, color: Color.Red }).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + } + .width('90%') + .height('30%') + .border({ width: 1, color: Color.Red } as BorderOptions) + .alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]) + .height(this.whValue[this.whValueIndex][1]) + .backgroundColor(0xFFCCCC) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]) + .height(this.whValue[this.whValueIndex][3]) + .backgroundColor(0xCCFFFF) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]) + .height(this.whValue[this.whValueIndex][5]) + .backgroundColor(0xFFFACD) + .align(Alignment.TopStart) + }.width('90%').height('18%').border({ width: 1, color: Color.Red } as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Statestyles/entry/src/main/ets/testability/pages/Statestyles/Test_2_1.ets + +@Component +struct Test21 { + @State focused: boolean = true + build() { + Row() { + Column() { + Button("pressed and focused") + .margin(50).id("pre1") + } + .width('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_134: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets new file mode 100644 index 000000000..f2b581773 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets @@ -0,0 +1,408 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Progress,HorizontalAlign,ScrollDirection,Color,FlexAlign,ProgressType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin, + Button,DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Button, + Builder, + ClickEvent +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Flex,FlexOptions,EdgeEffect,FlexWrap,Alignment,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridDirection, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Color,Hyperlink,Text,Image,FlexAlign,Margin,ImageFit, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650.ets + + +@Component +struct UIAttributesImageeffectInterface0650 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190.ets + + +@Component +struct UIComponentCommonattrForegroundEffect190 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0190_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0190_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0190_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Image('2.png') + .objectFit(ImageFit.Contain) + .margin({ top: 68 } as Margin) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0190_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_040.ets + +@Component +struct Grid_040 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = Infinity + @State minCount: number = 1 + @State cellLength: number = 0 + @State mTemplate: string = '1fr 1fr 1fr 1fr 1fr' + @State layoutDirection: GridDirection = GridDirection.Column + scroller1: Scroller = new Scroller() + @State layoutOptions: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('0330_117') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + this.cellLength = 0 + }) + Text() + .width(10) + .height(10) + .key('0340_844') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + this.cellLength = 70 + }) + Text() + .width(10) + .height(10) + .key('0230_611') + .onClick((event:ClickEvent) => { + this.cellLength = 0 + }) + Text() + .width(10) + .height(10) + .key('0240_477') + .onClick((event:ClickEvent) => { + this.cellLength = 140 + }) + Text() + .width(10) + .height(10) + .key('0250_011') + .onClick((event:ClickEvent) => { + this.cellLength = -140 + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(90) + .height(50) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .width(300) + .height(170) + .columnsGap(10) + .rowsGap(10) + .minCount(this.minCount) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCount) + .cellLength(this.cellLength) + .layoutDirection(this.layoutDirection) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0080 { + @State text: string = '点击'; + @Builder BackgroundBuilder() { + Column(){ + Button(this.text) + .onClick((e: ClickEvent) => { + this.text = '已点击'; + }) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + .id('UIAttributesBackgroundSelfDrawing0080') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0020.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0020 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart') + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640.ets + + +@Component +struct UIAttributesImageeffectInterface0640 { + build() { + Column() { + Row() { + Text('test') + .blur(6.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0380 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Progress({ value: 10, type: ProgressType.Linear }).width(200) + Progress({ value: 10, type: ProgressType.Linear }).width(200) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4.ets + + +@Component +struct UIAttributesModaltransitionVision0070_4 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets + + +@Component +struct UIAttributesBackgroundInterface121 { + build() { + Column() { + Row() + .backgroundColor(Color.Yellow) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_135: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets new file mode 100644 index 000000000..4d798eee5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets @@ -0,0 +1,443 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Stack, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,List,ListItem,Text,ClickEvent,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Gauge, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Span,Text,TextDecorationType,TextDecorationStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630.ets + + +@Component +struct UIAttributesColorrampInterface0630 { + @State colors:Array<[ResourceColor, number]> = [[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] as Array<[ResourceColor, number]>; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: this.colors, + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 1000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.colors=[[Color.Blue,0.0],[Color.Brown,0.3],[Color.Red,1.0]] + this.btnShow = Visibility.None + } else { + this.colors=[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010.ets + + +@Component +struct UIAttributesImageeffectInvert0010 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse001.ets + + +@Component +struct UIComponentCommonattrClearfocuse001 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520.ets + + +@Component +struct UIComponentCommonattrForegroundEffect520 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0520_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0520_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0520_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text() { + Span('I am Underline-WAVY-span') + .decoration({ + type: TextDecorationType.Underline, + color: Color.Red, + style: TextDecorationStyle.WAVY + }) + .fontSize(28) + .foregroundEffect({ radius: this.radius }) + } + .backgroundColor(Color.Pink) + } + } + .id('UIComponentCommonattrForegroundEffect0520_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0040.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0040 { + build() { + Column({ space: 5 }as ColumnOptions) { + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent-.ets + +@Component +struct Percent_fu { + build() { + Column() { + Text('扩展尺寸: -20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '-20%', bottom: '-20%', left: '-20%', right: '-20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0120.ets + + +@Component +struct ActionEventControlCallback0120 { + @State context: string = "" + build() { + Column(){ + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0160 { + @State color: Color = Color.Blue; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .defaultFocus(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0160_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0110.ets + + +@Component +struct ActionEventCommoneventDragImage0110 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_CANCELED) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_CANCELED) { + this.result = '成功获取拖拽取消状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_136: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets new file mode 100644 index 000000000..2af51938b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets @@ -0,0 +1,376 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, + Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600.ets + + +@Component +struct UIAttributesImageeffectInterface0600 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(2) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets + + +@Component +struct UIAttributesBackgroundInterface103 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0660.ets + + +@Component +struct ActionEventCommoneventDragdefault0660 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '.(&%&%$^&(&^$@!#%^.,<>:+_(*' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0060_990.ets + + +@Component +struct UIComponentListandgridGridEvents_0060_990 { + @State numbers: Array = new Array() + @State numbers2: Array = new Array() + scroller1: Scroller = new Scroller() + @State text: string = 'drag' + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex] + return this.pixelMapBuilder() + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return + } + console.info('beixiang' + itemIndex + '', insertIndex + '') + this.changeIndex(itemIndex, insertIndex) + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex] + return this.pixelMapBuilder() + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return + } + console.info('beixiang' + itemIndex + '', insertIndex + '') + this.changeIndex(itemIndex, insertIndex) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0080.ets + + +@Component +struct ActionEventCommoneventDragdefault0080 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(20) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest15.ets + +@Component +struct ZIndexDynamicModificationTest15 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.isVideo = true // Video 123设置zIndex: 3 2 1 + this.zIndexValueIndex = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_137: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets new file mode 100644 index 000000000..99eb490b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets @@ -0,0 +1,377 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110.ets + + +@Component +struct UIAttributesModaltransitionInteration0110 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.POPUP, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0540.ets + + +@Component +struct ActionEventCommoneventDragdefault0540 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State text_align:TextAlign = TextAlign.Start + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .textAlign(this.text_align) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + this.text_align = TextAlign.Start + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .textAlign(TextAlign.Start) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur2.ets + +@Component +struct linearGradientBlur2 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(0, { fractionStops: [[0,0]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540.ets + + +@Component +struct UIAttributesImageeffectInterface0540 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0040.ets + + +@Component +struct ActionEventCommoneventDragImage0040 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0060 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=null') + .id('UIAttributesGraphicTransformationSkew0060_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + }) + Button('y=null') + .id('UIAttributesGraphicTransformationSkew0060_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0390.ets + + +@Component +struct ActionEventCommonEventMouseStyle0390 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.ZOOM_OUT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0390_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0390" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0390_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150.ets + + +@Component +struct UIAttributesColorrampInterface0150 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.LeftTop, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_138: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets new file mode 100644 index 000000000..15ce670c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets @@ -0,0 +1,400 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + HorizontalAlign,ScrollDirection,ColumnSplit,TextAlign,Button,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + TextAlign, + Margin, + Color, + $r +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets + + +@Component +struct UIAttributesBackgroundInterface1330 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[$r('app.media.startIcon'),0.4],["rgb(255,200,255)",0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0080 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + ColumnSplit() { + Text('1').width('100%').height(50).textAlign(TextAlign.Center) + Text('2').width('100%').height(50).textAlign(TextAlign.Center) + } + .borderWidth(1) + ColumnSplit() { + Text('1').width('100%').height(50).textAlign(TextAlign.Center) + Text('2').width('100%').height(50).textAlign(TextAlign.Center) + } + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0070 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=undefined') + .id('UIAttributesGraphicTransformationSkew0070_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + }) + Button('y=undefined') + .id('UIAttributesGraphicTransformationSkew0070_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180.ets + + +@Component +struct UIAttributesColorrampInterface0180 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.RightBottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060.ets + + +@Component +struct UIAttributesModaltransitionAnimator0060 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0090 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + } + .width(180) + .height(180) + .alignItems(HorizontalAlign.Center) + .backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0090_001') + .onClick((e: ClickEvent) => { + }) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0050_700.ets + + +@Component +struct UIComponentListandgridGridEvents_0050_700 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + this.text1 = 'onItemDrop'; + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0130.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0130 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_139: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets new file mode 100644 index 000000000..63b931676 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets @@ -0,0 +1,397 @@ +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image, + RotationGesture +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Color,FlexAlign,EdgeColors, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import image from '@ohos.multimedia.image'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,ClickEvent,Text,Button,Color,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0210.ets + + +@Component +struct UIActtonEventComdneventDracInterface0210 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0210_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_0210_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.ets + + +@Component +struct UIAttributesGraphictransformationInterface0250 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('translate{x:-100}') + Image('cat.jpg') + .width(100) + .translate({x:-100} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0230.ets + + +@Component +struct ActionEventCommoneventDragImage0230 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方超链接资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.HYPERLINK]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let link = arr[0] as unifiedDataChannel.Hyperlink; + this.uri = link.url; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let link: unifiedDataChannel.Hyperlink = new unifiedDataChannel.Hyperlink; + link.url = 'www.xxx.com'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(link); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragMultievents/ActionEventCommoneventDragMultievents0310.ets + + +@Component +struct ActionEventCommoneventDragMultievents0310 { + @State info: string = ''; + build() { + Column({ space: 5 } as ColumnOptions) { + Column() { + Text('Column') + } + .id('Column') + .height(100) + .width(150) + .backgroundColor(Color.Pink) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Column() { + Text('Column2') + } + .height(100) + .width(150) + .backgroundColor(Color.Yellow) + .id('Column2') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Button('0310') + .draggable(true) + .onClick((e:ClickEvent) => { + this.info = 'button click'; + }) + Text(this.info) + Column() { + Text('dropin') + } + .height(200) + .width(350) + .backgroundColor(Color.Black) + .id('dropin') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets + + +@Component +struct UIAttributesBackgroundInterface078 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "33fp" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020.ets + + +@Component +struct UIAttributesOutlineColor0020 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor({left: 0xFFFF4777, right: 0xFFFF4777, top: 0xFFFF4777, bottom: 0xFFFF4777} as EdgeColors) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0330 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("xuanzhuanButton") + .fontSize(100) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent) => { + this.angle=75 + }) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0310 { + @State hei:number = 120; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + + +export const FLAG_OF_FILE_14: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets new file mode 100644 index 000000000..09e55fdec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets @@ -0,0 +1,517 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,TextAlign, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + TouchEvent +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, Text, Image } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0380 { + @State count: string = "鼠标点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("鼠标点击") + .id("shubiaoButton") + .fontSize(30) + .onClick((e: ClickEvent): void => { + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130.ets + + +@Component +struct UIAttributesColorRampBlurGradient0130 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets + + +@Component +struct touchObjectActionEventCommon { + @State positionStr: string = 'x:0,y:0' + build() { + Column() { + Text(this.positionStr) + Button('touchObject') + .id('touch_object_button') + .onTouch((event: TouchEvent) => { + this.positionStr = 'x:' + event.touches[0].displayX + ',y:' + event.touches[0].displayY; + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0050 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin).offset({x:30,y:10} as Position) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0310.ets + + +@Builder +function builder10310(text: string) { + builder20310(text) +} +@Builder +function builder20310(text: string) { + Text(text) + .fontSize(50) +} +@Component +struct SubAceActionWindowWindowCustom0310 { + @State statel: string = 'text1'; + @Builder + builder1(text: string) { + builder20310(text) + } + build() { + Column() { + builder10310(this.statel) + this.builder1(this.statel) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0130.ets + + +@Component +struct ActionEventCommoneventDragdefault0130 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + Text('Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Flex() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .margin({left:30} as Margin) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0480.ets + + +@Component +struct ActionEventCommoneventDragdefault0480 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State font_weight:number = 0 + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .backgroundColor(Color.Red) + .textAlign(TextAlign.End) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .backgroundColor(Color.Red) + .textAlign(TextAlign.End) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface30.ets + + +@Component +struct AceActionEventCommoneventClickInterface30 { + @State text: string = 'x = '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface30') + .onClick((event: ClickEvent) => { + this.number1 = event.x; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0170.ets + + +@Component +struct ActionEventCommoneventDragdefault0170 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020.ets + + +@Component +struct UIAttributesOutlinewidth0020 { + build() { + Column() { + Text('outlineWidth测试') + .outlineWidth({ + left: 20, + right: 30, + top: 35, + bottom: 25 + } as EdgeOutlineWidths) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0420.ets + + +@Component +struct ActionEventCommonEventMouseStyle0420 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0420_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0420" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0420_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_140: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets new file mode 100644 index 000000000..28921a7ae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets @@ -0,0 +1,336 @@ +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign, + TextInput, + RelativeContainer, + VerticalAlign, + HorizontalAlign, + Axis, + ChainStyle, + Margin, + XComponent +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextDecorationType, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import systemDateTime from '@ohos.systemDateTime' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TouchType +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0220.ets + + +@Component +struct ActionEventCommoneventDragImage0220 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let video = arr[0] as unifiedDataChannel.Video; + this.uri = video.videoUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let video: unifiedDataChannel.Video = new unifiedDataChannel.Video(); + video.videoUri = '这是一个video资源路径'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(video); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/CommonEventTouchDfx/commonEventTouchDfx0010.ets + + +@Component +struct commonEventTouchDfx0010 { + @State eventType: string = '' + @State text: string = 'none' + @State touchDown: number = 0 + @State touchUp: number = 0 + build() { + Stack() { + Column() { + Text('目标元素') + } + .id('touch_view') + .width(100) + .height(150) + .position({ x: 0 } as Position) + .backgroundColor(Color.Orange) + .onTouch((event?: TouchEvent) => { + this.text = 'onTouch' + if (event) { + if (event.type === TouchType.Down) { + this.touchDown = systemDateTime.getTime(); + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.touchUp = systemDateTime.getTime(); + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + } + }) + Column() { + Text(`type ${this.eventType}`) + .id('event_type') + Text(this.touchDown + '') + .id('touch_down') + .fontColor(Color.Transparent) + Text(this.touchUp + '') + .id('touch_up') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic5.ets + +@Component +struct buttonDynamicExample5 { + @State buttonType: ButtonType | undefined = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonType_非法值_undefined' + this.buttonType = undefined + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160.ets + + +@Component +struct UIAttributesImageeffectInterface0160 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0390.ets + + +@Component +struct ActionEventCommoneventDragdefault0390 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State underline:TextDecorationType = TextDecorationType.None + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .decoration({ + type: this.underline + }) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .decoration({ + type: TextDecorationType.Underline + }) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.underline = TextDecorationType.Underline + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0010 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .stateEffect(true) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 }) + .id('UIAttributesClivkreboundeffectInterface0010_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/CAPI_NEW4/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 }as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_141: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets new file mode 100644 index 000000000..48ae3c2b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets @@ -0,0 +1,430 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Component, Column,ColumnOptions,Text,DragEvent,Row,RowOptions,Image,$r,Color,Margin, + DragBehavior,DragResult,Rectangle +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridItemAlignment,BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignitems/UIComponentGridAlignitems0250.ets + + +@Component +struct UIComponentGridAlignitems0250 { + @State data: Array = new Array(); + @State items: Array = new Array(); + aboutToAppear(): void { + for (let i = 0; i < 10; i++) { + this.data.push(String(i)) + this.items.push(String(1 + i)) + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Text('Grid alignItems示例代码') + Grid() { + ForEach(this.data, (item: string, index:number) => { + GridItem() { + Column() { + Column().height(100).backgroundColor('#D5D5D5').width('100%') + Text('这是一段文字'); + Column().height(50).backgroundColor('#FF0000').width('100%') + } + } + .border({ color: Color.Black, width: 1 } as BorderOptions) + }) + } + .columnsGap(10) + .rowsGap(5) + .columnsTemplate('1fr 1fr') + .width('80%') + .height('100%') + .alignItems(GridItemAlignment.STRETCH) + .scrollBar(BarState.Off) + .id('UIComponentGridAlignItems0250'); + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0760.ets + + +@Component +struct ActionEventCommoneventDragdefault0760 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = 'This is draggable text' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets + + +@Component +struct UIAttributesBackgroundInterface0440 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundThin.ets + +@Component +struct BlurStyle_BackgroundThin { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0610.ets + + +@Component +struct ActionEventCommoneventDragInterface0610 { + @State uri: string = "" + @State targetImage1: string = ''; + @State targetImage2: string = ''; + @State targetImage3: string = ''; + @State targetImage4: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State BblockArr: string[] = [] as string[] + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column() { + Text('拖拽控制-allowDrop属性测试').fontSize(9).fontColor(0xCCCCCC).width('100%') + Row({ space: 10 } as RowOptions) { + Column() { + Row() { + Image($r('app.media.startIcon')).width(100).height(100) + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + let data: UDC.Image = new UDC.Image(); + data.imageUri = "pages/file/640.jpg" + event.setData(new UDC.UnifiedData(data)); + let unifiedData: UDC.UnifiedData = new UDC.UnifiedData(data); + let data2: UDC.Image = new UDC.Image(); + data.imageUri = "pages/file/1.jpg" + unifiedData.addRecord(data2); + (event as DragEvent).setData(unifiedData); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + console.log('DragBehavior is: ' + event.dragBehavior.toString()); + }) + }.height(100) + Column() { + Text("enable+move") + .fontSize(16) + Image(this.targetImage1) + .id('image') + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + event.dragBehavior = DragBehavior.COPY + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.MOVE + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + this.targetImage1 = (records[0] as UDC.Image).imageUri; + event1.useCustomDropAnimation = false; + event1.setResult(DragResult.DRAG_SUCCESSFUL); + event1.dragBehavior = DragBehavior.COPY + }) + }) + } + } + }.height(300).margin({ top: 50 } as Margin) + }.width("100%").height("100%") + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0060_704.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0060_704 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0060 { + @Builder + OverlayNode() { + Column() { + Image($r('app.media.startIcon')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode1() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode2() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode2() { + Column() { + Image($r('app.media.startIcon')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode3() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode3() { + Column() { + Image($r('app.media.startIcon')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_142: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets new file mode 100644 index 000000000..f47ab8c8b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets @@ -0,0 +1,339 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, + PanDirection,PanGestureHandlerOptions,TranslateOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0080.ets + + +@Component +struct ActionEventCommoneventDragInterface0080 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0320.ets + + +@Component +struct ActionEventCommonEventMouseStyle0320 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MOVE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0320_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0320" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0320_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragWay/ActionEventCommoneventDragWay0010.ets + + +@Component +struct ActionEventCommoneventDragWay0010 { + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + build() { + Column({ space: 5 } as ColumnOptions) { + Button('0010') + .height("50") + .id('button') + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(():void => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0180.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0180 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .borderWidth(5) + .borderColor(Color.Yellow) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0230_102.ets + + +@Component +struct UIComponentListandgridGridInterface_0230_102 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1]; + else if(index==1) + return [0, 1, 2, 2]; + else if(index==2) + return [0 ,3 ,3 ,3]; + else if(index==3) + return [3, 0, 3, 3]; + else if(index==4) + return [4, 3, 2, 2]; + else + return [5, 5, 1, 1]; + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(-1) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550.ets + + +@Component +struct UIAttributesModaltransitionVision0550 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, undefined) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200.ets + + +@Component +struct UIAttributesImageeffectInterface0200 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(-45) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_143: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets new file mode 100644 index 000000000..6352eac1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets @@ -0,0 +1,395 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ListOptions, BorderOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding, FlexOptions,GridLayoutOptions, Flex,FlexWrap,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column +} from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0380.ets + + +@Component +struct ActionEventCommonEventMouseStyle0380 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.ZOOM_IN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0380_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0380" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0380_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120.ets + + +@Component +struct UIAttributesColorrampInterface0120 { + @State repeat:boolean=false + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + repeating:this.repeat + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.repeat=!this.repeat + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080.ets + + +@Component +struct UIAttributesModaltransitionSafearea0080 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010.ets + + +@Component +struct UIAttributesTransparencyInterface0010 { + @State opacityValue: Resource | number = 1.0; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0.5') + .onClick((e:ClickEvent) => { + this.opacityValue = $r('app.media.startIcon'); + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670.ets + + +@Component +struct UIAttributesModaltransitionVision0670 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets + + +@Component +struct UIAttributesBackgroundInterface131 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + repeating: true + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_032.ets + +@Component +struct Grid_032 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4') + @State numbers2: Array = new Array('0', '1','2','3','4','5') + @State isEnabled:boolean = true + @State mOpacity:number = 1 + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Button('WATERFLOW_GRIDITEM_0080') + .id('WATERFLOW_GRIDITEM_0080') + .fontSize(8) + .height(20) + .padding({ left: 5, right: 5 } as Padding) + .onClick((event:ClickEvent) => { + this.isEnabled = false + this.mOpacity = 0.6 + }) + } + Grid() { + ForEach(this.numbers1, (day: string, index:number) => { + ForEach(this.numbers1, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + }.enabled(this.isEnabled).opacity(this.mOpacity) + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({top: 50} as Margin) + } +} + + +export const FLAG_OF_FILE_144: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets new file mode 100644 index 000000000..09400d761 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets @@ -0,0 +1,469 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { promptAction } from '@kit.ArkUI'; + +import { BusinessError } from '@ohos.base'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Color,PreDragStatus,Text, + ColumnOptions,Margin,Builder,Image,Row,DragResult, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image, + SwipeGesture, + SwipeDirection +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Marquee,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0250 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Marquee({ src: "this is the running text", start: false }) + .width(100) + .height(30) + .borderWidth(1) + Marquee({ src: "this is the running text", start: false }) + .width(100) + .height(30) + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110.ets + + +@Component +struct UIAttributesColorRampBlurGradient0110 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0340 { + @State rotateAngle: number = 0; + @State speed: number = 1; + @Builder + overlayBuilder(){ + Button("按键") + .onClick((e: ClickEvent) => { + this.rotateAngle=80 + }) + .id("huadongButton") + .fontSize(100) + .border({ width: 3 }) + .width(300) + .height(200) + .margin(100) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.All }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => { this.overlayBuilder() }).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0030.ets + +@Component +struct ActionEventCommonEventDragListItem0030 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @State dragState: string = ''; + @State dragStateSuccess: string = ''; + @Builder + pixelMapBuilder() { + Column() { + Image('2.png') + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column({ space: 30 } as ColumnOptions) { + Image('2.png') + .width(150) + .height(150) + .draggable(true) + .margin({ left: 15 } as Margin) + .visibility(this.imgState) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.backGroundColor = Color.Transparent; + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .id('DragListItem0030Image') + .onDragEnd((event: DragEvent, extraParams?: string):void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + } else if (event.getResult() === DragResult.DRAG_FAILED) { + } + }) + .draggable(true) + Text(`1`).fontSize(1).id('text1').margin(40).id("DragListItem0030Text") + Column() { + Text(this.targetText) + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 }) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event as DragEvent), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.targetText = plainText.textContent; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0090.ets + + +@Component +struct ActionEventCommoneventDragInterface0090 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本') + .id('0') + .fontSize(30) + .selection(0, 100) + .copyOption(CopyOptions.InApp) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050.ets + + +@Component +struct UIAttributesImageeffectInterface0050 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440.ets + + +@Component +struct UIAttributesImageeffectInterface0440 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: 'rgb(0,255,0)' } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0050 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0170.ets + + +@Component +struct ActionEventCommoneventDragInput0170 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_145: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets new file mode 100644 index 000000000..76e829c70 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets @@ -0,0 +1,354 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,FlexAlign} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ComponentOpacitySetIndex.ets + +@Component +struct ComponentOpacitySetIndex { + build() { + Scroll() { + Column() { + Column() { + Text('父组件设置透明度0.4,子组件设置透明度0.5') + .opacity(0.5) + .backgroundColor(0xAFEEEE) + .width('100%') + .textAlign(TextAlign.Start) + } + .opacity(0.4) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0030 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: -20 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0010.ets + + +@Component +struct UIAttributesFocuscontrolInterface0010 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + @Builder + tabBuilder(index: number, name: string) { + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + } + Column({ space: 20 } as ColumnOptions) { + Row({ space: 5 } as RowOptions) { + Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { + TabContent() { + Column().width('100%').height('50%').backgroundColor('#00CB87') + }.tabBar(():void =>{this.tabBuilder(0, 'green')}) + TabContent() { + Column().width('100%').height('50%').backgroundColor('#007DFF') + }.tabBar(():void =>{this.tabBuilder(1, 'blue')}).id('focus') + }.defaultFocus(false) + } + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets + + +@Component +struct UIAttributesBackgroundInterface108 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0270.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0270 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0270_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0270_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0030 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0010 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0230.ets + + +@Component +struct ActionEventCommoneventDragdefault0230 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_146: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets new file mode 100644 index 000000000..1e6bb606e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets @@ -0,0 +1,385 @@ +import { Entry, Component, Column,Text,Grid,GridItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row,Text,Color,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Driver } from '@kit.TestKit'; + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Search,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import pasteboard from '@ohos.pasteboard'; + +import { BusinessError } from '@ohos.base'; + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TextInput +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Text,Toggle,ToggleType,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0450.ets + + +@Component +struct ActionEventControlCallback0450 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets + + +@Component +struct UiAttributesFloatingLayerInterface0070 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{offset:{x:-50,y:100}}) + } + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/keyboardShortcut/buttonEvent26.ets + + +@Component +struct buttonEvent26 { + @State onFoucusMessage: string = ''; + @State foucusStatus: boolean = true; + onPageShow(): void { + let systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + systemPasteboard.clearData((err: BusinessError | null, data?: undefined) => { + if (err) { + return; + } + }); + } + build() { + Row() { + Column() { + TextInput() + .id('main_textInput') + .width(100) + .height(40) + .onFocus(() => { + this.onFoucusMessage = 'onFocus'; + }) + Button('button1') + .id('main_button') + .width(100) + .height(40) + .onClick((e: ClickEvent) => { + this.foucusStatus = !this.foucusStatus; + console.log('buttonEvent26 this.foucusStatue: ' + this.foucusStatus); + }) + } + .width('100%') + .height('100%') + }.id('main_page') + .focusable(this.foucusStatus) + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0030.ets + + +@Component +struct ActionEventCommonEventMouseStyle0030 { + build() { + Column({ space: 50 } as ColumnOptions) { + Search({ value: "Search1" }) + .id("ActionEventCommonEventMouseStyle0030_01") + Search({ value: "Search2" }) + .id("ActionEventCommonEventMouseStyle0030_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HELP); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360.ets + + +@Component +struct UIAttributesGraphictransformationInterface0360 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1.2,centerY:"20px"}') + Image('cat.jpg') + .width(100) + .scale({x:1.2,centerY:"20px"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0010 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030.ets + + +@Component +struct UIAttributesImageEffectProjection0030 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0390 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Text() + .id("sonButton") + .fontSize(20) + .width('100%') + .height(50) + .backgroundColor(Color.Red) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + build() { + Column() { + Text("2").margin({top:0} as Margin).fontSize(1).id("moveText1") + Text() + .id("fatherButton") + .fontSize(40) + .width('100%') + .height(150) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .backgroundColor(Color.Green) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ).overlay((): void =>{this.overlayBuilder()},{offset:{x:0,y:0}}) + Text("1").margin({ top: 50 } as Margin).fontSize(1).id("moveText") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0090.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0090 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth({left: 1, right: 0, top: 4, bottom: 1} as EdgeOutlineWidths) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0070.ets + + +@Component +struct ActionEventControlCallback0070 { + @State context: string = "" + build() { + Column(){ + Text(this.context) + Grid(){ + GridItem() + .backgroundColor(Color.Pink) + .width(200) + .height(200) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } + } +} + + +export const FLAG_OF_FILE_147: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets new file mode 100644 index 000000000..7893e5a7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets @@ -0,0 +1,411 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,PanGestureOptions,PanGesture, + BorderOptions,PanDirection +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + ScrollState, + Edge,ForEach,ScrollDirection,BarState,TextAlign,OffsetResult,ScrollSource,OnWillScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0280_006.ets + + +@Component +struct UIComponentListandgridGridInterface_0280_006 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .constraintSize({ maxWidth: 200 }) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230.ets + + +@Component +struct UIAttributesGraphictransformationInterface0230 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('translate({x:0,y:0,z:0})') + Image('cat.jpg') + .width(400) + .translate({x:0,y:0,z:0} as TranslateOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0370.ets + + +@Component +struct ActionEventCommonEventMouseStyle0370 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.TEXT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0370_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0370" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0370_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets + + +@Component +struct UIAttributesBackgroundInterface0390 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450.ets + + +@Component +struct UIAttributesImageeffectInterface0450 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend($r('app.media.startIcon')) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes400.ets + + +@Component +struct UIAttributesTouchableInteraction400 { + scroller: Scroller = new Scroller() + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State testTextStr: string = 'test' + @State testRowStr: string = 'test' + build() { + Column() { + Column() { + Text(this.testTextStr) + .fontSize(20) + Text(this.testRowStr) + .fontSize(20) + } + .height(100) + .backgroundColor(Color.Gray) + .opacity(0.3) + Scroll(this.scroller) { + Column() { + Text("Test Text Visible Change") + .fontSize(20) + .height(200) + .margin({ top: 50, bottom: 20 } as Margin) + .backgroundColor(Color.Green) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number):void => { + console.info('Test Text isVisible: ' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Text is fully visible. currentRatio:' + currentRatio) + this.testTextStr = 'Test Text is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Text is completely invisible.') + this.testTextStr = 'Test Text is completely invisible' + } + }) + Row() { + Text('Test Row Visible Change') + .fontSize(20) + .margin({ bottom: 20 } as Margin) + } + .height(200) + .backgroundColor(Color.Yellow) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number):void => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Row is fully visible.') + this.testRowStr = 'Test Row is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Row is completely invisible.') + this.testRowStr = 'Test Row is completely invisible' + } + }) + ForEach(this.arr, (item:number) => { + Text(item.toString()) + .width('90%') + .height(150) + .backgroundColor(0xFFFFFF) + .borderRadius(15) + .fontSize(16) + .textAlign(TextAlign.Center) + .margin({ top: 10 } as Margin) + }, (item:number) => (item.toString())) + }.width('100%') + } + .id('UIAttributesTouchableInteraction400') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(0x317aff) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onWillScroll((xOffset: number, yOffset: number, scrollState: ScrollState,scrollSource:ScrollSource): OffsetResult => { + console.info(xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge):void => { + console.info('To the edge') + }) + .onScrollStop(() => { + console.info('Scroll Stop') + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes20.ets + + +@Component +struct UIAttributesTouchableInteraction20 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State Text: string = 'Text PanGesture'; + private panOption: PanGestureOptions = new PanGestureOptions(); + build() { + Column() { + Text(this.Text) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(50) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction20') + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.Text = 'PanGesture success'; + }) + ) + } + } +} + + +export const FLAG_OF_FILE_148: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets new file mode 100644 index 000000000..1cab7ee8e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets @@ -0,0 +1,431 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,Resource, + ColumnOptions,$r,$$ +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions,TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets + + +@Component +struct UIAttributesBackgroundInterface0220 { + build() { + Column() { + Row() { + Text("Thin") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thin) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0060.ets + + +@Component +struct UIAttributesFocuscontrolInterface0060 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller } as TextInputOptions) + .width(380) + .height(60) + .focusable(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0140.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0140 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Thin.ets + +@Component +struct BlurStyle_Thin { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0130.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0130 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0130_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0130_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0130_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510.ets + + +@Component +struct UIAttributesModaltransitionVision0510 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: true, + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0190 { + @State opacity1:number = 1.0 + onButtonClick(){ + this.opacity1 = 0.5 + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/showClose.ets + +@Component +struct showClose { + @State isShow: boolean = false + @State isShow1: boolean = false + @State sheetHeight: number = 300; + @State mStatus: boolean | Resource = true + @Builder + myBuilder() { + Column() { + Button("change height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.sheetHeight = 500; + }) + Button("close modal 1") + .id('close') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + @Builder + myBuilder1() { + Column() { + Button("change height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.sheetHeight = 500; + }) + Button("close modal 2") + .id('close1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow1 = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column({ space: 10 } as ColumnOptions) { + Button('this.showClose ' + this.mStatus) + .id('mStatus') + .onClick((event: ClickEvent) => { + this.mStatus = false + }) + Button('this.showClose ' + this.mStatus) + .id('mStatus1') + .onClick((event: ClickEvent) => { + this.mStatus = true + }) + Button('this.showClose ' + this.mStatus) + .id('resource_true') + .onClick((event: ClickEvent) => { + this.mStatus = $r('app.media.startIcon') + }) + Button('this.showClose' + this.mStatus) + .id('resource_false') + .onClick((event: ClickEvent) => { + this.mStatus = $r('app.media.startIcon') + }) + Button("bindSheet 设置showClose" + JSON.stringify(this.mStatus)) + .id('bindSheet') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: this.mStatus, + height: this.sheetHeight, + backgroundColor: Color.Green, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + } as SheetOptions) + Button("bindSheet 不设置") + .id('bindSheet1') + .onClick((e:ClickEvent) => { + this.isShow1 = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow1), this.myBuilder1, { + height: this.sheetHeight, + backgroundColor: Color.Green, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + } as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_149: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets new file mode 100644 index 000000000..90ed8a156 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets @@ -0,0 +1,405 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,OnScrollCallback, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,Button,ClickEvent,Flex, + FlexDirection,ItemAlign,FlexAlign, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets + + +@Component +struct UIAttributesBackgroundInterface0340 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-50, -50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 40, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets + + +@Component +struct UIAttributesBackgroundInterface0460 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackActonsheet/010.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackActonsheet010 { + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('Click to Show ActionSheet') + .id('button') + .onClick((e:ClickEvent) => { + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.ets + + +@Component +struct UIAttributesImageeffectInterface0010 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.ets + + +@Component +struct UIAttributesTransparencyInterface0040 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:10') + .onClick((e:ClickEvent) => { + this.opacityValue = 10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId1') + Button('opacity:-10') + .onClick((e:ClickEvent) => { + this.opacityValue = -10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId2') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignitems/UIComponentGridAlignitems0330.ets + + +@Component +struct UIComponentGridAlignitems0330 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentGridAlignItems0330'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.ets + + +@Component +struct UIAttributesColorrampInterface0610 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[50,50], + colors:[] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets + + +@Component +struct UIAttributesImageEffectProjection0050 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .backgroundColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0060.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0060 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 0.5, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0500.ets + + +@Component +struct ActionEventControlCallback0500 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content500' }) + .id("ActionEventControlCallback0500_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0320.ets + + +@Component +struct ActionEventCommoneventDragdefault0320 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_15: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets new file mode 100644 index 000000000..96ad3af83 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets @@ -0,0 +1,446 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid001.ets + +@Component +struct UIComponentGrid { + @State numbers: Array = new Array('0', '1', '2', '3') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('100%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to -1') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(-1, false) + }).id('btn01') + Button('scrollToIndex equal to 0') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(0, false) + }).id('btn02') + Button('scrollToIndex equal to 3') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, false) + }).id('btn03') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0120_874.ets + + +@Component +struct UIComponentListandgridGridInterface_0120_874 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .constraintSize({ maxWidth: 200 }) + .columnsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100.ets + + +@Component +struct UIAttributesImageEffectProjection0100 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .foregroundColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets + + +@Component +struct UIAttributesBackgroundInterface0040 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0030_823.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0030_823 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0170 { + @State Fontsize: number = 50 + @State isAnimation:boolean = false + build() { + Column(){ + Row(){ + Text('Text子组件') + .fontSize(this.Fontsize) + .margin({left:100,top:50} as Margin) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.Fontsize = 30; + this.isAnimation = true + }) + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightResource.ets + +@Component +struct HightResource { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightResource1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height:$r('app.media.startIcon') , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightResource2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition ALPHA").fontSize(11).id('HightResource3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height:$r('app.media.startIcon'), dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close DEFAULT").fontSize(11).id('HightResource4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightResource5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:$r('app.media.startIcon') , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightResource6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightResource7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:$r('app.media.startIcon') , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentResource.ets + +@Component +struct ContentResource { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('ContentResource1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 3").fontSize(11).id('ContentResource2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition modal 3").fontSize(11).id('ContentResource3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: $r('app.media.startIcon'), + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + }) + Button("close modal 2").fontSize(11).id('ContentResource4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentResource5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: $r('app.media.startIcon'), onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentResource6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentResource7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: $r('app.media.startIcon'), onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_150: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets new file mode 100644 index 000000000..211057447 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets @@ -0,0 +1,373 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack,BlendApplyType} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, $r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TouchType +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions, + TextInputController, + TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0100 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0140 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.8 }) + .id('UIAttributesClivkreboundeffectInterface0140_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0080.ets + + +@Component +struct UIAttributesFocuscontrolInterface0080 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .fontColor(Color.White) + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .focusOnTouch(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050.ets + + +@Component +struct UIAttributesImageeffectInvert0050 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 0.1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number.ets + +@Component +struct Number1 { + build() { + Column() { + Text('上下50,左右-30').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: 50, bottom: 50, left: -30, right: -30 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/CommonEventTouchDfx/commonEventTouchDfx0030.ets + + +@Component +struct commonEventTouchDfx003 { + @State text: string = 'none' + @State touchNumber: number = 0 + @State eventType: string = 'none' + build() { + Stack() { + Column() { + Text('目标元素') + } + .id('touch_view') + .width(100) + .height(150) + .position({ x: 0 } as Position) + .backgroundColor(Color.Orange) + .onTouch((event?: TouchEvent) => { + this.text = 'onTouch' + if (event) { + if (event.type === TouchType.Down) { + this.touchNumber++; + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + } + }) + Text(this.text + '-' + this.touchNumber) + .id('touch_text') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets + + +@Component +struct UIAttributesBackgroundInterface127 { + build() { + Column() { + Row() + .backgroundColor($r('app.media.startIcon')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType2.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Text('🙂 🛒 🌞 TEST FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Button('🙂 🛒 🌞 TEST OFFSCREEN') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.OFFSCREEN) + Text('🙂 🛒 🌞 TEST OFFSCREEN') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.OFFSCREEN) + Column() { + Text('Column TEST FAST').fontSize(20).margin(10) + } + .width(300) + .height(200) + .margin(10) + .borderWidth(1) + .advancedBlendMode(blender2, BlendApplyType.FAST) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0260 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItem({ content: "菜单选项a" } as MenuItemOptions) + MenuItem({ content: "菜单选项b" } as MenuItemOptions) + } + Menu() { + MenuItem({ content: "菜单选项a" } as MenuItemOptions) + MenuItem({ content: "菜单选项b" } as MenuItemOptions) + } + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_151: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets new file mode 100644 index 000000000..c770d1e5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets @@ -0,0 +1,369 @@ +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Text, Image, Builder, Button, GestureEvent, TapGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,AttributeModifier,GridAttribute, + GridItemAlignment,GridLayoutOptions,ListOptions, BorderOptions,EdgeEffect,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridItemOptions,GridDirection,GridItemStyle} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460.ets + + +@Component +struct UIAttributesImageeffectInterface0460 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend("#CCCCCC") + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0250 { + @State hei:number = 10; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + }.height(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets + + +@Component +struct UIAttributesBackgroundInterface0080 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0180 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .backgroundImage($r('app.media.startIcon')) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridHouse/UIComponentListandgridGridHouse_0070_630.ets + + +@Component +struct UIComponentListandgridGridHouse_0070_630 { + @State numbers: Array = new Array('1', '2'); + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day) + }, (day: string,index: number) => day) + } + .focusScopeId('Scope1') + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + Button('增加').onClick((event: ClickEvent) => { + this.numbers.push('3') + this.numbers.push('4') + }).id('btn') + } + .width(400).margin(10) + .align(Alignment.Center) + .margin(30) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680.ets + + +@Component +struct UIAttributesColorrampInterface0680 { + @State repaet:boolean=false; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + start:0, + end:90, + repeating:this.repaet + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.repaet=true + this.btnShow = Visibility.Hidden + } else { + this.repaet=false + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0140.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0140 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_033.ets + +@Component +struct Grid_033 { + scroller1: Scroller = new Scroller() + private arr:Array = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17) + private itemWidthArray: Array = new Array() + private itemHeightArray: Array = new Array() + @State alignItems:GridItemAlignment = GridItemAlignment.STRETCH + @State colors: Array = new Array(0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F) + @State options:GridLayoutOptions={ + regularSize:[1,1], + irregularIndexes:[0,7,10,12], + onGetIrregularSizeByIndex: (index: number):[number,number] => { + if (index === 7) { + return [1, index % 6 + 1] + } + return [1, 5] + } + } as GridLayoutOptions + getSize() { + let ret = Math.floor(Math.random() * 120) + return (ret > 50 ? ret : 50) + } + getItemSizeArray() { + for (let i = 0; i < 30; i++) { + this.itemWidthArray.push(String(this.getSize())) + this.itemHeightArray.push(String(this.getSize())) + } + } + getItemSize(index: number) { + return this.itemHeightArray[index%20]; + } + aboutToAppear() { + this.getItemSizeArray() + } + build() { + Row() { + Column() { + Grid( this.scroller1) { + ForEach(this.arr, (item: number, index:number) => { + GridItem() { + Column() { + Text("N" + item).fontSize(12).height(this.itemHeightArray[item % 20]) + } + }.key('') + .onClick((event:ClickEvent)=>{ + console.log("item index: " + index) + }) + .width('100%') + .backgroundColor(this.colors[item % 5]) + }, (item: number, index:number) => String(item)) + } + .height('40%') + .border({width:1} as BorderOptions) + .rowsGap(10) + .columnsGap(20) + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + } + .width('100%') + } + .height('90%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0350 { + @State value: string = "初始值"; + @Builder + overlayBuilder(){ + Button("按键") + .id("dianjiButton") + .fontSize(30) + .size({ width:100,height:40 }) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.value = JSON.stringify(event.fingerList[0]); + } + })) + } + build() { + Column() { + Text('onAction回调:{id:0,hand:0,displayX:206.23,displayY:254.33}').fontSize(40) + Image("2.png").overlay((): void => {this.overlayBuilder()},{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets + + +@Component +struct UIAttributesBackgroundInterface0470 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_152: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets new file mode 100644 index 000000000..931c19d05 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets @@ -0,0 +1,387 @@ +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent,$r,Column, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Image, Alignment, Margin, Builder, Text } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,Image,Position,Placement,$r,PopupStateChangeParam, + Color,Padding,RowOptions,Flex,FlexDirection,CustomBuilder,ResourceColor,CustomPopupOptions,EdgeEffect,ScrollSnapAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + DragPreviewMode +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,DataChangeListener, IDataSource} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding,GradientDirection} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnColorGradient.ets + +@Component +struct ColorGradientExample { + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .width('90%') + .height(50) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 359, + rotation: 45, // 旋转角度 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + .linearGradient({ + direction: GradientDirection.Left, // 渐变方向 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + Column() + .width('90%') + .height(50) + .margin({ top: 10 } as Margin) + .linearGradient({ + direction: GradientDirection.Left, // 渐变方向 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 359, + rotation: 45, // 旋转角度 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + } + .width('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets + + +@Component +struct UIAttributesBackgroundInterface112 { + build() { + Column() { + Row() + .backgroundColor(Color.Brown) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/BasicDataSource.ets + +abstract class BasicDataSource implements IDataSource { + private listeners: Array = new Array() + abstract totalCount(): number + abstract getData(index: number): T + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener') + this.listeners.push(listener) + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener') + this.listeners.splice(pos, 1) + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded() + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index) + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index) + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index) + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to) + }) + } +} +export class MyDataSource extends BasicDataSource { + private dataArray: T[] = [] + public totalCount(): number { + return this.dataArray.length + } + public getData(index: number):string { + console.log("zxy List cacheCountTest3 getData = " + index) + return (this.dataArray[index]) as string + } + public addData(index: number, data: T): void { + this.dataArray.splice(index, 0, data) // 在index位置增加data + this.notifyDataAdd(index) + } + public dataReload(): void { + this.notifyDataReload() + } + public pushData(data: T): void { + this.dataArray.push(data) + this.notifyDataAdd(this.dataArray.length - 1) + } + public deleteIndex(index: number): void { + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public deleteData(data: T): void { + let index = this.dataArray.indexOf(data) + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public moveData(from: number, to: number) { + this.notifyDataMove(from, to) + } + public changeData(index: number, data: T) { + this.dataArray[index] = data + this.notifyDataChange(index) + } + public indexOf(data: T): number { + return this.dataArray.indexOf(data) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0090.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0090 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Button('Button') + .id('SubAceActionEventCommoneventDragImprove0090_btn') + .width('100%') + .height('100%') + .backgroundColor(Color.Pink) + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0090_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0070 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0070_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0070_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton167.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton167 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + Image($r('app.media.startIcon')).width(24).height(24).margin({ left: -5 } as Margin) + Text('Custom Popup').fontSize(10) + }.width(100).height(50).padding(5) + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_167_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0550 { + @Builder + overlayBuilder(){ + Image('2.png').height(300).width(300) + } + build() { + Column() { + Text("父控件为文本") + .fontSize(40) + .overlay((): void => {this.overlayBuilder()},{offset:{x:-30,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0190.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0190 { + @State showOutlineWidth: boolean = true; + build() { + Column() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(this.showOutlineWidth ? 5 : 0) + .outlineColor(Color.Red) + .borderWidth(this.showOutlineWidth ? 0 : 5) + .borderColor(Color.Yellow) + Button('Switch') + .onClick((e:ClickEvent) => { + this.showOutlineWidth = !this.showOutlineWidth; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_153: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets new file mode 100644 index 000000000..e3e6f1072 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets @@ -0,0 +1,408 @@ +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, + TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Divider,Gauge,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Column, + Color, + Builder, + Button +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0060.ets + + +@Component +struct ActionEventCommoneventDragdefault0060 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0060 { + @Builder BackgroundBuilder() { + Button('123') { + }.width(400).height(400) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0190.ets + + +@Component +struct ActionEventCommoneventDragdefault0190 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left: 50} as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0070.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0070 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + @State focusableValue: boolean = false + build() { + Column({ space: 5 }as ColumnOptions) { + Text('你好').focusable(this.focusableValue) + Image(this.iconStr).width(68).height(68).focusable(this.focusableValue) + .onClick((e: ClickEvent) => { + }) + Divider() + .focusable(this.focusableValue) + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0250.ets + + +@Component +struct UIAttributesFocuscontrolInterface0250 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好") + .id('UIAttributesFocuscontrolInterface0250_001') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0740.ets + + +@Component +struct ActionEventCommoneventDragInterface0740 { + @State arr: string[] = [] as string[] + @State arr2: string[] = [] as string[] + private mIndex: number = -1 + private startIndex: number = -1 + @State text: string = 'drag' + @State msgInfo: string = '' + private listType: number = -1 + aboutToAppear(): void { + for (let i = 0; i < 5; i++) { + this.arr.push(i+"") + } + for (let i = 0; i < 5; i++) { + this.arr2.push(i+"") + } + } + @Builder + pixelMapBuilder() { //拖拽过程样式 + Column() { + Text(this.text) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xF5F5F5) + } + } + changeIndex(type: number, itemIndex: number, insertIndex: number) { //交换数组位置 + let temp: string; + if (this.listType == type && type == 1) { + temp = this.arr[itemIndex]; + this.arr[itemIndex] = this.arr[insertIndex]; + this.arr[insertIndex] = temp; + } else if (this.listType == type && type == 2) { + temp = this.arr2[itemIndex]; + this.arr2[itemIndex] = this.arr2[insertIndex]; + this.arr2[insertIndex] = temp; + } else if (this.listType != type && type == 1) { + temp = this.arr2[insertIndex]; + this.arr.splice(insertIndex, 1, this.text); + this.arr2.splice(this.startIndex, 1, temp); + } else if (this.listType != type && type == 2) { + temp = this.arr[insertIndex]; + this.arr2.splice(insertIndex, 1, this.text); + this.arr.splice(this.startIndex, 1, temp); + } + } + build() { + Column() { + Text(this.msgInfo); + List({ space: 10 } as ListOptions) { + ForEach(this.arr, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list1"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onItemMove((from: number, to: number):boolean => { + console.info('pkgg 1 onItemMove 列表元素发生移动时触发,from:' + from + ' to:' + to) + this.mIndex = -1 + if (from == to) { + return false + } else { + return true + } + }) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder => { + console.info('pkgg 1 onItemDragStart 开始拖拽列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + this.text = this.arr[itemIndex] + "" + this.startIndex = itemIndex + this.listType = 1 + return ()=>{this.pixelMapBuilder()} + }) + .onItemDragEnter((event: ItemDragInfo):void => { + console.info('pkgg 1 onItemDragEnter 拖拽进入列表元素范围内时触发,x:' + event.x + ' y:' + event.y) + }) + .onItemDragMove((event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + if (this.mIndex != itemIndex) { + this.mIndex = itemIndex + console.info('pkgg 1 onItemDragMove 拖拽在列表元素范围内移动时触发,x:' + event.x + ' y:' + event.y + + ' itemIndex:' + + itemIndex + ' insertIndex:' + insertIndex) + } + }) + .onItemDragLeave((event: ItemDragInfo, itemIndex: number):void => { + console.info('pkgg 1 onItemDragLeave 拖拽离开列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + if (!isSuccess || insertIndex >= this.arr.length) { + return + } + if (insertIndex == -1) { + return + } + console.info('pkgg 1 onItemDrop 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发 ,x:' + + event.x + ' y:' + + event.y + ' itemIndex:' + itemIndex + ' insertIndex:' + insertIndex + ' isSuccess:' + isSuccess) + this.changeIndex(1, itemIndex, insertIndex) + }) + Column().width('100%').height('2%').backgroundColor(Color.Blue) + List({ space: 10 } as ListOptions) { + ForEach(this.arr2, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list2"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let numberObj = JSON.parseJsonElement(extraParams!,(key: string, value: jsonx.JsonElement): jsonx.JsonElement => { + if(key === "insertIndex") return value; + return value; + }) as Object; + console.info('call onDragStart' + numberObj) + }) + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_154: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets new file mode 100644 index 000000000..ff4439233 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets @@ -0,0 +1,458 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,TextInputController,Divider, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,DragEvent, + Callback,DragResult +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670.ets + + +@Component +struct UIAttributesColorrampInterface0670 { + @State colors:Array<[ResourceColor, number]> = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:this.colors, + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.colors = [[Color.Blue, 0.0], [Color.Red, 0.3], [Color.Brown, 1]]; + this.btnShow = Visibility.Hidden + } else { + this.colors = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]]; + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_018.ets + +@Component +struct Grid08 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置maxCount属性值为undefined').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .maxCount(undefined) + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0250.ets + + +@Component +struct UIActionEventCommonEventDragInterface0250{ + @State text:string ="拖拽状态:" + @Builder dragPreviewBuilder() { + Column() { + Text("dragPreview") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Row() { + Column() { + Button('拖拽') + .id("dragButton") + .width("30%") + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text += "Drag Success" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text += "Drag failed"; + }else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text += "Drag CANCELED"; + } + } as Callback) + .dragPreview(this.dragPreviewBuilder) + Text(this.text) + } + .width("100%") + } + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090.ets + + +@Component +struct UIAttributesRenderFit0090 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM_RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820.ets + + +@Component +struct UIAttributesColorrampInterface0820 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + rotation:0 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0060.ets + + +@Component +struct ActionEventCommoneventDragText0060 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(1, 4) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120.ets + + +@Component +struct UIAttributesModaltransitionInteration0120 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor:'#88000000', + enableOutsideInteractive: false, + preferType: SheetType.POPUP, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1.ets + + +@Component +struct UIAttributesModaltransitionVision0150_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet: 居中") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:50, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0030.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0030 { + @State text: string = '' + controller: TextInputController = new TextInputController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + Divider() + .vertical(true) + .height(22) + .color('#ff3982d0') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .onClick((e: ClickEvent) => { + }) + Divider() + .vertical(true) + .height(22) + .color('#ff5aa02c') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ff0b4e96') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ff75064d') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_155: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets new file mode 100644 index 000000000..625148676 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets @@ -0,0 +1,395 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller, + Alignment,List,ListItem,ForEach,BarState,Padding,FlexDirection,ItemAlign, + Stack,ClickEvent,Button,Flex,cursorControl,Text,TextAlign, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040.ets + + +@Component +struct UIAttributesRenderFit0040 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720.ets + + +@Component +struct UIAttributesColorrampInterface0720 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [["rgb(0,0,255)", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0010.ets + + +@Component +struct ActionEventCommoneventDragText0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0260.ets + + +@Component +struct ActionEventCommoneventDragInput0260 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_037.ets + +@Component +struct Grid_037 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12','13','14','15') + scroller1: Scroller = new Scroller() + @State columnsTemplate: string = '1fr 1fr 2fr' + @State rowsTemplate: string = '1fr 1fr 2fr' + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') .height(300) + .backgroundColor(0xFAEEE0) + .border({width:1} as BorderOptions) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("repeat(auto-fit, 10%)") + .id('repeat(auto-fit, 10%)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, 10%)' + }) + } + ListItem(){ + Button("repeat(auto-fit, 90px)") + .id('repeat(auto-fit, 90px)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, 90px)' + }) + } + ListItem(){ + Button("repeat(auto-fit, -1)") + .id('repeat(auto-fit, -1)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, -1)' + }) + } + ListItem(){ + Button("1fr 0 1fr") + .id('101fr_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='1fr 0 1fr' + }) + } + ListItem(){ + Button("1fr a 1fr") + .id('1a1fr_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='1fr a 1fr' + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0280.ets + + +@Component +struct ActionEventCommonEventMouseStyle0280 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_GRABBING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0280_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0280" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0280_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_156: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets new file mode 100644 index 000000000..711d5b2b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets @@ -0,0 +1,374 @@ +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracUnitymode0050.ets + + +@Component +struct UIActtonEventComdneventDracUnitymode0050 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracUnitymode0050_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracUnitymode0050_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0620.ets + + +@Component +struct ActionEventCommoneventDragdefault0620 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(200) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(200) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0210 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 60; + }).id('padding') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(100) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0250533.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0250533 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0250533_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 100, + animation: { duration: 1000, curve: Curve.Ease, canOverScroll: true } + }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0250533_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030.ets + + +@Component +struct UIAttributesGraphictransformationInterface0030 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate:{angle:90}') + Image('cat.jpg') + .width(100) + .rotate({angle:90} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200.ets + + +@Component +struct UIAttributesColorrampInterface0200 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Right, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0170 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .linearGradient({ + angle: 90, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + }) + .backgroundImage($r('app.media.startIcon')) + } +} + + +export const FLAG_OF_FILE_157: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets new file mode 100644 index 000000000..61d0907b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets @@ -0,0 +1,394 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Rect, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0050.ets + + +@Component +struct ActionGestureRegister0050 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0400.ets + + +@Component +struct ActionEventCommoneventDragdefault0400 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes420.ets + + +@Component +struct UIAttributesTouchableInteraction420 { + @State value: string = ''; + build() { + Column() { + Rect() + .width(180).height(80) + .id('UIAttributesTouchableInteraction420') + .hitTestBehavior(HitTestMode.Transparent) + .enabled(false) + .backgroundColor(Color.Black) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'Rect Clicked'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0120.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0120 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0120_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0120_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .gesture( + LongPressGesture({ repeat: true })// 由于repeat设置为true,长按动作存在时会连续触发,触发间隔为duration(默认值500ms) + .onAction((event: GestureEvent) => { + })// 长按动作一结束触发 + .onActionEnd((event: GestureEvent) => { + this.isClick = true; + }) + ) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0120_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0290.ets + + +@Component +struct UIAttributesBcakgroundSeriable0290 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.NoRepeat) + .width('100%') + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170.ets + + +@Component +struct UIAttributesColorrampInterface0170 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.None + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070.ets + + +@Component +struct UIAttributesImageeffectInterface0070 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0150.ets + + +@Component +struct ActionEventCommoneventDragText0150 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530.ets + + +@Component +struct UIAttributesImageeffectInterface0530 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(1) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_158: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets new file mode 100644 index 000000000..8b870a573 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets @@ -0,0 +1,406 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610.ets + + +@Component +struct UIAttributesImageeffectInterface0610 { + build() { + Column() { + Row() { + Text('test') + .blur(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/textinput1_rh/entry/src/main/ets/testability/pages/UIAttributeBackgroundSeriableReplacement/UIAttributeBackgroundSeriableReplacement0040.ets + + +@Component +struct UIAttributeBackgroundSeriableReplacement0040 { + @State msg: string = + "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + @State dataArray: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State isShow: boolean = false + build() { + Column({ space: 10 } as ColumnOptions) { + if (this.isShow) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.dataArray, (item: number,index:number) => { + ListItem() { + Text('Text:' + item) + .width('90%') + .height(42) + .backgroundColor('#FFFFFF') + .borderRadius(24) + .fontSize(16) + .fontWeight(500) + .textAlign(TextAlign.Center).borderWidth(1) + } + }, (item: number,index:number) => String(item)) + } + .height('90%') + .width('100%') + .margin({ top: 12, left: '10%' } as Margin) + } + Row({ space: 10 } as RowOptions) { + Button('deleteCount=-5').id('SeriableReplacement0040_1').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -5); + this.isShow = true; + }) + Button('deleteCount=-10').id('SeriableReplacement0040_2').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -10); + this.isShow = true; + }) + Button('deleteCount=-20').id('SeriableReplacement0040_3').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -20); + this.isShow = true; + }) + }.borderWidth(3).borderColor(Color.Blue) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets + + +@Component +struct UIAttributesBackgroundInterface0160 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface20.ets + + +@Component +struct AceActionEventCommoneventClickInterface20 { + @State text: string = 'screen.y = '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface20') + .onClick((event: ClickEvent) => { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560.ets + + +@Component +struct UIAttributesColorrampInterface0560 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_014.ets + +@Component +struct Grid04 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为500').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(500) + .rowsGap(0) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730.ets + + +@Component +struct UIAttributesModaltransitionVision0730 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[300] as [SheetSize|String|Double|Resource], + title: { + title: "超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试" + }, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets + + +@Component +struct UIAttributesBackgroundInterface106 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.XY) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0190 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0190_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0190_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.position.x; + this.y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${x}, positionY: ${this.y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1.ets + + +@Component +struct UIAttributesModaltransitionVision0080_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_159: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets new file mode 100644 index 000000000..e4e30a18d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets @@ -0,0 +1,420 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GestureGroup, + GestureMode, + PanGesture, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding,ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentString.ets + +@Component +struct ContentString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('ContentString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 3").fontSize(11).id('ContentString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition modal 3").fontSize(11).id('ContentString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: 'rgba(255, 100, 255, 0.5)', + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 2").fontSize(11).id('ContentString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 'rgb(255, 100, 255)', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: '#ff00ff', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0030.ets + + +@Component +struct ActionEventCommoneventDragdefault0030 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0050.ets + + +@Component +struct UIComponentPreventdefault0050 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0050") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.ets + + +@Component +struct UIAttributesImageeffectInterface0670 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(100.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectUndefined.ets + +@Component +struct TextLightUpEffectUndefined { + build() { + Column() { + Text(' lightUpEffect undefined ') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(undefined) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0050 { + @Builder + OverlayNode() { + Column() { + Text('overlay 1') + .width(300) + .height(300) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width(300).height(300).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(150) + .height(150) + .objectFit(ImageFit.Fill) + }.width(150).height(150).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0250.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0250 { + @State backColor: Color = Color.Blue; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State count: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + build() { + Column() { + Column() { + Button('这是一个Button') + .id("btn") + .backgroundColor(this.backColor) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction(() => { + this.backColor = Color.Red + }) + .onActionEnd(() => { + console.info('LongPress end'); + }), + PanGesture() + .onActionStart(() => { + this.backColor = Color.Pink + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetX = (this.positionX + event.offsetX); + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + ) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_16: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets new file mode 100644 index 000000000..93a5449f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets @@ -0,0 +1,396 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Row, Column, Color, $r } from '@ohos.arkui.component'; + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions,Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0010.ets + + +@Component +struct ActionEventCommoneventDragdefault0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets + + +@Component +struct UIAttributesBackgroundInterface123 { + build() { + Column() { + Row() + .backgroundColor($r('app.media.startIcon')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0130.ets + + +@Component +struct ActionEventCommoneventDragInput0130 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0600.ets + + +interface Params060 { + text: string +} +@Component +struct SubAceActionWindowWindowCustom0600 { + @State statel: string = 'text1'; + @Builder + builder1(params: Params060) { + Text(params.text).fontSize(50) + } + build() { + Column() { + this.builder1({ text: this.statel }) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_110.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_110 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(0) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0050 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(undefined) + .id('UIAttributesClivkreboundeffectInterface0050_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets + + +@Component +struct UIAttributesBackgroundInterface0550 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundRegular.ets + +@Component +struct BlurStyle_BackgroundRegular { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0100.ets + + +@Component +struct UIAttributesBcakgroundSeriable0100 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 220 + @State right: number = 20 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:220,bottom:0,right:20}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620.ets + + +@Component +struct UIAttributesColorrampInterface0620 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center:[this.centerX,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 0 + this.btnShow = Visibility.None + } else { + this.centerX = 50 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_160: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets new file mode 100644 index 000000000..2933d66cb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets @@ -0,0 +1,472 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,ForEach,GridRow,GridCol, + Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + Radio, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ItemAlign, + FlexDirection, +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets + + +@Component +struct UIAttributesSelectedStyle0070 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + .onChange((isChecked: boolean) :void=> { + console.log('Radio status is ' + isChecked) + } ) + } + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur17.ets + +@Component +struct linearGradientBlur17 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(60, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0030 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Green :Color.White) + .margin({left:50,top:50} as Margin).padding(10).backgroundColor('red') + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010.ets + + +@Component +struct UIAttributesColorRampAny0010 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .linearGradient({ + direction:GradientDirection.Left, + repeating:true, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0030.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0030 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(2) + Button("你好呀").tabIndex(0) + Button("你好哈").tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070.ets + + +@Component +struct UIAttributesImageEffectProjection0070 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .linearGradient({colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480.ets + + +@Component +struct UIAttributesColorrampInterface0480 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0260.ets + + +@Component +struct UIAttributesBcakgroundSeriable0260 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets + + +@Component +struct UIAttributesBackgroundInterface0210 { + build() { + Column() { + Row() { + Text("Thick") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thick) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0150 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridCol') + } + .height(20) + .width(200) + .borderWidth(1) + } + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridCol') + } + .height(20) + .width(200) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0450_917.ets + + +@Component +struct UIComponentListandgridGridInterface_0450_917 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth('20px') + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur16.ets + +@Component +struct linearGradientBlur16 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0, 0], [2, 2]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton137.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton137 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((): void => { + this.button1BC = Color.Green + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_161: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets new file mode 100644 index 000000000..388b32383 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets @@ -0,0 +1,378 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0010.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0010 { + build() { + Column({ space: 5 }as ColumnOptions) { + Text("你好").width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Text("你好").width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest02.ets + +@Component +struct ZIndexTest02 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .zIndex(1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(3) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(3) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(2) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(3) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(-3) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest7.ets + +@Component +struct ZIndexDynamicModificationTest7 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 3 //text的value: 'ABC设置zIndex: 1 2 3' + this.zIndexValueIndex = 2 //ABC设置zIndex: 1 2 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization146.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization146 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + .defaultFocus(true) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + .defaultFocus(true) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + .defaultFocus(true) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('Back') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + + +export const FLAG_OF_FILE_162: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets new file mode 100644 index 000000000..3ff615784 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets @@ -0,0 +1,378 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Stack,List,ListItem,ForEach,Flex,ClickEvent,FlexDirection, + ItemAlign,TextAlign,Padding,ListScroller,Alignment,Button,Text,cursorControl,BarState, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,Margin +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220.ets + + +@Component +struct UIAttributesGraphictransformationInterface0220 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('不设置scale') + Image('cat.jpg') + .width(100) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110.ets + + +@Component +struct UIComponentCommonattrGrayscale0110 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [-10, -10] + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets + + +@Component +struct UiAttributesFloatingLayerInterface0100 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Start}) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0150.ets + + +@Component +struct ActionEventCommonEventMouseStyle0150 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0150_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0150" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0150_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0130.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0130 { + build() { + Column({ space: 5 }as ColumnOptions) { + Text("你好").width(68).height(68) + .tabIndex(1) + Text("你好").width(68).height(68) + .tabIndex(3) + Text("你好").width(68).height(68) + .tabIndex(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets + + +@Component +struct UIAttributesBackgroundInterface0500 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.0], [0xD3E0DC, 0.3], [Color.Red, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0130_440.ets + + +@Component +struct UIComponentListandgridGridInterface_0130_440 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .constraintSize({ maxWidth: 200 }) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets + + +@Component +struct UIAttributesBackgroundInterface0580 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 480, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0420_773.ets + + +@Component +struct UIComponentListandgridGridInterface_0420_773 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(0) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_163: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets new file mode 100644 index 000000000..f280e69b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets @@ -0,0 +1,408 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,List,$$, + ListItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder, ProgressMask,$r,Curve,PlayMode} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520.ets + + +@Component +struct UIAttributesModaltransitionVision0520 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + title: { + title: 'Main Title', + subtitle: 'Sub Title' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic10.ets + +@Component +struct buttonDynamicExample10 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button10') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets + + +@Component +struct UIAttributesBackgroundInterface1390 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0.5, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0070_077.ets + + +@Component +struct UIComponentListandgridGridEvents_0070_077 { + @State numbers: Array = new Array('0', '1', '2', '3'); + @State numbers2: Array = new Array('0', '1', '2'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + @State Text: string = 'Log'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridGridEvents_0070_077') + .columnsTemplate('1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(50) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Off) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + this.Text= 'Index:'+this.numbers[0]; + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + Text(this.Text) + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410.ets + + +@Component +struct UIAttributesColorrampInterface0410 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Button') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: 0, + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ProgressMaskIndex.ets + +@Component +struct ProgressMaskExample { + @State progressflag1: boolean = true; + @State color: Color|string = '#01006CDE'; + @State value: number = 10.0; + @State enableBreathingAnimation: boolean = false; + @State progress: ProgressMask = new ProgressMask(10.0, 100.0, Color.Gray); + build() { + Column({ space: 15 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('500px').height('280px') + .mask(this.progress) + .animation({ + duration: 2000, // 动画时长 + curve: Curve.Linear, // 动画曲线 + delay: 0, // 动画延迟 + iterations: 1, // 播放次数 + playMode: PlayMode.Normal // 动画模式 + }) // 对Button组件的宽高属性进行动画配置 + Button('updateProgress +++') + .onClick((event?: ClickEvent) => { + this.value += 10; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + Button('updateProgress ---') + .id('button_auto_updateProgress') + .onClick((event?: ClickEvent) => { + this.value -= 10; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + Button('updateColor') + .id('button_auto_updateColor') + .onClick((event?: ClickEvent) => { + if (this.progressflag1) { + this.progress.updateColor(0x9fff0000); + } else { + this.progress.updateColor(0x9f0000ff); + } + this.progressflag1 = !this.progressflag1 + }).width(200).height(50).margin(20) + Button('enableBreathingAnimation:' + this.enableBreathingAnimation) + .id('button_auto_enableBreathingAnimation') + .onClick((event?: ClickEvent) => { + this.enableBreathingAnimation = !this.enableBreathingAnimation + this.progress.enableBreathingAnimation(this.enableBreathingAnimation); + }).width(200).height(50).margin(20) + Button('click reset!') + .onClick((event?: ClickEvent) => { + this.value = 0; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + } + .width('100%') + .margin({ top: 15 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100.ets + + +@Component +struct UIComponentCommonattrGrayscale0100 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [48, 58] + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic.ets + +@Component +struct buttonDynamicExample { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Capsule' + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0010.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0010 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(0) + Button("你好呀").tabIndex(0) + Button("你好哈").tabIndex(0) + }.tabIndex(0) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690.ets + + +@Component +struct UIAttributesModaltransitionVision0690 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + List() { + ForEach([1,2,3,4,5,6,7,8,9,10], (item: Int,index:Double) => { + ListItem() { + Text(`List Item ${item}`).height(40) + } + }) + } + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_164: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets new file mode 100644 index 000000000..4c3fc6385 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets @@ -0,0 +1,402 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,Callback,DragResult,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color,ScaleOptions,TranslateOptions,RotateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage,Link, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType,TextInputController, + ScrollDirection, Margin,TextInput,Flex,TextInputOptions,MenuItem, + BarState,CustomDialog,CustomDialogController,Menu,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Text,VerticalAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Color, + Entry, + Component, + ObscuredReasons, + ClickEvent, + Row, + Column, + Text, + Image, + Image, + FlexAlign, + Button +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets + + +@Component +struct UIComponentMediaImageMask0260 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | undefined = [ObscuredReasons.PLACEHOLDER]; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick((e: ClickEvent) => { + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = undefined; + } + }).id('mask0260_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_090_321.ets + + +@Component +struct UIComponentListandgridGridInterface_090_321 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + .padding(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110.ets + + +@Component +struct UIAttributesColorrampInterface0110 { + @State directionY:GradientDirection= GradientDirection.Bottom + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:this.directionY, + } as LinearGradientOptions) + .animation({ + duration: 1000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.directionY=GradientDirection.Right + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0010.ets + +@Component +struct ActionEventCommonEventDragListItem0010 { + @State message: string = '拖动我'; + build() { + Column() { + Button(this.message) + .id('ActionEventCommonEventDragListItem0010') + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + }) + .margin({ top: 100 } as Margin) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + Text('1').fontSize(1).id("ActionEventCommonEventDragListItem0010Text").margin({ top: 200 } as Margin) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0070_335.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0070_335 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrResult/UIComponentCommonattrResult0160.ets + + +@Component +struct UIComponentCommonattrResult0160 { + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + Button('调用requestFocus传入page页textInput') + .id('UIComponentCommonattrResult0160_001') + .onClick((e: ClickEvent) => { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0080 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=-inf') + .id('UIAttributesGraphicTransformationSkew0080_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(Infinity, 0); + }) + Button('y=-inf') + .id('UIAttributesGraphicTransformationSkew0080_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, Infinity); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0260.ets + + +@Component +struct UIActionEventCommonEventDragInterface0260 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image("./cat.jpg") + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + this.dragSuccess = true + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_165: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets new file mode 100644 index 000000000..773b94ba6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets @@ -0,0 +1,389 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,List, + ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection,BarState,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0060.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0060 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 内侧-5px') + .focusBox({ + margin: LengthMetrics.px(-5), + }) + Button('button margin 内侧-5vp') + .focusBox({ + margin: LengthMetrics.vp(-5), + }) + Button('button margin 内侧-5fp') + .focusBox({ + margin: LengthMetrics.fp(-5), + }) + Button('button margin 内侧5') + .focusBox({ + margin: LengthMetrics.vp(5), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0130 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0130_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310.ets + + +@Component +struct UIAttributesImageeffectInterface0310 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0220 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List() { + ListItem() { + Text('alist') + } + } + .borderWidth(1) + List() { + ListItem() { + Text('alist') + } + } + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0340.ets + + +@Component +struct ActionEventCommonEventMouseStyle0340 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RESIZE_UP_DOWN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0340_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0340" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0340_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_Light.ets + +@Component +struct ThemeColorMode_Light { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100.ets + + +@Component +struct UIAttributesModaltransitionInteration0100 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] as number[]; + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: 300, + preferType: SheetType.POPUP + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_166: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets new file mode 100644 index 000000000..63486e5d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets @@ -0,0 +1,412 @@ +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + MenuItemOptions, + $r, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,TextAlign, + Scroll, ForEach, Color, ColumnOptions, EdgeEffect, BarState, Margin,Grid, GridItem, Blank, GridDirection, ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Stack,List,ListItem,ForEach,ClickEvent,TextAlign,Text, + BarState,Padding,FlexDirection,ItemAlign,ListScroller,Alignment,Button,Flex,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0140.ets + + +@Component +struct ActionEventCommonEventMouseStyle0140 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0140_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0140" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0140_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/rowsGap.ets + +@Component +struct rowsGapExample { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State rowsGapNumber: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(this.rowsGapNumber) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('next page') + .onClick((event:ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + Button('rowsGap + 10') + .id("rowsGapAdd") + .onClick((event:ClickEvent) => { // 点击后滑到下一页 + this.rowsGapNumber = this.rowsGapNumber + 10; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0070.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0070 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Image($r('app.media.startIcon')) + .id('SubAceActionEventCommoneventDragImprove0070_btn') + .width('16.67%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0070_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020.ets + + +@Component +struct UIAttributesGraphictransformationInterface0020 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate({angle:-90})') + Image('cat.jpg') + .width(100) + .rotate({angle:-90} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton157.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton157 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_157_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_157_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets + + +@Component +struct UIAttributesBackgroundInterface1410 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + + +export const FLAG_OF_FILE_167: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets new file mode 100644 index 000000000..691e3337d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets @@ -0,0 +1,413 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,ClickEvent,Span +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + Blank,Divider,BarState,ScrollDirection, + DatePicker,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, ImageSize } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets + + +@Component +struct UIAttributesBackgroundInterface095 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Contain) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030.ets + + +@Component +struct UIAttributesModaltransitionInteration0030 { + @State isShow: boolean = false + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:300 + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0120 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Divider() + .strokeWidth(8) + Blank() + Divider() + .strokeWidth(8) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0030.ets + + +@Component +struct ActionEventControlCallback0030 { + @State context: string = "" + build() { + Column(){ + Text() { + Span('I am Upper-span') + .fontSize(32) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0430.ets + + +@Component +struct ActionEventCommoneventDragdefault0430 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字abcd' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0310.ets + + +@Component +struct ActionEventCommonEventMouseStyle0310 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HELP; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0310_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0310" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0310_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070.ets + + +@Component +struct UIComponentCommonattrGrayscale0070 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [45, 85] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0350.ets + + +@Component +struct ActionEventCommoneventDragdefault0350 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({top:150} as Margin) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_168: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets new file mode 100644 index 000000000..b6e35d321 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets @@ -0,0 +1,402 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Flex,FlexOptions,EdgeEffect,FlexWrap,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridDirection, GridLayoutOptions,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput,TextInputOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, CustomBuilder, PanGestureOptions,PanDirection, + CustomDialogController,CustomDialogControllerOptions,DialogAlignment,ColumnOptions, + Button,ClickEvent,PanGesture,GestureEvent,TranslateOptions,PanGestureHandlerOptions, + DragItemInfo, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0210 { + @State opacity1:number = 1.0 + @State isClick:boolean = false + onButtonClick(){ + this.opacity1 = 0.5 + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Black : Color.Red) + .margin({left:50,top:50} as Margin).padding(10) + .blendMode(this.isClick == true ? BlendMode.SRC_IN : BlendMode.SRC) + }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + }) + .id('buttonId1') + Button("padding设置BlendMode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId2') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInteraction/ActionEventCommoneventDragInteraction0060.ets + + +@Component +struct ActionEventCommoneventDragInteraction0060 { + @State info: string[] = [] as string[]; + @State numbers: number[] = [0, 1, 2, 3, 4 , 5, 6, 7, 8] as number[]; + private dragAction: dragController.DragAction | null = null; + customBuilders: Array = new Array(); + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + @State radioIndex:number = 2; + build() { + Column({ space: 5} as ColumnOptions) { + Button('0060') + .height("50") + .id('button') + .onClick((e: ClickEvent) => { + }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660.ets + + +@Component +struct UIAttributesModaltransitionVision0660 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0010.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0010 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeWidth -20px') + .focusBox({ + strokeWidth: LengthMetrics.px(-20) + }) + Button('button strokeWidth -20vp') + .focusBox({ + strokeWidth: LengthMetrics.vp(-20), + }) + Button('button strokeWidth -20lpx') + .focusBox({ + strokeWidth: LengthMetrics.lpx(-20), + }) + Button('button strokeWidth -20fp') + .focusBox({ + strokeWidth: LengthMetrics.fp(-20), + }) + Button('button strokeWidth 30%') + .focusBox({ + strokeWidth: LengthMetrics.percent(30), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0160.ets + + +@Component +struct UIAttributesFocuscontrolInterface0160 { + controller: TextInputController = new TextInputController() + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .tabIndex(1) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0030 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0200.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0200 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_039.ets + +@Component +struct Grid_039 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = Infinity + @State minCount: number = 1 + @State mWidth: number = 90 + @State mHeight: number = 50 + @State mTemplate: string = '1fr 1fr 1fr 1fr 1fr' + @State layoutDirection: GridDirection = GridDirection.Column + scroller1: Scroller = new Scroller() + @State layoutOptions: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('maxCount=0') + .onClick((event:ClickEvent) => { + this.maxCount = 0 + }) + Text() + .width(10) + .height(10) + .key('maxCount=2') + .onClick((event:ClickEvent) => { + this.maxCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0290_608') + .onClick((event:ClickEvent) => { + this.mHeight = 100 + this.minCount = 0 + }) + Text() + .width(10) + .height(10) + .key('0300_178') + .onClick((event:ClickEvent) => { + this.mHeight = 100 + this.minCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0400_276') + .onClick((event:ClickEvent) => { + this.mWidth = 150 + this.minCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0410_660') + .onClick((event:ClickEvent) => { + this.mWidth = 150 + this.minCount = -2 + }) + Text() + .width(10) + .height(10) + .key('0320_750') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(this.mWidth) + .height(this.mHeight) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .width(300) + .height(170) + .columnsGap(10) + .rowsGap(10) + .minCount(this.minCount) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCount) + .layoutDirection(this.layoutDirection) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + + +export const FLAG_OF_FILE_169: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets new file mode 100644 index 000000000..8748db5c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets @@ -0,0 +1,401 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,VerticalAlign,FocusPriority,GridItemOptions,RowOptions,Row,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,GridRow, + GridCol,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + +import { Entry, Component, Column,Stack,Text,ClickEvent,Color,Alignment, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0150 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0 }) + .id('UIAttributesClivkreboundeffectInterface0150_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0010.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0010 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0270.ets + + +@Component +struct ActionEventControlcallback0270 { + @State context: string = "" + build() { + Column(){ + Stack({ alignContent: Alignment.Bottom }){ + Text('First child, show in bottom').width('90%').height('100%').backgroundColor(0xd2cab3).align(Alignment.Top) + Text('Second child, show in top').width('70%').height('60%').backgroundColor(0xc1cbac).align(Alignment.Top) + }.height('80%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0080.ets + + +@Builder +function builder1(text: string) { + Index0080({ link1: text || '' }) +} +@Component +struct SubAceActionWindowWindowCustom0080 { + build() { + Column() { + builder1('text') + } + } +} +@Component +struct Index0080 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.ets + + +@Component +struct UIAttributesColorrampInterface0050 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:true + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0230.ets + + +@Component +struct CommonEventDragVideo0230 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent): void => { + event.useCustomDropAnimation = true + if (event?.useCustomDropAnimation) { + this.status = "useCustomDropAnimation = true" + } else { + this.status = "useCustomDropAnimation = false" + } + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0170 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0090_717.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0090_717 { + @State inputValue: string = '' + build() { + Scroll() { + Row({ space: 20 } as RowOptions) { + Grid() { // 标记为Column1 + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green).focusScopePriority('ColumnScope1', FocusPriority.PRIOR) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + } + .focusScopeId('ColumnScope1') + }.alignItems(VerticalAlign.Top) + }.margin(20) + } +} + + +export const FLAG_OF_FILE_17: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets new file mode 100644 index 000000000..a3855339b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets @@ -0,0 +1,413 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0570.ets + + +@Component +struct ActionEventCommoneventDragdefault0570 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '123456789' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0180 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Pink : Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(this.isClick == true ? Color.Pink : Color.Green) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0250_798.ets + + +@Component +struct UIComponentListandgridGridInterface_0250_798 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(2) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480.ets + + +@Component +struct UIAttributesImageeffectInterface0480 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend('rgb(255,200,255)') + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0020 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .stateEffect(false) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 }) + .id('UIAttributesClivkreboundeffectInterface0020_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100.ets + + +@Component +struct UIAttributesColorRampBlurGradient0100 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.Top} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120.ets + + +@Component +struct UIAttributesModaltransitionSafearea0120 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580.ets + + +@Component +struct UIAttributesImageeffectInterface0580 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0020.ets + + +@Component +struct ActionEventCommoneventDragdefault0020 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_170: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets new file mode 100644 index 000000000..fed254ce6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets @@ -0,0 +1,392 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { IDataSource, DataChangeListener } from '@ohos.arkui.component' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,Button,Row,ButtonType,DragEvent,Margin,Color,Padding,DragEvent,$r,ColumnOptions, + Image,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragPreviewMode,Callback +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Color,$r,Margin,Row +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0060.ets + + +@Component +struct UIAttributesBcakgroundSeriable0060 { + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:0,right:10}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:0,right:10} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:10,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:10,right:0} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:0,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:0,right:0} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0280.ets + + +@Component +struct ActionEventCommoneventDragImage0280 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image($r('app.media.startIcon')) + .border({ color: Color.Black, width: 1 }) + .id('img1') + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image(this.targetImage) + .id('img2') + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event1: DragEvent) => { + event1.useCustomDropAnimation = false; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0710.ets + + +@Component +struct UIActionEventCommonEventDragInterface0710 { + build() { + Row() { + Column() { + Image("./cat.jpg") + .id("dragButton") + .margin({ top: 10 } as Margin) + .width("80%") + .draggable(true) + .onDragStart((event: DragEvent):() => void =>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0070.ets + + +@Component +struct ActionEventCommoneventDragInterface0070 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .margin({ top: 20 } as Margin) + .width(100) + .height(100) + .backgroundColor(Color.Blue) + .id('0') + Text(`回调触发:${Array.from(new Set(this.text))}`) + Column().width(200).height(200) + .id('1') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.text.push('Drop'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.text.push('DragMove'); + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.text.push('DragLeave'); + }) + .border({ + width: 2 + }) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/common/BasicDataSource.ets + +abstract class BasicDataSource implements IDataSource { + private listeners: Array = new Array() + abstract totalCount(): number + abstract getData(index: number): T + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener') + this.listeners.push(listener) + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener') + this.listeners.splice(pos, 1) + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded() + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index) + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index) + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index) + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to) + }) + } +} +export class MyDataSource extends BasicDataSource { + private dataArray: T[] = [] + public totalCount(): number { + return this.dataArray.length + } + public getData(index: number):T { + return this.dataArray[index] + } + public addData(index: number, data: T): void { + this.dataArray.splice(index, 0, data) // 在index位置增加data + this.notifyDataAdd(index) + } + public dataReload(): void { + this.notifyDataReload() + } + public pushData(data: T): void { + this.dataArray.push(data) + this.notifyDataAdd(this.dataArray.length - 1) + } + public deleteIndex(index: number): void { + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public deleteData(data: T): void { + let index = this.dataArray.indexOf(data) + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public moveData(from: number, to: number) { + this.notifyDataMove(from, to) + } + public changeData(index: number, data: T) { + this.dataArray[index] = data + this.notifyDataChange(index) + } + public indexOf(data: T): number { + return this.dataArray.indexOf(data) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0120.ets + + +@Component +struct ActionEventCommoneventDragImage0120 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_FAILED) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_FAILED) { + this.result = '成功获取拖拽失败状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_171: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets new file mode 100644 index 000000000..69e249333 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets @@ -0,0 +1,388 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import {Entry,Component,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign,Image,Row,List,ForEach,ListItem, + Margin,BorderOptions,DragEvent,Visibility,$r,Color +} from '@ohos.arkui.component' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0200.ets + + +@Component +struct ActionEventCommoneventDragImage0200 { + @State uri: string|undefined = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri!)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let txt = arr[0] as unifiedDataChannel.Text; + this.uri = txt.details?.['content']; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let txt: unifiedDataChannel.Text = new unifiedDataChannel.Text(); + txt.details = { + 'content': '这是一个文本' + } as Record + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(txt); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SampleMultipleSelectionDrag/SampleMultipleSelectionDrag0010.ets + + +@Component +struct SampleMultipleSelectionDrag0010 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('0') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .onDragStart(undefined) + .draggable(true) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('1') + .height('90%') + .width('100%') + .backgroundColor(Color.Red) + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('2') + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .backgroundColor(Color.Green) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0120 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.MIDDLE }) + .id('UIAttributesClivkreboundeffectInterface0120_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0050.ets + + +@Component +struct ActionEventCommoneventDragImage0050 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image("icon.png") + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column1.ets + +@Component +struct Column1Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(5) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_013.ets + +@Component +struct Grid03 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为5').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_172: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets new file mode 100644 index 000000000..bcdcf9a8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets @@ -0,0 +1,403 @@ +import { Entry, Component, Column,SwiperController,Text,Swiper,TextAlign, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + LongPressGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Rect, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextInputController, + Button, + TextInput, + ClickEvent, + MenuPolicy +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage,Link, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, Margin,TextInput,Flex,TextInputOptions,MenuItem, + BarState,CustomDialog,CustomDialogController,Menu,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0220.ets + + +@Component +struct CustomDialogUser { + @State textValue: string = '' + @State inputValue: string = 'click me' + aboutToDisappear() { + } + onCancel() { + console.info('Callback when the first button is clicked') + } + onAccept() { + console.info('Callback when the second button is clicked') + } + exitApp() { + console.info('Click the callback in the blank area') + } + build() { + Column() { + Button(this.inputValue) + .id('UIComponentCommonattrDrawingoptimization0220_001') + .onClick((e: ClickEvent) => { + }).backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets + + +@Component +struct UIAttributesBackgroundInterface128 { + build() { + Column() { + Row() + .backgroundColor("dsfsdfsf") + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0350.ets + + +@Component +struct SubAceActionWindowWindowCustom0350 { + controller: TextInputController = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextInput({ text: "123456", controller: this.controller }) + .id('input') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets + + +@Component +struct UIAttributesBackgroundInterface0350 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes380.ets + + +@Component +struct UIAttributesTouchableInteraction380 { + @State value: string = ''; + build() { + Column() { + Rect() + .width(180) + .height(80) + .id('UIAttributesTouchableInteraction380') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(Color.Black) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'Rect Clicked'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0130.ets + + +@Component +struct ActionEventCommoneventDragImage0130 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_SUCCESSFUL) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_SUCCESSFUL) { + this.result = '成功获取拖拽成功状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets + + +@Component +struct UIAttributesBackgroundInterface097 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0140.ets + + +@Component +struct UIComponentBackgroundimage0140 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets + + +@Component +struct UIAttributesBackgroundInterface109 { + build() { + Column() { + Row() + .backgroundImage('fly.svg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes10.ets + + +@Component +struct UIAttributesTouchableInteraction10 { + @State count: number = 0 + build() { + Column() { + Text('LongPress onAction:' + this.count) + .fontSize(28) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction10') + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent) => { + if (event && event.repeat) { + this.count++ + } + }) + .onActionEnd((event: GestureEvent) => { + this.count = 0 + }) + ) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0480.ets + + +@Component +struct ActionEventControlCallback0480 { + @State context: string = "hello" + private swiperController: SwiperController = new SwiperController() + build() { + Column() { + Text(this.context) + Swiper(this.swiperController) { + Text('0') + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + Text('1') + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + } + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + + +export const FLAG_OF_FILE_173: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets new file mode 100644 index 000000000..3691f1805 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets @@ -0,0 +1,398 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Blank,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions, + $$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,GradientDirection,Color, + RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0020_204.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0020_204 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0190.ets + + +@Component +struct ActionEventCommonEventMouseStyle0190 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0190_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0190" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0190_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic6.ets + +@Component +struct buttonDynamicExample6 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button6') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0100.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0100{ + build() { + Column({ space: 5 }as ColumnOptions) { + Text("disable") + }.width('100%').margin({ top: 5 } as Margin) + .tabIndex(1) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460.ets + + +@Component +struct UIAttributesColorrampInterface0460 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[['rgb(0,0,255)',0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxModalTransition/ComponentPopupBoxModalTransitionHover0010.ets + + +@Component +struct ComponentPopupBoxModalTransitionHover0010 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @Builder + myBuilder() { + Column() { + Text('半模态 enableHoverMode不设置').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + build() { + Column() { + Button("show transition modal") + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + height: this.sheetHeight, + backgroundColor: Color.Pink, + enableHoverMode: undefined + } as SheetOptions).id('ComponentPopupBoxModalTransitionHover0010_button_01') + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0020 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Blank() + .height(30) + .borderWidth(1) + Blank() + .borderWidth(1) + .height(30) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0020.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0020 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollTo({xOffset: 0, yOffset: 20} as ScrollOptions) + this.scroller1.scrollEdge(Edge.Top, { + velocity: 10.01 + } as ScrollEdgeOptions) + }).id('ScrollScrollbarScrolledge0020_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_174: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets new file mode 100644 index 000000000..bbaad954e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets @@ -0,0 +1,412 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ClickEvent,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, TapGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Text, + Image, + Margin, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Color, + Alignment, + PopupOptions, + PopupButton, + PopupStateChangeParam, + PopupStateChangeCallback +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,TextAlign, + BarState,TapGesture,Margin,ListScroller,List,ListItem, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0090.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0090 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + private listScroller: ListScroller = new ListScroller(); + @State flag: boolean = false; + build() { + Column() { + List({ space: 10, scroller: this.listScroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('item_' + item) + .width('100%') + .height(100) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFFFFF) + } + }, (item: number) => String(item)) + }.focusable(true) + .padding(10) + .height(500) + Row({ space: 20 } as RowOptions) { + Button('focusable true') + }.height('50%') + }.onClick((e: ClickEvent)=>{}) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur7.ets + +@Component +struct linearGradientBlur7 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Left } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0230 { + @State handlePopup: boolean = false; + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 } as Margin) + .fontSize(20) + .fontColor(Color.Black) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 } as Margin) + } + build() { + Column() { + Button('show dialog') + .id('overlay0230_button_01') + .onClick((e: ClickEvent) => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: true, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + } as PopupButton, + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + } as PopupButton, + onStateChange: (e: PopupStateChangeParam) => { + console.info(String(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } as PopupStateChangeCallback + } as PopupOptions).overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Start }) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0430 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .gesture( + TapGesture({ count: 1}) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.sonValue = "子按键触发"; + } + })) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父按键") + .id("fatherButton") + .fontSize(50) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.fatherValue = "父按键触发"; + } + })) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void =>{this.overlayBuilder()},{offset:{x:50,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0240.ets + + +@Component +struct ActionEventCommoneventDragImage0240 { + @State uri: string = "" + @State intr: string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let sum = '' + event?.getSummary().summary; + this.intr = sum ; + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let img = arr[0] as unifiedDataChannel.Image; + this.uri = img.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + Text("获取简介成功:"+this.intr).fontSize(20) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0070.ets + + +@Component +struct ActionEventCommonEventMouseStyle0070 { + build() { + Column({ space: 50 } as ColumnOptions) { + Button("Button1") + .id("ActionEventCommonEventMouseStyle0070_01") + .onClick((e:ClickEvent) => { + cursorControl.setCursor(pointer.PointerStyle.SCREENSHOT_CURSOR); + }) + Button("Button2") + .id("ActionEventCommonEventMouseStyle0070_02") + .onClick((e:ClickEvent) => { + cursorControl.restoreDefault(); + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest9.ets + +@Component +struct ZIndexDynamicModificationTest9 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 5 //text的value: 'ABC设置zIndex: 2 3 1' + this.zIndexValueIndex = 4 //ABC设置zIndex: 2 3 1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_175: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets new file mode 100644 index 000000000..8e9662aaa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets @@ -0,0 +1,418 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, GestureEvent, LongPressGesture, Text, Image} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_002.ets + +@Component +struct onlyColumnCellLength { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State cellLengthValue: number = 1 + onPageShow() { + console.info('onlyColumnCellLength onPageShow') + this.cellLengthValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .cellLength(this.cellLengthValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0360 { + @State count: number = 0; + @Builder + overlayBuilder(){ + Button("长按数字变化") + .id("changanButton") + .fontSize(25) + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + if (event.repeat) { + this.count++; + } + } + }) + .onActionEnd(() => { + this.count = 0; + }) + ) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count.toString()).fontSize(40) + Image("2.png").overlay((): void =>{ this.overlayBuilder() },{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0220.ets + + +@Component +struct ActionEventCommonEventMouseStyle0220 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_EAST_SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0220_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0220" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0220_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0400.ets + + +@Component +struct ActionEventCommonEventMouseStyle0400 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0400_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0400" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0400_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0140.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0140 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0140_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0140_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0140_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_176: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets new file mode 100644 index 000000000..477565f3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets @@ -0,0 +1,415 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent,Visibility,Flex,FlexDirection,ItemAlign,FlexAlign,List,ForEach, + ListItem, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,ListScroller,Grid, + GridItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GestureMode, + PanGesture, + Button, + GestureGroup, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0260.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0260 { + @State backColor: Color = Color.Blue; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State count: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + build() { + Column() { + Column() { + Button('这是一个Button1') + .id('btn') + .backgroundColor(this.backColor) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction(() => { + this.backColor = Color.Red + }) + .onActionEnd(() => { + console.info('LongPress end'); + }), + PanGesture() + .onActionStart(() => { + this.backColor = Color.Pink + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetX = (this.positionX + event.offsetX); + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + ) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0070 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1.1 }) + .id('UIAttributesClivkreboundeffectInterface0070_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020.ets + + +@Component +struct UIAttributesColorRampBlurGradient0020 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(0, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2.ets + + +@Component +struct UIAttributesModaltransitionVision0070_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0430 { + build() { + Column() { + Grid(){ + GridItem(){ + RowSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + } + .id('button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0030.ets + + +@Component +struct ActionGestureRegister0030 { + private arr: number[] = new Array(0, 1, 2, 3) + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400.ets + + +@Component +struct UIAttributesGraphictransformationInterface0400 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{z:1}') + Image('cat.jpg') + .width(100) + .scale({z:1} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid008.ets + +@Component +struct UIComponentGrid008 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .width(170) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCountValue) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('Infinity') + .onClick((event: ClickEvent) => { + this.maxCountValue = Infinity + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0090.ets + + +@Component +struct ActionEventCommoneventDragImage0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('view-1') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .id('view-2') + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop(undefined) + .onDrop((event?: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_177: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets new file mode 100644 index 000000000..163663d01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets @@ -0,0 +1,356 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r,ShadowStyle} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding,$r} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Image,$r,Color,DragEvent,Margin,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690.ets + + +@Component +struct UIAttributesColorrampInterface0690 { + @State startX: number = 0; + @State endX: number = 90; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: this.startX, + end: this.endX, + repeating: false + } as SweepGradientOptions) + .animation({ + duration:1000 + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.startX=20 + this.endX=140 + this.btnShow = Visibility.Hidden + } else { + this.startX=0 + this.endX=90 + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0280.ets + + +@Component +struct ActionEventCommoneventDragdefault0280 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({top:250} as Margin) + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnBackdropBlur.ets + +@Component +struct BackGroundBlur { + private imageSize: number = 150; + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .backgroundImage($r('app.media.startIcon')) + .width(this.imageSize) + .height(this.imageSize) + .backdropBlur(5, { grayscale: [100, 100] }) + } + .width('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentOnAppear.ets + +@Component +struct ContentOnAppear { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State num:number = 0 + @State num2:number = 0 + @State num3:number = 0 + @State num4:number = 0 + @State num5:number = 0 + @State num6:number = 0 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentOnAppear5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Orange, onAppear: () => { + this.num3 = this.num + this.num3+=1 + console.log("BindContentCover onAppear2.") + }, + onDisappear: () => { + this.num4 = this.num2 + this.num4+=1 + console.log("BindContentCover onDisappear2.") + }} as SheetOptions) + Text('2 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('2 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Button("close modal 1").fontSize(11).id('ContentOnAppear6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentOnAppear7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => { + this.num+=1 + console.log("BindContentCover onAppear1.")}, onDisappear: () => { + this.num2+=1 + console.log("BindContentCover onDisappear1.")}} as SheetOptions) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('触发将被覆盖').fontSize(20) + .margin(10) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button.ets + +@Component +struct ButtonExample { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: ButtonType.Capsule, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + Button({ type: ButtonType.Circle, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Circle') + }) + Button({ type: ButtonType.Normal, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Circle') + }) + Text(this.text).width('90%') + Button({ type: ButtonType.Normal, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button4') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button({ type: ButtonType.Normal, stateEffect: false } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button5') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button({ type: ButtonType.Normal, stateEffect: false } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button6') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button('') + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button7') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect6' + }) + Button({type:ButtonType.Capsule} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button8') + .borderRadius(40) + .onClick((e:ClickEvent) => { + this.text = 'stateEffect7' + }) + Button({type:ButtonType.Capsule} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button9') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect7' + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ImageShadowIndex.ets + +@Component +struct ImageShadowIndex { + build() { + Column({ space: 5 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_FLOATING_SM) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_SM) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_FLOATING_MD) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_MD) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_XS) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_LG) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_178: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets new file mode 100644 index 000000000..f7c999b88 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets @@ -0,0 +1,460 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + PinchGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach,Visibility, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,ShadowOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ClickEvent,Button,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0110.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0110 { + @State widthValue: number = 200 + @State heightValue: number = 250 + @State str: string = 'await Utils.sleep(3000);' + build() { + Column({ space: 5 }as ColumnOptions) { + Text(this.str).width(this.widthValue).height(this.heightValue) + .id('UIComponentCommonattrFocusenhancement0110_001') + .onFocus(() => { + this.str = "rotateonFocus" + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720.ets + + +@Component +struct UIAttributesModaltransitionVision0720 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + Text(`Custom Title`).height(40) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0210.ets + + +@Component +struct ActionEventCommoneventDragInput0210 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets + + +@Component +struct UIAttributesBackgroundInterface0670 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomEnd) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0090.ets + + +@Component +struct ActionEventControlCallback0090 { + @State context: string = "" + build() { + Column(){ + Button("button") + .backgroundColor(Color.Red) + Text(this.context) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_015.ets + +@Component +struct Grid05 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsTemplate属性值为-1fr').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('-1fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330.ets + + +@Component +struct UIAttributesImageeffectInterface0330 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({radius:$r('app.media.startIcon')} as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0120.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0120 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button Visibility.Visible') + .visibility(Visibility.Visible) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.px(20), + }) + Button('button Visibility.Hidden') + .visibility(Visibility.Hidden) + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + Button('button Visibility.None') + .visibility(Visibility.None) + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes260.ets + + +@Component +struct UIAttributesTouchableInteraction260 { + @State value: string = ''; + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction260') + .hitTestBehavior(HitTestMode.Transparent) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.pinchValue = this.scaleValue; + this.value = 'PinchGesture onActionEnd'; + }) + ) + Text(this.value) + Button('restore') + .id('UIAttributesTouchableInteraction260_1') + .onClick((): void =>{ + this.scaleValue = 1; + this.pinchValue = 1; + }) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + + +export const FLAG_OF_FILE_179: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets new file mode 100644 index 000000000..5fc359bda --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets @@ -0,0 +1,402 @@ +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + List,ListItem,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rating,FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Menu, + ImageFit, + MenuItem, + MenuItemOptions, + Color +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Button,ClickEvent,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0040.ets + + +@Component +struct ActionEventControlCallback0040 { + @State context: string = "" + build() { + Column(){ + Button("button") + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.ets + + +@Component +struct UIAttributesColorrampInterface0800 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90%" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets + + +@Component +struct UIAttributesBackgroundInterface0490 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets + + +@Component +struct UiAttributesFloatingLayerInterface0050 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", { align: Alignment.BottomEnd }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.ets + + +@Component +struct UIAttributesImageeffectInterface0350 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 0 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0020.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0020 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0190 { + @Builder + OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }as MenuItemOptions) + }.width(400).height(400).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0410 { + @State rating: number = 3.5 + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0410_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0410_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0410_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column() { + Rating({ rating: this.rating, indicator: false }) + .stars(5) + .stepSize(0.5) + .margin({ top: 24 } as Margin) + .onChange((value: number):void => { + this.rating = value + }) + .foregroundEffect({ radius: this.radius }) + Text('current score is ' + this.rating) + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width(360) + .height(113) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + } + } + .id('UIComponentCommonattrForegroundEffect0410_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets + + +@Component +struct UIAttributesBackgroundInterface100 { + build() { + Column() { + Row() + .backgroundImage('/comment/bddg.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.ets + + +@Component +struct UIAttributesModaltransitionInteration0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 100; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myTitle() { + Text("Sheet Title").id('sheet_title') + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [600, 300, 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + title: this.myTitle + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0340.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0340 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_18: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets new file mode 100644 index 000000000..ac9daf381 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets @@ -0,0 +1,363 @@ +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + ScrollDirection,CalendarAlign,CalendarPicker,Margin,Text,FlexAlign,FontWeight, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image' + +import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, + Grid,ForEach,ClickEvent,DragPreviewMode,Padding,GridItem,DragEvent,CommonMethod, applyStyles, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + Resource,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,Menu, + $$,SheetSize,MenuItem,Resource,MenuItemOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Image,$r,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0780.ets + + +@Component +struct ActionEventCommoneventDragInterface0780 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700.ets + + +@Component +struct UIAttributesModaltransitionVision0700 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + Text("Menu Title").id("sheet_title").bindMenu(this.titleMenu) + } + @Builder + titleMenu() { + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + } + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM] as [SheetSize|String|Double|Resource], + preferType: SheetType.BOTTOM, + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1.ets + + +@Component +struct UIAttributesModaltransitionVision0070_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragScenarios/ActionEventCommoneventDragScenarios0060.ets + + +@Component +struct ActionEventCommoneventDragScenarios0070 { + @State pixmap: image.PixelMap | undefined = undefined + @State isEdit: boolean = true + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] as number[] + @State colors: Color[] = + [Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Yellow, Color.Orange, Color.Pink, Color.Yellow, + Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Red, Color.Blue, Color.Brown, Color.Gray, + Color.Green] as Color[] + @State isSelectedItem: boolean[] = [] as boolean[] + @State previewData: DragItemInfo[] = [] as DragItemInfo[] + @State numberBadge: number = 0; + scroller: Scroller = new Scroller() + normalStyles(instance: CommonMethod): void { + instance.opacity(0.3) + } + selectStyles(instance: CommonMethod): void { + instance.opacity(1.0) + } + @Builder + dragStartBuilder() { + Column() { + Text("builder dragStart") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Column() { + Grid(this.scroller) { + ForEach(this.arr, (item: number) => { + GridItem() { + Text('item ' + item) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + } + .id(`${item}`) + .backgroundColor(this.colors[item]) + .draggable(true) + .selectable(true) + .selected(this.isSelectedItem[item]) + .stateStyles({ + normal: this.normalStyles, + selected: this.selectStyles + }) + .onClick((e:ClickEvent) => { + this.isEdit = false + }) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }, { + isMultiSelectionEnabled: true, + defaultAnimationBeforeLifting: true + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .dragPreview(():void => { + }) + }, (item: number,index:number) => item+'') + } + .editMode(this.isEdit) + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('80%') + .height('80%') + } + .width('100%') + .height('100%') + .backgroundColor(0xDCDCDC) + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0440.ets + + +@Component +struct ActionEventCommoneventDragdefault0440 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '中间可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row(){ + Text('左边text文字') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Text('右边text文字') + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0040 { + @State selectedDate: Date = new Date('2024-03-05') + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0040_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0040_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0040_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + CalendarPicker({ + hintRadius: 10, + selected: new Date('2024-03-05') + }) + .edgeAlign(CalendarAlign.END) + .textStyle({ + color: "#ff182431", + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0040_004') + .layoutWeight(1) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_180: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets new file mode 100644 index 000000000..d4aafd233 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets @@ -0,0 +1,486 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,Visibility,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Stack,Text,ClickEvent,Color,Span, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0050 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x+1') + .id('UIAttributesGraphicTransformationSkew0050_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(1, 0); + }) + Button('y+1') + .id('UIAttributesGraphicTransformationSkew0050_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, 1); + }) + Button('x-1') + .id('UIAttributesGraphicTransformationSkew0050_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(-1, 0); + }) + Button('y-1') + .id('UIAttributesGraphicTransformationSkew0050_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, -1); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0080.ets + + +@Component +struct ActionEventCommoneventDragImage0080 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image("icon.png") + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets + + +@Component +struct UIAttributesBackgroundInterface0050 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur11.ets + +@Component +struct linearGradientBlur11 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Right } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170.ets + + +@Component +struct UIAttributesImageeffectInterface0170 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(1.0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0130.ets + + +@Component +struct ActionEventControlCallback0130 { + @State context: string = "" + build() { + Stack(){ + Text() { + Span(this.context) + .fontSize(32) + } + .margin(30) + } + .backgroundColor(Color.Green) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0050.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0050 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightSheetSize.ets + +@Component +struct HightSheetSize { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightSheetSize5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:SheetSize.LARGE , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightSheetSize6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightSheetSize7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:SheetSize.MEDIUM , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060.ets + + +@Component +struct UIAttributesImageEffectProjection0060 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .colorBlend(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090.ets + + +@Component +struct UIAttributesColorrampInterface90 { + @State btnShow: Visibility = Visibility.Visible; + @State angleR:number=0 + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:this.angleR + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.btnShow = Visibility.None + this.angleR=30 + } else { + this.btnShow = Visibility.Visible + this.angleR=60 + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020.ets + + +@Component +struct UIAttributesColorrampInterface0020 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:0 + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0410.ets + + +@Component +struct ActionEventCommonEventMouseStyle0410 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0410_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0410" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0410_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_181: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets new file mode 100644 index 000000000..f24c0bb19 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets @@ -0,0 +1,305 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,GradientDirection,FlexAlign,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ColumnOptions,CustomBuilder,PopupStateChangeParam,CustomPopupOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SheetSize,BlurStyle,SheetOptions,SheetTitleOptions,TripleLengthDetents, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent,$$, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + TouchEvent,TouchType +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0100.ets + + +@Component +struct UIComponentPreventdefault0100 { + @State text: string = '' + @State eventType: string = '' + build() { + Column() { + Button('Touch').height(40).width(100) + .id('UiComponentPreventdefault0100') + .onTouch((event?: TouchEvent) => { + if(event){ + if (event.type === TouchType.Down) { + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + this.text = 'TouchType:' + this.eventType + ',' + event.target.area.globalPosition.y + ')\nwidth:' + + event.target.area.width + '\nheight:' + event.target.area.height + } + }) + Button('Touch').height(50).width(200).margin(20) + .onTouch((event?: TouchEvent) => { + if(event){ + if (event.type === TouchType.Down) { + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + this.text = 'TouchType:' + this.eventType + '\nComponent globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\nwidth:' + + event.target.area.width + '\nheight:' + event.target.area.height + } + }) + Text(this.text) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0230.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0230 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + Button("content1") + .margin(10) + .fontSize(20) + .focusBox({ + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(5) + }) + } + .width('100%') + } + build() { + Column() { + Button("transition modal 1") + .id('UIComponentCommonattrDrawingoptimization0230_001') + .onClick((e: ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), ((): void => {this.myBuilder()}), { + detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200] as TripleLengthDetents, + backgroundColor: Color.Gray, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" } as SheetTitleOptions, + } as SheetOptions) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0610.ets + + +interface Params { + text: string +} +@Component +struct SubAceActionWindowWindowCustom0610 { + @State statel: string = 'text1'; + @Builder + builder1(params: Params) { + Text(params.text).fontSize(50) + } + build() { + Column() { + this.builder1({ text: this.statel }) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton168.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton168 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row() { + TextInput({ placeholder: 'input ...' }) + Button('PopupOptions') + }.height(50).padding(5) + } + build() { + Column({space: 100} as ColumnOptions) { + TextInput({ placeholder: 'input ...' }) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_168') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + targetSpace: 15 as number, + enableArrow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + }.margin(20) + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0060.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0060 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: 0 + }) + }).id('ScrollScrollbarScrolledge0060_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020.ets + + +@Component +struct UIAttributesColorrampDfx0020 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840.ets + + +@Component +struct UIAttributesColorrampInterface0840 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: 0, + end: 90, + rotation: -10 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_182: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets new file mode 100644 index 000000000..fd597b019 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets @@ -0,0 +1,477 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + ForEach, + EdgeEffect, + ScrollSnapAlign, + TripleLengthDetents +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Search,Margin,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0140.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0140 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr).focusable(true) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + Text('你好').focusable(true) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0490.ets + + +@Component +struct ActionEventControlCallback0490 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content490' }) + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .id("ActionEventControlCallback0490_01") + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Regular.ets + +@Component +struct BlurStyle_Regular { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic2.ets + +@Component +struct buttonDynamicExample2 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Circle' + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260.ets + + +@Component +struct UIAttributesImageeffectInterface0260 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(90) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets + + +@Component +struct UIAttributesBackgroundInterface0270 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为20vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630.ets + + +@Component +struct UIAttributesImageeffectInterface0630 { + build() { + Column() { + Row() { + Text('test') + .blur(3) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_006.ets + +@Component +struct onlyColumnMinCount { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State minCountValue: number = 1 + onPageShow() { + console.info('onlyColumnMinCount onPageShow') + this.minCountValue = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .minCount(this.minCountValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton136.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton136 { + @State isShow: boolean = false + scroller: Scroller = new Scroller; + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) + @Builder + myBuilder() { + Column() { + Scroll(this.scroller) { + Column() { + ForEach(this.arr, (item: number) => { + Button("content1") + .margin(10) + .fontSize(20) + }, (item: number,index:number) => String(item)) + }.width('100%').backgroundColor(0xDCDCDC) + } + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({ + snapAlign: ScrollSnapAlign.START, + snapPagination: 400, + enableSnapToStart: true, + enableSnapToEnd: true + }) + } + .width('100%') + } + build() { + Column() { + Button("transition modal 1") + .id('UlComponentCommonattrlfocusoptimizatton_136_1') + .onClick((): void => { + this.isShow = true + }) + .focusable(false) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + detents: [SheetSize.MEDIUM as SheetSize, SheetSize.LARGE as SheetSize, SheetSize.FIT_CONTENT] as TripleLengthDetents, + backgroundColor: Color.Gray, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" }, + preferType: SheetType.CENTER, + shouldDismiss: ((sheetDismiss: SheetDismiss): void => { + console.log("bind sheet shouldDismiss") + sheetDismiss.dismiss() + }) + }) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160.ets + + +@Component +struct UIAttributesColorrampInterface0160 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Left + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton138.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton138 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((): void => { + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("button2") + .id('button2ID') + .onClick((): void => { + }) + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_183: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets new file mode 100644 index 000000000..295633fba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets @@ -0,0 +1,327 @@ +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,List,Text,ListItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Text, Color, FontWeight, Alignment, Button, ClickEvent, Margin, Builder, Direction } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur9.ets + +@Component +struct linearGradientBlur9 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.RightBottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0330887.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0330887 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0330887_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0330887_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0250.ets + + +@Component +struct UIAttributesBcakgroundSeriable0250 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0470 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button点击改变图片") + .id("changeTextColor") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + .margin({top:30} as Margin) + }.height(300) + .backgroundColor(Color.Orange) + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0530 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("\"qwerfdsazxcvbgtyhn'",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0130.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0130 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr) + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + Text('你好') + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0110.ets + + +@Component +struct ActionEventControlCallback0110 { + @State context: string = "" + build() { + Column(){ + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120.ets + + +@Component +struct UIComponentCommonattrGrayscale0120 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [128, 128] + }) + } + .width('100%') + .height('100%') + } + } +} + + +export const FLAG_OF_FILE_184: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets new file mode 100644 index 000000000..3d3edff3e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets @@ -0,0 +1,431 @@ +import { Entry, Component, Row, Column, Color, Builder, Button, Text, LongPressGesture, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions} from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse003.ets + + +@Component +struct UIComponentCommonattrClearfocuse003 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0050.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0050 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: -100 + }) + }).id('ScrollScrollbarScrolledge0050_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0200.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0200 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button one') + .focusBox({ + margin: LengthMetrics.vp(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(200) + }) + Button('button two') + .focusBox({ + margin: LengthMetrics.vp(5), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(10) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760.ets + + +@Component +struct UIAttributesColorrampInterface0760 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0060.ets + + +@Component +struct UIActtonEventComdneventDracForeground0060 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "linear-out-slow-in", + delay: 300, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0060_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0060_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0090.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0090 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('zIndex(5)') + .zIndex(5) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(1)') + .zIndex(1) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(20)') + .zIndex(20) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0440 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子长按键") + .id("sonButton") + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.sonValue="子长按键触发"; + }) + ) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父长按键") + .id("fatherButton") + .fontSize(50) + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.fatherValue="父长按键触发"; + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()},{offset:{x:0,y:120}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_185: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets new file mode 100644 index 000000000..82043d8cd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets @@ -0,0 +1,390 @@ +import { + Entry, + Text, + Component,TapGesture, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,WaterFlow,FlowItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Alignment, + Builder, + PinchGesture, + GestureEvent, + Image, + Direction, + FontWeight +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid007.ets + +@Component +struct UIComponentGrid007 { + @State numbers: Array = new Array() + @State rowsTemplateValue: string = "1fr 1fr" + layoutDirectionValue: GridDirection = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplateValue) + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('GridDirection.Column') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.rowsTemplateValue = "repeat(auto-fit, 90px)" + this.layoutDirectionValue = GridDirection.ColumnReverse + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0030.ets + + +@Component +struct ActionEventCommoneventDragImage0030 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column2.ets + +@Component +struct Column2Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(500) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190.ets + + +@Component +struct UIAttributesColorrampInterface0190 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.RightTop + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0300 { + @State mainColor:string="#C9F26B"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder).backgroundColor(this.mainColor).height(40) + } + @Builder + privateBuilder() { + Column(){ + Image('2.png').height(500).margin({top:70} as Margin) + .overlay((): void => {this.privateBuilderTwo()},{align:Alignment.Center}) + Button("点击改变文本背景色") + .id("changeTextGroundColor") + .margin({top:30} as Margin) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .onClick((e: ClickEvent) => { + this.mainColor="#F26BD2" + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0370.ets + + +@Component +struct UIAttributesTouchableInteraction0370 { + @State message: string = ''; + @State show: boolean = true; + build() { + Row() { + Column() { + Button('changeShow') + .id('UIAttributesTouchableInteraction0370_001') + .onClick((): void => { + this.show = !this.show; + }) + if (this.show){ + Button('testButton') + .onAppear(() => { + this.message = 'testButton onAppear'; + }) + .onDisAppear(()=>{ + this.message = 'testButton onDisAppear'; + }) + } + Text(this.message) + } + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0140.ets + + +@Component +struct ActionEventControlCallback0140 { + @State context: string = "" + build() { + Column(){ + Text(this.context) + WaterFlow(){ + FlowItem() + .backgroundColor(Color.Red) + .width(200) + .height(200) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes60.ets + + +@Component +struct UIAttributesTouchableInteraction60 { + @State value: string = '' + build() { + Column() { + Text('Click ') + .fontSize(28) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction60') + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]) + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + + +export const FLAG_OF_FILE_186: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets new file mode 100644 index 000000000..9307ed141 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets @@ -0,0 +1,414 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + Flex,$r,ListItem, + DragEvent, + List, + BorderOptions,UniformDataType, + UnifiedData,FlexDirection,ItemAlign,Image,ForEach +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Margin, TextPicker } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle,EdgeOutlineStyles, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,MenuItem, + BarState,Menu,MenuItemOptions,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270.ets + + +@Component +struct UIAttributesColorrampInterface0270 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240.ets + + +@Component +struct UIAttributesImageEffectProjection0240 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: true} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0420.ets + + +@Component +struct ActionEventCommoneventDragdefault0420 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160.ets + + +@Component +struct UIAttributesGraphictransformationInterface0160 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate({x:0,y:1,z:0,angle:45})') + Image('cat.jpg') + .width(100) + .rotate({x:0,y:1,z:0,angle:45} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0210.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0210 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + } + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(4), + }) + } + build() { + Row() { + Column() { + Text('click to show menu') + .id('UIComponentCommonattrDrawingoptimization0210_001') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .bindMenu(this.MyMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0130.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0130 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle({top: OutlineStyle.DASHED, right: OutlineStyle.DOTTED, bottom: OutlineStyle.SOLID, left: OutlineStyle.DASHED} as EdgeOutlineStyles) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets + + +@Component +struct UIAttributesBackgroundInterface1490 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Right, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets + + +class bottom { + bottom:number = 50 +} +let bott:bottom = new bottom() +@Component +struct UIAttributesFloatingLayerOverlay0250 { + private apfruits: string[] = ['apple1', 'apple2', 'apple3', 'apple4'] + private orfruits: string[] = ['orange1', 'orange2', 'orange3', 'orange4'] + private pefruits: string[] = ['peach1', 'peach2', 'peach3', 'peach4'] + private multi: string[][] = [this.apfruits, this.orfruits, this.pefruits] + @Builder + privateBuilder() { + TextPicker({ range: this.multi }) + .onChange((value: string | string[], index: number | number[]):void => { + console.info('TextPicker 多列:onChange ' + JSON.stringify(value) + ', ' + 'index: ' + JSON.stringify(index)) + }).margin(50).width(550).height(400).margin({ top: 50 } as Margin).backgroundColor(Color.Orange) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes310.ets + + +@Component +struct UIAttributesTouchableInteraction310 { + @State uri: string = ""; + @State text: string = ""; + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('UIAttributesTouchableInteraction310') + .hitTestBehavior(HitTestMode.Transparent) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart(undefined) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction310_1') + .onDragEnter(():void => { + this.text = 'onDragEnter'; + }) + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_187: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets new file mode 100644 index 000000000..038537b80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets @@ -0,0 +1,401 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions,ScrollState, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Search,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240.ets + + +@Component +struct UIAttributesColorrampInterface0240 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + angle:'50%' + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0470 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0470_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0470_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0470_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Search({ placeholder: 'Type to search...' }) + .searchButton('Search') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0470_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0510.ets + + +@Component +struct ActionEventCommonEventMouseStyle0510 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_CROSS; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0510_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0510" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0510_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0640.ets + + +@Component +struct ActionEventCommoneventDragdefault0640 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0200765.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0200765 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller() + layoutOptions1: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + layoutOptions2: GridLayoutOptions = { + regularSize: [1, 1], + irregularIndexes: [0, 7], // 索引为0和7的GridItem占用的列数由onGetIrregularSizeByIndex指定 + onGetIrregularSizeByIndex: (index: number): [number,number] => { + if (index === 0) { + return [1, 5] + } + return [1, index % 6 + 1] + } + } as GridLayoutOptions + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0200765_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollPage({ next: true }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0200765_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1, this.layoutOptions1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + }.width('100%').margin({ top: 5 } as Margin) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + } + } +} + + +export const FLAG_OF_FILE_188: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets new file mode 100644 index 000000000..b79d19fd0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets @@ -0,0 +1,379 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,GridLayoutOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, SizeOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets + + +@Component +struct UIAttributesBackgroundInterface1480 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0070 { + @State isClick:boolean =false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860.ets + + +@Component +struct UIAttributesColorrampInterface0860 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:true + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic4.ets + +@Component +struct buttonDynamicExample4 { + @State buttonType: ButtonType | undefined = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonType_非法值_NULL' + this.buttonType = undefined + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0410.ets + + +@Component +struct ActionEventCommoneventDragdefault0410 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets + + +@Component +struct UIAttributesBackgroundInterface088 { + build() { + Column() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 850, height: 1100 } as SizeOptions) + .width(600) + .height(400) + } + .width(800) + .height(1000) + .backgroundColor(Color.Gray) + .alignItems(HorizontalAlign.Center) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440.ets + + +@Component +struct UIAttributesModaltransitionVision0440 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 100, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_291.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_291 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1]; + else if(index==1) + return [0, 1, 2, 2]; + else if(index==2) + return [0 ,3 ,3 ,3]; + else if(index==3) + return [3, 0, 3, 3]; + else if(index==4) + return [4, 3, 2, 2]; + else + return [5, 5, 1, 1]; + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsGap(0) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0240.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0240 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("small black focus box") + .clip(true) + .focusBox({ + margin: new LengthMetrics(0), + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(10) + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190.ets + + +@Component +struct UIAttributesImageeffectInterface0190 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_189: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets new file mode 100644 index 000000000..4bf738e12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets @@ -0,0 +1,395 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TabsController,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Position, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,Offset,ScrollState, + Direction,Alignment,Divider,Edges,LocalizedEdges +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + MenuItem, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + Builder, + Menu, + FontWeight,MenuItem,MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + ImageFit, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button01.ets + + +@Component +struct Button01 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button01_0010') + .id('Button01_0010') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.text = inspector.getInspectorByKey('Button01_0010'); + }) + Row() { + Text(this.text) + .id('Button01_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.ets + + +@Component +struct UIAttributesModaltransitionVision0080_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0080 { + @Builder + OverlayNode() { + Column() { + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + .backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets + + +@Component +struct UIAttributesSelectedStyle0130 { + @State select: boolean = true; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0130') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.ets + + +@Component +struct UIAttributesModaltransitionVision0070_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0180.ets + + +@Component +struct UIAttributesBcakgroundSeriable0180 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.NoRepeat) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_026.ets + +@Component +struct Grid_026 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('100%') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .align(Alignment.Start) + .offset({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Position | Edges | LocalizedEdges | undefined) + .position({ x: 50, y: 50 } as Position) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0170.ets + + +@Component +struct UIAttributesFocuscontrolInterface0170 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + } + Column({ space: 20 } as ColumnOptions) { + Text("第三个column").width(200) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.ets + + +@Component +struct UIAttributesModaltransitionVision0430 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 100, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_19: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets new file mode 100644 index 000000000..d63b560d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets @@ -0,0 +1,470 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Text,Flex, + FlexDirection,ItemAlign,FlexAlign,Image,$r,DragEvent,Margin,List,Row,ForEach,ListItem, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Stack, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0170 { + @State color: Color = Color.Red; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0170_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets + + +@Component +struct UIAttributesBackgroundInterface0700 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.End) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0490.ets + + +@Component +struct ActionEventCommonEventMouseStyle0490 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0490_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0490" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0490_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets + + +@Component +struct UIAttributesBackgroundInterface104 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.NoRepeat) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommoneventDragListItem0090.ets + + +@Component +struct ActionEventCommoneventDragListItem0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不支持拖拽的位置') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string,index:number) => item) + } + .id("img2") + .height('90%') + .width('100%') + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + }) + .border({ width: 1 }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + Column() { + Text('支持拖拽的位置') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string,index:number) => item) + } + .id("img3") + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData: UDC.UnifiedData = (event as DragEvent).getData() as UDC.UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0180.ets + + +@Component +struct ActionEventCommonEventMouseStyle0180 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0180_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0180" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0180_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_190: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets new file mode 100644 index 000000000..feb557f7e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets @@ -0,0 +1,382 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListOptions, BorderOptions,Position, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Length, ScrollAlign, Direction,Row, Visibility,ScrollState, + OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Stack, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + NavPathStack,Navigation,HorizontalAlign +} from '@ohos.arkui.component' + +import { State,Provide } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0020 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton126.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton126 { + @Provide({ alias: 'pageInfos' }) pageInfos: NavPathStack = new NavPathStack() + build() { + Column() { + Navigation(this.pageInfos) { + Column() { + Button('button1') + .id('button1ID') + .onClick((): void => { + }); + Button('button2') + .id('button2ID') + .onClick((): void => { + }); + Button('button3') + .id('button3ID') + .onClick((): void => { + }); + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } + } + .height('100%') + .width('100%') + .backgroundColor('#F1F3F5') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0180 { + @State color: Color = Color.Red; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0180_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_030.ets + +@Component +struct Grid7 { + @State numbers: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30) + @State numbers1: Array = new Array(38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67) + scroller1: Scroller = new Scroller() + @State text: string = 'drag' + @State height1: number = 100 + @State num1: number = 100 + @State width1: number = 100 + @State num2: number = 100 + @State string1: string = '1fr 1fr 1fr' + @State num3: number = 20 + @State cgap: number = 10 + @State num4: number = 10 + @State rgap: number = 10 + @State num5: number = 10 + @State bool1: boolean = false + @State bool2: boolean = true + @State align1: ScrollAlign = ScrollAlign.START + @State extraoffset: number = 0 + @State dirction: Direction = Direction.Auto + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){ + Button('高度110').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num1 = 110 + this.height1 = this.num1 + }).id('itemHeight110') + Button('宽度110').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num2 = 110 + this.width1 = this.num2 + }).id('itemWidth110') + }.margin({top:20} as Margin) + Row(){ + Button('列间距15').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num4 = 15 + this.cgap = this.num4 + }).id('columnsGap15') + Button('行间距15').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num5 =15 + this.rgap = this.num5 + }).id('rowsGap15') + } + Row(){ + Button('加1列').height(40).onClick((event:ClickEvent)=>{ + this.string1 = this.string1 + ' 1fr' + }) + Button('1列').height(40).onClick((event:ClickEvent)=>{ + this.string1 = '1fr' + }) + Button('item+').height(40).onClick((event:ClickEvent)=>{ + let len = this.numbers.length + this.num3 = this.numbers[len-1] + 1 + this.numbers.push(this.num3) + }) + Button('item-').height(40).onClick((event:ClickEvent)=>{ + this.numbers.pop() + }) + } + Row() { + Button("Auto") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Auto; + }).id('DirectionAuto_030') + Button("Ltr") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionLtr_030') + Button("Rtl") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Rtl; + }).id('DirectionRtl_030') + } + Row(){ + Text('对齐:').fontSize(12) + Button('首').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.START + }).id('ScrollAlignSTART') + Button('尾').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.END + }).id('ScrollAlignEND') + Button('中').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.CENTER + }).id('ScrollAlignCENTER') + Button('自动').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.AUTO + }).id('ScrollAlignAUTO') + } + Row(){ + Text('scrollToIndex:').fontSize(12) + Button('1').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(1,this.bool1,this.align1) + }).id('scrollToIndex1') + Button('25').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(25,this.bool1,this.align1) + }).id('scrollToIndex25') + Button('50').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(50,this.bool1,this.align1) + }).id('scrollToIndex50') + } + Grid(this.scroller1) { + ForEach(this.numbers, (item: number, index:number) => { + GridItem() { + Text('' + (item)) + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + }) + GridItem() { + Text('第32个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .padding(20) + .margin(20) + GridItem() { + Text('第33个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .visibility(Visibility.None) + GridItem() { + Text('第34个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .border({ width: 20, color: 0x317AF7, radius: 10 } as BorderOptions) + GridItem() { + Text('第35个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + GridItem() { + Text('第36个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + GridItem() { + Text('第37个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .position({x:20 ,y:300} as Position) + .width(this.width1) + .height(this.height1) + ForEach(this.numbers1, (item: number, index:number) => { + GridItem() { + Text('' + (item)) + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + }) + }.backgroundColor(Color.Orange) + .enableScrollInteraction(this.bool2) + .columnsTemplate(this.string1) + .multiSelectable(true) + .columnsGap(this.cgap) + .rowsGap(this.rgap) + .width('90%') + .edgeEffect(EdgeEffect.Spring) + .height("50%") + .direction(this.dirction) + .scrollBarColor(Color.Black) + .scrollBar(BarState.On) + .onScrollIndex((firstIndex: number, lastIndex: number) => { + console.info('wff Gridindex first' + firstIndex) + console.info('wff Gridindex last' + lastIndex) + }) + .onReachStart(() => { + console.info('wff Grid ReachStart') + }) + .onReachEnd(() => { + console.info('wff Grid ReachEnd') + }) + .onScrollStart(() => { + console.info('wff Grid ScrollStart') + }) + .onScrollStop(() => { + console.info('wff Grid ScrollStop') + }) + .onScrollFrameBegin((offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + console.log('wff Grid onScrollFrameBegin, offset' + offset + `, state = ` + state ) + return { offsetRemain: offset } + } as OnScrollFrameBeginCallback|undefined) + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_191: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets new file mode 100644 index 000000000..64982c1e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets @@ -0,0 +1,410 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack, + BlendApplyType,$r +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton152.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton152 { + build() { + Column() { + Button("支持自定义内容弹出框") + .id('UlComponentCommonattrlfocusoptimizatton_152_1') + .onClick((): void => { + }) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @Builder + buildContent(): void { + Column() { + TextInput({ placeholder: 'input ...' }) + Button('count is odd').fontSize(30).height(50).margin({ top: 20 } as Margin) + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_012.ets + +@Component +struct Grid02 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为0').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(0) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0340 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090.ets + + +@Component +struct UIComponentCommonattrGrayscale0090 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [128, 128] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType1.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Text('🙂 🛒 🌞 TEST BrightnessBlender FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender1, BlendApplyType.FAST) + Text('🙂 🛒 🌞 TEST createBrightnessBlender FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Button('🙂 🛒 🌞 TEST FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Image($r('app.media.startIcon')) + .width(300).height(200) + .advancedBlendMode(blender2, BlendApplyType.FAST) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370.ets + + +@Component +struct UIAttributesImageeffectInterface0370 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: $r('app.media.startIcon') } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid011.ets + +@Component +struct UIComponentGrid011 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + @State gridWidthStart: number = 300 + @State gridHeightStart: number = 600 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 6; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .width(this.gridWidthStart) + .height(this.gridHeightStart) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .cellLength(0) + Button('Height increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 150 + this.gridWidthStart = 300 + }).id('btn01') + Button('Width increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 600 + this.gridWidthStart = 150 + }).id('btn02') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid002.ets + +@Component +struct UIComponentGrid02 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('100%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(30, false) + }).id('btn01') + Button('scrollToIndex equal to 0') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(0, false) + }).id('btn02') + Button('scrollToIndex equal to 3') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, false) + }).id('btn03') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_192: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets new file mode 100644 index 000000000..04bef425e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets @@ -0,0 +1,444 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,Stack, + Alignment,ClickEvent,List,ListItem,Flex,Text,TextAlign,FlexDirection,ItemAlign, + BarState,Padding,Button,ForEach,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Builder,Text,FontWeight,TextAlign, + Row,Button,ClickEvent,FlexAlign,Scroll,Gauge,TextOverflow,Margin,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from "@ohos.arkui.dragController" + +import componentSnapshot from '@ohos.arkui.componentSnapshot'; + +import image from '@ohos.multimedia.image'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import prompt from '@system.prompt'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, EdgeEffect,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_028.ets + +@Component +struct Grid_028 { + @State Number: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGap: number = 10 + @State rowsGap: number = 10 + @State scrollBar: BarState = BarState.Off + @State scrollBarWidth: number = 4 + @State scrollBarColor: Color = Color.Red + @State editMode: boolean = true + @State supportAnimation: boolean = false + @State edgeEffect: EdgeEffect = EdgeEffect.None + @State enableScrollInteraction: boolean = true + build() { + Column({ space: 5 } as ColumnOptions) { + Scroll(this.scroller1) { + Grid() { + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }) + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .scrollBar(this.scrollBar) + .scrollBarWidth(this.scrollBarWidth) + .scrollBarColor(this.scrollBarColor) + .editMode(this.editMode) + .width('90%') + .backgroundColor(0xFAEEE0) + .height('45%') + .border({ width: 1 } as BorderOptions) + .enableScrollInteraction(this.enableScrollInteraction) + .edgeEffect(this.edgeEffect) + }.scrollBar(BarState.Off).scrollBarColor(Color.Yellow).scrollBarWidth(10).scrollable(ScrollDirection.Vertical) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0380.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0380 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('buttonId') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponent0310.ets + +@Component +struct SubAceActionEventCommineventDragXcomponent0310 { + @State pixmap: image.PixelMap | undefined = undefined + @State text: string = '' + xComponentController: XComponentController = new XComponentController() + @Builder + DraggingBuilder() { + Column() { + Text("DraggingBuilder") + .fontColor(Color.White) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + @Builder + PixmapBuilder() { + Column() { + Text("PixmapBuilder") + .fontColor(Color.White) + .fontSize(15) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + aboutToAppear() { + componentSnapshot.createFromBuilder((): void => { + this.PixmapBuilder() + }).then((pix: image.PixelMap) => { + this.pixmap = pix; + }) + } + build() { + Column() { + Button('touch to execute drag') + .id('SubAceActionEventCommineventDragXcomponent0310_1') + .margin(10) + .onTouch((event?: TouchEvent) => { + if (event) { + } + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0130 { + @State radius: number = 0 + @Builder + descriptionBuilder() { + Text('说明文本') + .maxFontSize('30sp') + .minFontSize("10.0vp") + .fontColor("#fffa2a2d") + .fontWeight(FontWeight.Medium) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0130_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0130_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0130_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Gauge({ value: 50, min: 1, max: 100 }) { + Column() { + Text('50') + .fontWeight(FontWeight.Medium) + .width('62%') + .fontColor("#ff182431") + .maxFontSize("60.0vp") + .minFontSize("30.0vp") + .textAlign(TextAlign.Center) + .margin({ top: '35%' } as Margin) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + Text('辅助文本') + .maxFontSize("16.0fp") + .minFontSize("10.0vp") + .fontColor($r('app.media.startIcon')) + .fontColor($r('app.media.startIcon')) + .fontWeight(FontWeight.Regular) + .width('67.4%') + .height('9.5%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height('100%') + } + .value(50) + .startAngle(210) + .endAngle(150) + .width('80%') + .height('80%') + .strokeWidth(18) + .trackShadow(undefined) + .indicator(undefined) + .description(this.descriptionBuilder) + .padding(18) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0130_004') + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0110.ets + + +@Component +struct ActionEventCommonEventMouseStyle0110 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.DEFAULT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[] ; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0110_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0110" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0110_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_193: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets new file mode 100644 index 000000000..acad58305 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets @@ -0,0 +1,355 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import promptAction from '@ohos.promptAction'; + +import { BusinessError } from '@ohos.base'; + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Component, Column, TextController,DragEvent,ColumnOptions, + Text,TextInput,CopyOptions,Color,Margin,DragResult,Rectangle, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, + ClickEvent,Visibility,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Column, + Component, + Builder, + Color, + TextAlign, + FlexAlign, + Scroll, + Divider, + OutlineStyle, + BorderStyle +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/DoubleStrokeInterfaceIndex.ets + +@Component +struct DoubleStrokeInterfaceIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Divider().margin(9) + Column() { + Text('单描边和外描边进行同时设置且显示样式不同').width('100%').textAlign(TextAlign.Start) + } + .border({ + width: 1, + color: Color.Red, + style: 0 as BorderStyle + }) + .outline({ + width: 2, + color: Color.Green, + style: 1 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + Divider().margin(9) + Column() { + Text('单描边和外描边进行同时设置且显示样式相同').width('100%').textAlign(TextAlign.Start) + } + .border({ + width: 1, + color: Color.Red, + style: 0 as BorderStyle + }) + .outline({ + width: 1, + color: Color.Red, + style: 0 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + Divider().margin(9) + Column() { + Text('只设置外描边').width('100%').textAlign(TextAlign.Start) + } + .outline({ + width: 1, + color: Color.Red, + style: 1 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + } + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur20.ets + +@Component +struct linearGradientBlur20 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(-60, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250.ets + + +@Component +struct UIAttributesColorrampInterface0250 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle:180, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.ets + + +@Component +struct UIAttributesImageeffectInterface0090 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.ets + + +@Component +struct UIAttributesColorrampInterface0590{ + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State repeat:boolean=false; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.repeat=true + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.repeat=false + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0080.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0080 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragForeground/ActionEventCommoneventDragForeground0130.ets + + +@Component +struct ActionEventCommoneventDragForeground0130 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + @State wid: number = 100 + @State hei: number = 100 + @State input: string = 'abcabc' + private textController: TextController = new TextController() + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 0, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + this.backAnimator!.onFinish = () => { + _this.flag = true + console.info(_this.TAG, 'backAnimator onfinish') + } + this.backAnimator!.onRepeat = () => { + console.info(_this.TAG, 'backAnimator repeat') + } + this.backAnimator!.onCancel = () => { + console.info(_this.TAG, 'backAnimator cancel') + } + this.backAnimator!.onFrame = (value: number) => { + _this.wid = value + _this.hei = value + } + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag'}`) + TextInput({ placeholder: '请拖入内容', text: this.input }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .foregroundColor(Color.Yellow) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + if (this.backAnimator) { + this.backAnimator?.play() + } + event.useCustomDropAnimation = true; + }) + Text('可拖入文本') + .draggable(true) + .margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .foregroundColor(Color.Yellow) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + event.useCustomDropAnimation = true; + event.setResult(DragResult.DRAG_SUCCESSFUL); + if (this.backAnimator) { + this.backAnimator?.play() + } + }) + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_194: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets new file mode 100644 index 000000000..234b61032 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets @@ -0,0 +1,358 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0140.ets + + +@Component +struct ActionEventCommoneventDragText0140 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0150.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0150 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid010.ets + +@Component +struct UIComponentGrid010 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + @State gridWidthStart: number = 50 + @State gridHeightStart: number = 90 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 6; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + GridItem() { + Text("0") + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.gridHeightStart) + .width(this.gridWidthStart) + }.borderWidth(2).borderColor(Color.Red) + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .width(300) + .height(600) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .cellLength(0) + Button('Width increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 90 + this.gridWidthStart = 160 + }).id('btn01') + Button('Height increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 300 + this.gridWidthStart = 50 + }).id('btn02') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.ets + + +@Component +struct UIAttributesColorrampInterface0550 { + @State repeat: boolean = false; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd2') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.repeat = true + this.btnShow = Visibility.None + } else { + this.repeat= false + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.ets + + +@Component +struct UIAttributesShapecroppingInterface0020 { + build() { + Column({ space: 3 } as ColumnOptions) { + Image('cat.jpg') + .width("100%") + Text('不设置clip效果') + Image('cat.jpg') + .width("100%") + .margin({ top: 8 } as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic11.ets + +@Component +struct buttonDynamicExample11 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = true + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button11') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0190.ets + + +@Component +struct ActionEventCommoneventDragInput0190 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_195: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets new file mode 100644 index 000000000..b1184a213 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets @@ -0,0 +1,433 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Color,Stack,Text,Alignment,cursorControl,Position +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + ImageSize,$r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Color, + Entry, + ObscuredReasons, + Component, + ClickEvent, + Row, + Column, + Text, + Image, + Button, + FlexAlign +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + FontWeight, + MenuItem, + ObscuredReasons, + Menu, + ImageSize, + Menu, + Builder, + MenuItemOptions, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets + + +@Component +struct UIAttributesBackgroundInterface093 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({} as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets + + +@Component +struct UIAttributesSelectedStyle0140 { + @State select: boolean = false; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + } as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0140') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets + + +@Component +struct UIComponentMediaImageMask0020 { + @State isShow: boolean = true + @State borderW: number = 1; + @State borderC: number = Color.White; + @State changeAppear: string = '点我卸载挂载组件' + build() { + Row() { + Column() { + if (this.isShow) { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + Button(this.changeAppear).onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + this.isShow = !this.isShow + }).id('mask0020_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0110.ets + + +@Component +struct ActionEventCommoneventDragInterface0110 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0310.ets + + +@Component +struct UIAttributesBcakgroundSeriable0310 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.XY) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets + + +@Component +struct UIAttributesBackgroundInterface1440 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0090.ets + + +@Component +struct ActionEventCommonEventMouseStyle0090 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Text("Text1") + .id("ActionEventCommonEventMouseStyle0090_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + Text("Text2") + .id("ActionEventCommonEventMouseStyle0090_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible40.ets + + +@Component +struct UIComponentGridAccessible40 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0060.ets + + +@Component +struct UIActtonEventComdneventDragInput0060 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0060_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("UIActtonEventComdneventDragInput0060_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_196: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets new file mode 100644 index 000000000..6687bef10 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets @@ -0,0 +1,460 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row,Visibility,DragEvent,List,BorderOptions,UnifiedData, + ListItem, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,UniformDataType, + Color,ForEach,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Stack,Alignment, + ScrollDirection,ScrollBar,ScrollBarDirection +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.ets + + +@Component +struct UIAttributesModaltransitionVision0060 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0040.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0040 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(-1) + Column({ space: 20 } as ColumnOptions) { + Button("你好啊").tabIndex(1) + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListAndGridGridAutoStretch/UIComponentListAndGridGridAutoStretch0240115.ets + + +@Component +struct UIComponentListAndGridGridAutoStretch0240115 { + private scroller1: Scroller = new Scroller() + @State numbers: Array = new Array('0', '1', '2', '3') + data1: Array = new Array(0, 1, 2, 3, 4, 5,6,7,8,9,10,11,12,13,14,15) + build() { + Column() { + Text('auto-stretch 先根据设定的列宽计算列数,余下的空间会均分到每个列间距中').width('90%'); + Stack({ alignContent: Alignment.End }) { + Scroll(this.scroller1) { + Grid() { + ForEach(this.data1, (item: number) => { + GridItem() { + Text('N' + item).height(80) + } + .backgroundColor(Color.Orange) + }) + } + .width('50%') + .border({ width: 1, color: Color.Black }) + .columnsTemplate('repeat(auto-stretch, 80)') + .columnsGap(10) + .rowsGap(10) + .height(300) + } + .width('90%') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + .id('UIComponentListAndGridGridAutoStretch0240115') + ScrollBar({ scroller: this.scroller1, direction: ScrollBarDirection.Vertical,state: BarState.Auto }) { + Text() + .width(20) + .height(100) + .borderRadius(10) + .backgroundColor('#C0C0C0') + }.width(20).backgroundColor('#ededed').id('UIComponentListAndGridGridAutoStretch0240115_001'); + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets + + +@Component +struct UIAttributesBackgroundInterface0410 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: '3.14rad', + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0440_612.ets + + +@Component +struct UIComponentListandgridGridInterface_0440_612 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes80.ets + + +@Component +struct ImageExample { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction80') + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction80_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0150.ets + + +@Component +struct UIComponentBackgroundimage0150 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('') + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0470.ets + + +@Component +struct ActionEventCommonEventMouseStyle0470 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0470_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0470" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0470_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_197: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets new file mode 100644 index 000000000..717ec380a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets @@ -0,0 +1,401 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0040.ets + + +@Component +struct UIActtonEventComdneventDracForeground0040 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0040_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0040_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.ets + + +@Component +struct UIAttributesModaltransitionVision0400 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest11.ets + +@Component +struct ZIndexDynamicModificationTest11 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 7 //text的value: 'ABC设置zIndex: -3 2 -1' + this.zIndexValueIndex = 6 //ABC设置zIndex: -3 2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0350.ets + + +@Component +struct ActionEventCommonEventMouseStyle0350 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CHOOSE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0350_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0350" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0350_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_198: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets new file mode 100644 index 000000000..1ad3c3180 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets @@ -0,0 +1,325 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Column +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import {PanelType} from '@ohos.inputMethod.Panel' + +import inspector from '@ohos.arkui.inspector' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,ClickEvent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0220.ets + + +@Component +struct UIAttributesFocuscontrolInterface0220 { + @State focusOnTouchValue: boolean = false + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Button("3") + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0410.ets + + +@Component +struct ActionEventControlCallback0410 { + @State context: string = "hello" + @State show: boolean = true + build() { + Column() { + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets + + +@Component +struct UIAttributesBackgroundInterface0520 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0240.ets + + +@Component +struct UIAttributesFocuscontrolInterface0240 { + @State focusOnTouchValue: boolean = false + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0240_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Image(this.iconStr) + .width(200) + .height(270) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.ets + + +@Component +struct UIAttributesModaltransitionAnimator0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0200.ets + + +@Component +struct CommonEventDragVideo0200 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_FAILED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_199: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets new file mode 100644 index 000000000..bcceb6817 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets @@ -0,0 +1,423 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Stack,Alignment, + ScrollDirection,ScrollBar,ScrollBarDirection +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Color,Stack,Text,Alignment,cursorControl,Position +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + ImageSize,$r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0110.ets + + +@Component +struct ActionEventCommoneventDragInterface0110 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0310.ets + + +@Component +struct UIAttributesBcakgroundSeriable0310 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.XY) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets + + +@Component +struct UIAttributesBackgroundInterface1440 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0090.ets + + +@Component +struct ActionEventCommonEventMouseStyle0090 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Text("Text1") + .id("ActionEventCommonEventMouseStyle0090_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + Text("Text2") + .id("ActionEventCommonEventMouseStyle0090_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible40.ets + + +@Component +struct UIComponentGridAccessible40 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0060.ets + + +@Component +struct UIActtonEventComdneventDragInput0060 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0060_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("UIActtonEventComdneventDragInput0060_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.ets + + +@Component +struct UIAttributesModaltransitionVision0060 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0040.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0040 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(-1) + Column({ space: 20 } as ColumnOptions) { + Button("你好啊").tabIndex(1) + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListAndGridGridAutoStretch/UIComponentListAndGridGridAutoStretch0240115.ets + + +@Component +struct UIComponentListAndGridGridAutoStretch0240115 { + private scroller1: Scroller = new Scroller() + @State numbers: Array = new Array('0', '1', '2', '3') + data1: Array = new Array(0, 1, 2, 3, 4, 5,6,7,8,9,10,11,12,13,14,15) + build() { + Column() { + Text('auto-stretch 先根据设定的列宽计算列数,余下的空间会均分到每个列间距中').width('90%'); + Stack({ alignContent: Alignment.End }) { + Scroll(this.scroller1) { + Grid() { + ForEach(this.data1, (item: number) => { + GridItem() { + Text('N' + item).height(80) + } + .backgroundColor(Color.Orange) + }) + } + .width('50%') + .border({ width: 1, color: Color.Black }) + .columnsTemplate('repeat(auto-stretch, 80)') + .columnsGap(10) + .rowsGap(10) + .height(300) + } + .width('90%') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + .id('UIComponentListAndGridGridAutoStretch0240115') + ScrollBar({ scroller: this.scroller1, direction: ScrollBarDirection.Vertical,state: BarState.Auto }) { + Text() + .width(20) + .height(100) + .borderRadius(10) + .backgroundColor('#C0C0C0') + }.width(20).backgroundColor('#ededed').id('UIComponentListAndGridGridAutoStretch0240115_001'); + } + } + } +} + + +export const FLAG_OF_FILE_2: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets new file mode 100644 index 000000000..3357343c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets @@ -0,0 +1,416 @@ +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Image,$r,Color,DragEvent,Margin,Row,RowOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0070.ets + + +@Component +struct ActionEventCommoneventDragText0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0020 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0200 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(this.isClick == true ? 300 : 200).backgroundColor(Color.Green) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0280.ets + + +@Component +struct ActionEventCommoneventDragCard0280 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = true; + }) + .border({width:1}) + .id('ActionEventCommoneventDragCard0280') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommonEventDragDefault0260.ets + + +@Component +struct ActionEventCommonEventDragDefault0260 { + @State uri: string = "" + @State txt:string = 'A位置Text可拖拽文字' + build() { + Column() { + Text(this.txt) + .id('view-1') + .fontSize(30) + .margin(20) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Row() { + Column(){ + Text('B位置可释放区域') + .fontSize('15dp') + .height('10%') + Text(this.uri) + .id('view-2') + .height("50%") + .width("95%") + .fontSize(30) + .textAlign(TextAlign.Center) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .height("50%") + .width("95%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_two.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button1', { type: ButtonType.Circle }) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(-30) + .margin({top:10} as Margin) + Button('button2', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(30) + .margin({top:10} as Margin) + Button('button3', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(150) + .margin({top:10} as Margin) + Button('button4', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button5', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button6', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button7') + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button($r('app.media.startIcon')) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0280860.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0280860 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0280860_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0280860_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top); + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0320 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("nieheButton") + .fontSize(30) + .height(50) + .width(100) + .border({ width: 3 }) + .margin({ top: 100 } as Margin) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + Text('').width(100).height(10).id('Overlay0320_text').onClick((e: ClickEvent) => { + this.scaleValue = 1 + }) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_20: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets new file mode 100644 index 000000000..ae7e27552 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets @@ -0,0 +1,423 @@ +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextAreaController, + Button, + TextArea, + MenuPolicy, + ClickEvent, + TextAreaOptions, + ResourceStr +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection,ListItemGroup,BarState, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.ets + + +@Component +struct UIAttributesModaltransitionSafearea0110 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle2.ets + +@Component +struct TextBackgroundBlurStyle2 { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0200.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0200 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.ets + + +@Component +struct UIAttributesImageeffectInterface0300 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.ets + + +@Component +struct UIAttributesColorRampBlurGradient0090 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Right} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.ets + + +@Component +struct UIAttributesImageeffectInterface0130 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0040.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0040 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.ets + + +@Component +struct UIAttributesColorrampInterface0570 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + this.colors =[["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Gray, 1]] + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + this.colors =[["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0240 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List({ space: 10 }) { + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .borderWidth(1) + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0320.ets + + +@Component +struct SubAceActionWindowWindowCustom0320 { + controller: TextAreaController = new TextAreaController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextArea({ text: 'text', controller: this.controller } as TextAreaOptions) + .id('input') + } + } +} + + +export const FLAG_OF_FILE_200: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets new file mode 100644 index 000000000..d896808fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets @@ -0,0 +1,381 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization125.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization125 { + @State pageInfos: NavPathStack = new NavPathStack() as NavPathStack; + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(new NavPathStack()) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0110.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0050.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0050 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.ets + + +@Component +struct UIAttributesColorrampInterface0470 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0010.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0010 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.ets + + +@Component +struct UIAttributesImageeffectInterface0550 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_201: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets new file mode 100644 index 000000000..f01ec557b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets @@ -0,0 +1,433 @@ +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + $r, + DragPreviewMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,DragEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + FlexAlign +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, + } from '@ohos.arkui.component' + +import { + Entry, + Component, + Column, + Color, + Builder, + Progress +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, CalendarPicker, FontWeight,CalendarAlign } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0260 { + private selectedDate: Date = new Date('2024-03-05') + @Builder + privateBuilder() { + CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) + .id("CalendarPicker") + .edgeAlign(CalendarAlign.END) + .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) + .margin(10) + .onChange((value:Date):void => { + console.info("CalendarPicker onChange:" + JSON.stringify(value)) + }) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0040 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(null) + .id('UIAttributesClivkreboundeffectInterface0040_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0070 { + @Builder BackgroundBuilder() { + Progress({value:0}).width(400).height(400).backgroundColor(Color.Green) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Num_Per.ets + +@Component +struct Num_Per { + build() { + Column() { + Text('上下30%,左右50').fontSize(30).margin(30) + Row(){ + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: 50, right: 50 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxMenuTest/UIApperanceDarkMode0010.ets + + +@Component +struct UIApperanceDarkMode0010 { + @State message: string = 'log:'; + build() { + Column() { + Text(this.message).margin({ top: 20 } as Margin) + Button('setDarkMode is Dark').fontSize(20).margin(20) + Button('setDarkMode is 5').fontSize(20) + }.height('100%').width('100%').justifyContent(FlexAlign.Start) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0270.ets + + +@Component +struct ActionEventCommonEventMouseStyle0270 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.COLOR_SUCKER; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0270_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0270" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0270_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0190 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(100) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0110 { + @State isDragging: boolean = false; + @State textPosition: Position = { x: 100, y: 100 } as Position; + @State newTextPosition: Position = { x: 200, y: 200 } as Position; + @State textOpacity: number = 1.0; + onDragBegin(event: DragEvent, extraParams?: string) { + this.isDragging = true; + } + onDrag(event: DragEvent, extraParams?: string):void { + this.textPosition = { + x: event.getDisplayX() - 25, + y: event.getDisplayY() - 25 + }; + } + onDragOver(event: DragEvent, extraParams?: string):void { + this.isDragging = false; + } + simulateDrag() { + this.isDragging = true; + this.textPosition = this.newTextPosition; + setTimeout(() => { + this.isDragging = false; + this.textPosition = { x: 100, y: 100 } as Position; + }, 1500); + } + build() { + Column(){ + Row(){ + Text('drag') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isDragging ? Color.Black : Color.White) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{ + this.onDragBegin(event, extraParams) + return ()=>{} + }) + .onDragMove((event: DragEvent, extraParams?: string):void=>{ + this.onDrag(event,extraParams) + }) + .onDragEnd((event: DragEvent, extraParams?: string):void=>{ + this.onDragOver(event,extraParams) + }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + .opacity(this.isDragging ? 0.5 : 1.0) + Button('drag') + .height(50) + .width(100) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.simulateDrag() + }) + .id('buttonId') + } + .opacity(this.textOpacity) + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0100.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0100 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Image($r('app.media.startIcon')) + .id('SubAceActionEventCommoneventDragImprove0100_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0100_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_202: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets new file mode 100644 index 000000000..6f0646ff7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets @@ -0,0 +1,379 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, + Grid,GridItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,Button,ClickEvent, + List,ListItem,ForEach,FlexDirection,ItemAlign,BarState,Padding,Stack,Alignment,Flex,cursorControl, + FlexDirection,ItemAlign,Text,TextAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,Margin,TextInput,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0330.ets + + +@Component +struct ActionEventCommoneventDragdefault0330 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 250 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.ets + + +@Component +struct UIAttributesColorrampInterface0640 { + @State repeat:boolean=false + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0,end:90, + repeating:this.repeat + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.repeat=!this.repeat + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + } else { + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0140.ets + + +@Component +struct UIAttributesFocuscontrolInterface0140 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0120.ets + + +@Component +struct ActionEventCommonEventMouseStyle0120 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0120_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0120" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0120_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets + + +@Component +struct UIAttributesBackgroundInterface105 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.X) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0080 { + build() { + Column() { + Grid(){ + GridItem(){ + ColumnSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + } + .id('button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_001.ets + +@Component +struct onlyColumnBarState { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State BarValue: BarState = BarState.Off + onPageShow() { + console.info('onlyColumnBarState onPageShow') + this.BarValue = BarState.On + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .scrollBar(this.BarValue) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_203: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets new file mode 100644 index 000000000..78ce37818 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets @@ -0,0 +1,400 @@ +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState,OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,Stack,Alignment,ClickEvent, + ForEach,TextAlign,Text,BarState,Padding,Button,Flex,cursorControl,FlexDirection,ItemAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0030_237.ets + + +@Component +struct UIComponentListandgridGridEvents_0030_237 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragLeave( (event: ItemDragInfo, itemIndex: number) => { + this.text1 = 'onItemDragLeave'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0130.ets + + +@Component +struct ActionEventCommonEventMouseStyle0130 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0130_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0130" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0130_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.ets + + +@Component +struct UIAttributesModaltransitionVision0310 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0270047.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0270047 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onScrollFrameBegin((offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + this.msgInfo= "trigger Grid onScrollFrameBegin" + return { offsetRemain: offset } + } as OnScrollFrameBeginCallback|undefined) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0270047'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic8.ets + +@Component +struct buttonDynamicExample8 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button8') + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_204: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets new file mode 100644 index 000000000..417fde070 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets @@ -0,0 +1,396 @@ +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_016.ets + +@Component +struct Grid06 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsTemplate属性值为0fr').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('0fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets + + +@Component +struct UIAttributesBackgroundInterface0420 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: 90, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0100_565.ets + + +@Component +struct UIComponentListandgridGridInterface_0100_565 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0080.ets + + +@Component +struct UIActtonEventComdneventDracForeground0080 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0080_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0080_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets + + +@Component +struct UIAttributesBackgroundInterface0260 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){ + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 0, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.ets + + +@Component +struct UIAttributesColorrampInterface0360 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0020.ets + + +@Component +struct ActionEventCommoneventDragImage0020 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets + + +@Component +struct UiAttributesFloatingLayerInterface0010 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", {}) + } + } +} + + +export const FLAG_OF_FILE_205: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets new file mode 100644 index 000000000..54a0e4201 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets @@ -0,0 +1,419 @@ +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,FontStyle, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Padding +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Image,TransitionEffect,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0410.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0410 { + @State flag: boolean = true; + build() { + Column() { + Button('').width(80).height(30).margin(30) + .id('buttonId') + .onClick((e:ClickEvent) => { + this.flag = !this.flag; + }) + if (this.flag) { + Image('2.png').width(200).height(200) + .transition(TransitionEffect.OPACITY.animation({ duration: 2000, curve: Curve.Ease } as AnimateParam).combine( + TransitionEffect.rotate({ z: 1, angle: 180 }) + )) + } + }.width('100%').renderFit(RenderFit.TOP_RIGHT) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.ets + + +@Component +struct UIAttributesModaltransitionVision0470 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundEffect2.ets + +@Component +struct TextBackgroundEffect2 { + build() { + Scroll() { + Column() { + Text('radius:100 ALWAYS_INACTIVE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0620.ets + + +@Component +struct ActionEventCommoneventDragInterface0620 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0450.ets + + +@Component +struct ActionEventCommoneventDragdefault0450 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '中间可拖拽文字' + @State font_style:FontStyle = FontStyle.Normal + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontStyle(this.font_style) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontStyle(FontStyle.Italic) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_style = FontStyle.Italic + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0480.ets + + +@Component +struct ActionEventCommonEventMouseStyle0480 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0480_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0480" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0480_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets + + +@Component +struct UIAttributesBackgroundInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "0.5turn", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_206: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets new file mode 100644 index 000000000..71e8bd996 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets @@ -0,0 +1,389 @@ +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions,KeyEvent,ButtonType,KeyType, +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { sendKeyEvent } from "@internal.full.global" + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Column, + Button, + TextInput +} from '@ohos.arkui.component'; + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0260 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + Button('MarginChange').onClick((e:ClickEvent)=>{ + this.mar = 50 + }).id('margin') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets + + +@Component +struct UIAttributesBackgroundInterface0300 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[0xD3E0DC,0.4], [Color.Red,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets + + +@Component +struct UIAttributesBackgroundInterface091 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 200, height: 100 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0310.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0310 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets + + +@Component +struct textInputActionEventCommon { + build() { + Column() { + TextInput({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .defaultFocus(true) + .key('key_textInput_action_event_common_001') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0240.ets + + +@Component +struct UIAttributesBcakgroundSeriable0240 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur8.ets + +@Component +struct linearGradientBlur8 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets + + +@Component +struct UIAttributesBackgroundInterface0430 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0270 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItem({ content: "菜单a" } as MenuItemOptions) + MenuItem({ content: "菜单a" } as MenuItemOptions) + .foregroundEffect({ radius: this.radiusValue }) + }.width(90) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.ets + + +@Component +struct UIAttributesImageeffectInterface0140 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button06.ets + + +@Component +struct Button06 { + @State isClicked: boolean = false; + @State text: string = ''; + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Button('Button06_btn1') + .id('Button06_btn1') + .width(300) + .height(80) + .fontColor(Color.Black) + .fontSize(25) + .fontWeight(FontWeight.Bold) + .backgroundColor(Color.Pink) + .type(ButtonType.Capsule) + .padding(10) + .onClick((event:ClickEvent) => { + setTimeout(() => { + let keyEvent: KeyEvent = { + type: KeyType.Down, + keyCode: 2049, + keyText: 'tab', + deviceId: 0, + metaKey: 0, + timestamp: 0, + stopPropagation: () => { + }, + intentionCode: IntentionCode.INTENTION_DOWN + } + this.isClicked = sendKeyEvent(keyEvent); // 发送按键事件 + }, 2000) + }) + Row() { + Text('sendKeyEvent: ').fontSize(25) + Text(this.isClicked + '').fontSize(25).id('Button06_Text') + }.margin({ top: 20 } as Margin).padding(15) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets + + +@Component +struct UIAttributesBackgroundInterface1500 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Top, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + + +export const FLAG_OF_FILE_207: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets new file mode 100644 index 000000000..9dfccc82c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets @@ -0,0 +1,397 @@ +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import image from '@ohos.multimedia.image'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,ClickEvent,Text,Button,Color,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets + + +@Component +struct UIComponentCommonattrForegroundEffect440 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0440_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0440_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0440_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Text('我是 Row') + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width('100%') + .height(120) + .justifyContent(FlexAlign.Center) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0440_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets + + +@Component +struct UiAttributesFloatingLayerInterface0090 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.End}) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0010.ets + + +@Component +struct ActionEventCommoneventDragImage0010 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .id('img1') + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0210.ets + + +@Component +struct UIActtonEventComdneventDracInterface0210 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0210_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_0210_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.ets + + +@Component +struct UIAttributesGraphictransformationInterface0250 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('translate{x:-100}') + Image('cat.jpg') + .width(100) + .translate({x:-100} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0230.ets + + +@Component +struct ActionEventCommoneventDragImage0230 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方超链接资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.HYPERLINK]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let link = arr[0] as unifiedDataChannel.Hyperlink; + this.uri = link.url; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let link: unifiedDataChannel.Hyperlink = new unifiedDataChannel.Hyperlink; + link.url = 'www.xxx.com'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(link); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragMultievents/ActionEventCommoneventDragMultievents0310.ets + + +@Component +struct ActionEventCommoneventDragMultievents0310 { + @State info: string = ''; + build() { + Column({ space: 5 } as ColumnOptions) { + Column() { + Text('Column') + } + .id('Column') + .height(100) + .width(150) + .backgroundColor(Color.Pink) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Column() { + Text('Column2') + } + .height(100) + .width(150) + .backgroundColor(Color.Yellow) + .id('Column2') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Button('0310') + .draggable(true) + .onClick((e:ClickEvent) => { + this.info = 'button click'; + }) + Text(this.info) + Column() { + Text('dropin') + } + .height(200) + .width(350) + .backgroundColor(Color.Black) + .id('dropin') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets + + +@Component +struct UIAttributesBackgroundInterface078 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "33fp" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_208: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets new file mode 100644 index 000000000..1a6753fd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets @@ -0,0 +1,412 @@ +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,OnScrollCallback, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,Button,ClickEvent,Flex, + FlexDirection,ItemAlign,FlexAlign, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image, + RotationGesture +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Color,FlexAlign,EdgeColors, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020.ets + + +@Component +struct UIAttributesOutlineColor0020 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor({left: 0xFFFF4777, right: 0xFFFF4777, top: 0xFFFF4777, bottom: 0xFFFF4777} as EdgeColors) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0330 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("xuanzhuanButton") + .fontSize(100) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent) => { + this.angle=75 + }) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0310 { + @State hei:number = 120; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets + + +@Component +struct UIAttributesBackgroundInterface0340 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-50, -50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 40, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets + + +@Component +struct UIAttributesBackgroundInterface0460 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackActonsheet/010.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackActonsheet010 { + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('Click to Show ActionSheet') + .id('button') + .onClick((e:ClickEvent) => { + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.ets + + +@Component +struct UIAttributesImageeffectInterface0010 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.ets + + +@Component +struct UIAttributesTransparencyInterface0040 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:10') + .onClick((e:ClickEvent) => { + this.opacityValue = 10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId1') + Button('opacity:-10') + .onClick((e:ClickEvent) => { + this.opacityValue = -10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId2') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignitems/UIComponentGridAlignitems0330.ets + + +@Component +struct UIComponentGridAlignitems0330 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentGridAlignItems0330'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.ets + + +@Component +struct UIAttributesColorrampInterface0610 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[50,50], + colors:[] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets + + +@Component +struct UIAttributesImageEffectProjection0050 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .backgroundColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_209: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets new file mode 100644 index 000000000..ffa21f87a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets @@ -0,0 +1,394 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,BarState,HorizontalAlign,Text,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,UniformDataType, + Builder, + CustomDialogController,FlexDirection,ItemAlign,Image,ForEach, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + Flex, + DragEvent, + List, + BorderOptions, + UnifiedData,$r,ListItem,DragItemInfo +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0330.ets + + +@Component +struct UIActionEventCommonEventDragInterface0330 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragEnd((event: DragEvent, extraParams?: string) => { + console.log("zxx extraParams"+extraParams?.toString()) + } as Callback) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets + + +@Component +struct UIAttributesBackgroundInterface098 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundThick.ets + +@Component +struct BlurStyle_BackgroundThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets + + +@Component +struct UiAttributesFloatingLayerInterface0170 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes340.ets + + +@Component +struct UIAttributesTouchableInteraction340 { + @State uri: string = ""; + @State text: string = ""; + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('UIAttributesTouchableInteraction340') + .hitTestBehavior(HitTestMode.Transparent) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event:DragEvent):DragItemInfo =>{ + this.text = 'onDragStart'; + }) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction340_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0460 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .scrollBar(BarState.On) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .margin({ top: 30 } as Margin) + .scrollBar(BarState.On) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_21: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets new file mode 100644 index 000000000..b3809e9bc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets @@ -0,0 +1,399 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding,ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0060.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0060 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 0.5, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0500.ets + + +@Component +struct ActionEventControlCallback0500 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content500' }) + .id("ActionEventControlCallback0500_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0320.ets + + +@Component +struct ActionEventCommoneventDragdefault0320 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentString.ets + +@Component +struct ContentString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('ContentString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 3").fontSize(11).id('ContentString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition modal 3").fontSize(11).id('ContentString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: 'rgba(255, 100, 255, 0.5)', + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 2").fontSize(11).id('ContentString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 'rgb(255, 100, 255)', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: '#ff00ff', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0030.ets + + +@Component +struct ActionEventCommoneventDragdefault0030 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0050.ets + + +@Component +struct UIComponentPreventdefault0050 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0050") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.ets + + +@Component +struct UIAttributesImageeffectInterface0670 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(100.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectUndefined.ets + +@Component +struct TextLightUpEffectUndefined { + build() { + Column() { + Text(' lightUpEffect undefined ') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(undefined) + } + } +} + + +export const FLAG_OF_FILE_210: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets new file mode 100644 index 000000000..1c3e990ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets @@ -0,0 +1,429 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + +import { Entry, Component, Column,Stack,Text,ClickEvent,Color,Alignment, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GestureGroup, + GestureMode, + PanGesture, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0050 { + @Builder + OverlayNode() { + Column() { + Text('overlay 1') + .width(300) + .height(300) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width(300).height(300).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(150) + .height(150) + .objectFit(ImageFit.Fill) + }.width(150).height(150).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0250.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0250 { + @State backColor: Color = Color.Blue; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State count: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + build() { + Column() { + Column() { + Button('这是一个Button') + .id("btn") + .backgroundColor(this.backColor) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction(() => { + this.backColor = Color.Red + }) + .onActionEnd(() => { + console.info('LongPress end'); + }), + PanGesture() + .onActionStart(() => { + this.backColor = Color.Pink + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetX = (this.positionX + event.offsetX); + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + ) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0150 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0 }) + .id('UIAttributesClivkreboundeffectInterface0150_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0010.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0010 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0270.ets + + +@Component +struct ActionEventControlcallback0270 { + @State context: string = "" + build() { + Column(){ + Stack({ alignContent: Alignment.Bottom }){ + Text('First child, show in bottom').width('90%').height('100%').backgroundColor(0xd2cab3).align(Alignment.Top) + Text('Second child, show in top').width('70%').height('60%').backgroundColor(0xc1cbac).align(Alignment.Top) + }.height('80%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0080.ets + + +@Builder +function builder1(text: string) { + Index0080({ link1: text || '' }) +} +@Component +struct SubAceActionWindowWindowCustom0080 { + build() { + Column() { + builder1('text') + } + } +} +@Component +struct Index0080 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.ets + + +@Component +struct UIAttributesColorrampInterface0050 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:true + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0230.ets + + +@Component +struct CommonEventDragVideo0230 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent): void => { + event.useCustomDropAnimation = true + if (event?.useCustomDropAnimation) { + this.status = "useCustomDropAnimation = true" + } else { + this.status = "useCustomDropAnimation = false" + } + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_211: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets new file mode 100644 index 000000000..aa37ac62f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets @@ -0,0 +1,398 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rating,FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Menu, + ImageFit, + MenuItem, + MenuItemOptions, + Color +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Button,ClickEvent,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,VerticalAlign,FocusPriority,GridItemOptions,RowOptions,Row,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,GridRow, + GridCol,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0170 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0090_717.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0090_717 { + @State inputValue: string = '' + build() { + Scroll() { + Row({ space: 20 } as RowOptions) { + Grid() { // 标记为Column1 + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green).focusScopePriority('ColumnScope1', FocusPriority.PRIOR) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + } + .focusScopeId('ColumnScope1') + }.alignItems(VerticalAlign.Top) + }.margin(20) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0040.ets + + +@Component +struct ActionEventControlCallback0040 { + @State context: string = "" + build() { + Column(){ + Button("button") + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.ets + + +@Component +struct UIAttributesColorrampInterface0800 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90%" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets + + +@Component +struct UIAttributesBackgroundInterface0490 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets + + +@Component +struct UiAttributesFloatingLayerInterface0050 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", { align: Alignment.BottomEnd }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.ets + + +@Component +struct UIAttributesImageeffectInterface0350 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 0 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0020.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0020 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0190 { + @Builder + OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }as MenuItemOptions) + }.width(400).height(400).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0410 { + @State rating: number = 3.5 + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0410_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0410_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0410_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column() { + Rating({ rating: this.rating, indicator: false }) + .stars(5) + .stepSize(0.5) + .margin({ top: 24 } as Margin) + .onChange((value: number):void => { + this.rating = value + }) + .foregroundEffect({ radius: this.radius }) + Text('current score is ' + this.rating) + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width(360) + .height(113) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + } + } + .id('UIComponentCommonattrForegroundEffect0410_004') + .layoutWeight(1) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_212: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets new file mode 100644 index 000000000..3702224a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets @@ -0,0 +1,379 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + MenuItem, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + Builder, + Menu, + FontWeight,MenuItem,MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + ImageFit, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + List,ListItem,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets + + +@Component +struct UIAttributesBackgroundInterface100 { + build() { + Column() { + Row() + .backgroundImage('/comment/bddg.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.ets + + +@Component +struct UIAttributesModaltransitionInteration0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 100; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myTitle() { + Text("Sheet Title").id('sheet_title') + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [600, 300, 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + title: this.myTitle + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0340.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0340 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button01.ets + + +@Component +struct Button01 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button01_0010') + .id('Button01_0010') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.text = inspector.getInspectorByKey('Button01_0010'); + }) + Row() { + Text(this.text) + .id('Button01_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.ets + + +@Component +struct UIAttributesModaltransitionVision0080_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0080 { + @Builder + OverlayNode() { + Column() { + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + .backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets + + +@Component +struct UIAttributesSelectedStyle0130 { + @State select: boolean = true; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0130') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.ets + + +@Component +struct UIAttributesModaltransitionVision0070_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0180.ets + + +@Component +struct UIAttributesBcakgroundSeriable0180 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.NoRepeat) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_213: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets new file mode 100644 index 000000000..0bace4aec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets @@ -0,0 +1,401 @@ +import promptAction from '@ohos.promptAction'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Image,$r,Color,DragEvent,Margin,Row,RowOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TabsController,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Position, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,Offset,ScrollState, + Direction,Alignment,Divider,Edges,LocalizedEdges +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_026.ets + +@Component +struct Grid_026 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('100%') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .align(Alignment.Start) + .offset({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Position | Edges | LocalizedEdges | undefined) + .position({ x: 50, y: 50 } as Position) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0170.ets + + +@Component +struct UIAttributesFocuscontrolInterface0170 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + } + Column({ space: 20 } as ColumnOptions) { + Text("第三个column").width(200) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.ets + + +@Component +struct UIAttributesModaltransitionVision0430 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 100, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0070.ets + + +@Component +struct ActionEventCommoneventDragText0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0020 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0200 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(this.isClick == true ? 300 : 200).backgroundColor(Color.Green) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0280.ets + + +@Component +struct ActionEventCommoneventDragCard0280 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = true; + }) + .border({width:1}) + .id('ActionEventCommoneventDragCard0280') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommonEventDragDefault0260.ets + + +@Component +struct ActionEventCommonEventDragDefault0260 { + @State uri: string = "" + @State txt:string = 'A位置Text可拖拽文字' + build() { + Column() { + Text(this.txt) + .id('view-1') + .fontSize(30) + .margin(20) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Row() { + Column(){ + Text('B位置可释放区域') + .fontSize('15dp') + .height('10%') + Text(this.uri) + .id('view-2') + .height("50%") + .width("95%") + .fontSize(30) + .textAlign(TextAlign.Center) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .height("50%") + .width("95%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_two.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button1', { type: ButtonType.Circle }) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(-30) + .margin({top:10} as Margin) + Button('button2', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(30) + .margin({top:10} as Margin) + Button('button3', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(150) + .margin({top:10} as Margin) + Button('button4', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button5', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button6', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button7') + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button($r('app.media.startIcon')) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_214: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets new file mode 100644 index 000000000..b1be29edd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets @@ -0,0 +1,471 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,UniformDataType, + Builder, + CustomDialogController,FlexDirection,ItemAlign,Image,ForEach, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + Flex, + DragEvent, + List, + BorderOptions, + UnifiedData,$r,ListItem,DragItemInfo +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0280860.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0280860 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0280860_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0280860_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top); + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0320 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("nieheButton") + .fontSize(30) + .height(50) + .width(100) + .border({ width: 3 }) + .margin({ top: 100 } as Margin) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + Text('').width(100).height(10).id('Overlay0320_text').onClick((e: ClickEvent) => { + this.scaleValue = 1 + }) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0330.ets + + +@Component +struct UIActionEventCommonEventDragInterface0330 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragEnd((event: DragEvent, extraParams?: string) => { + console.log("zxx extraParams"+extraParams?.toString()) + } as Callback) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets + + +@Component +struct UIAttributesBackgroundInterface098 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundThick.ets + +@Component +struct BlurStyle_BackgroundThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets + + +@Component +struct UiAttributesFloatingLayerInterface0170 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes340.ets + + +@Component +struct UIAttributesTouchableInteraction340 { + @State uri: string = ""; + @State text: string = ""; + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('UIAttributesTouchableInteraction340') + .hitTestBehavior(HitTestMode.Transparent) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event:DragEvent):DragItemInfo =>{ + this.text = 'onDragStart'; + }) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction340_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_215: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets new file mode 100644 index 000000000..0de3afc5b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets @@ -0,0 +1,335 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Scroller,Scroll,ScrollState,Edge,ForEach,ScrollDirection,BarState,TextAlign,ScrollSource,OffsetResult,OnScrollEdgeCallback +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,BarState,HorizontalAlign,Text,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0460 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .scrollBar(BarState.On) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .margin({ top: 30 } as Margin) + .scrollBar(BarState.On) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.ets + + +@Component +struct UIAttributesColorrampInterface0310 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [["rgb(0,0,225)", 0.1], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0040.ets + + +@Component +struct ActionEventCommoneventDragdefault0040 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0110.ets + + +@Component +struct UIAttributesBcakgroundSeriable0110 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 40 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:40}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes190.ets + + +@Component +struct UIAttributesTouchableInteraction190 { + scroller: Scroller = new Scroller() + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State testTextStr: string = 'test' + @State testRowStr: string = 'test' + build() { + Column() { + Column() { + Text(this.testTextStr) + .fontSize(20) + Text(this.testRowStr) + .fontSize(20) + } + .height(100) + .backgroundColor(Color.Gray) + .opacity(0.3) + Scroll(this.scroller) { + Column() { + Text("Test Text Visible Change") + .fontSize(20) + .height(200) + .margin({ top: 50, bottom: 20 } as Margin) + .backgroundColor(Color.Green) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Text isVisible: ' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Text is fully visible. currentRatio:' + currentRatio) + this.testTextStr = 'Test Text is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Text is completely invisible.') + this.testTextStr = 'Test Text is completely invisible' + } + }) + Row() { + Text('Test Row Visible Change') + .fontSize(20) + .margin({ bottom: 20 } as Margin) + } + .height(200) + .backgroundColor(Color.Yellow) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Row is fully visible.') + this.testRowStr = 'Test Row is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Row is completely invisible.') + this.testRowStr = 'Test Row is completely invisible' + } + }) + ForEach(this.arr, (item:number):void => { + Text(item.toString()) + .width('90%') + .height(150) + .backgroundColor(0xFFFFFF) + .borderRadius(15) + .fontSize(16) + .textAlign(TextAlign.Center) + .margin({ top: 10 } as Margin) + }, (item:number) => String(item)) + }.width('100%') + } + .id('UIAttributesTouchableInteraction190') + .hitTestBehavior(HitTestMode.None) + .backgroundColor(0x317aff) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onWillScroll((xOffset: number, yOffset: number, scrollState: ScrollState,scrollSource:ScrollSource): OffsetResult => { + console.info(xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge):void => { + console.info('To the edge') + }) + .onScrollStop(() => { + console.info('Scroll Stop') + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} + + +export const FLAG_OF_FILE_216: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets new file mode 100644 index 000000000..1945feab8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets @@ -0,0 +1,409 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,ShadowOptions,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + Navigation,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll,NavPathStack, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, BuilderParam } from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0290252.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0290252 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0290252_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0290252_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0370.ets + + +@Component +struct SubAceActionWindowWindowCustom0370 { + @Builder + builder1() { + Text('111').fontSize(50) + } + build() { + Column() { + Index0370({ builderParam1: this.builder1 }) + } + } +} +@Component +struct Index0370 { + @BuilderParam builderParam1: () => void = this.builder1 + @BuilderParam builderParam2: () => void = this.builder2 + @Builder + builder1() { + } + @Builder + builder2() { + Text('111').fontSize(50) + } + build() { + Column() { + this.builderParam1() + this.builderParam2() + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0300 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.ets + + +@Component +struct UIAttributesColorrampInterface0350 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Botton') + .width(400) + .height(60) + .linearGradient({ + colors:[] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0050 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets + + +@Component +struct UIAttributesBackgroundInterface110 { + build() { + Column() { + Row() + .backgroundColor(Color.Black) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0170.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0170 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .visibility(Visibility.Visible) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0160 { + @State textPosition: Position = { x: 0, y: 150 } as Position; + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.textPosition = { x: 100, y: 150 } as Position + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .margin({left:100,top:50} as Margin) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .fontSize(15) + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row1.ets + +@Component +struct Row1Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(5) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + + +export const FLAG_OF_FILE_217: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets new file mode 100644 index 000000000..8d4aaba12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets @@ -0,0 +1,414 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl,Button, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + Text, + $r, + Builder, + Color +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, Text, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets + + +@Component +struct UIAttributesBackgroundInterface0450 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets + + +@Component +struct UIAttributesBackgroundInterface0110 { + build() { + Column() { + Row() { + Text("DARK") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.DARK}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest03.ets + +@Component +struct ZIndexTest03 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .zIndex(-3) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(-1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(999999) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9999) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(10) + .width('15%').height('20%').backgroundColor(0x3300FF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(8) + .width('30%').height('30%').backgroundColor(0xFF1493).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(6) + .width('45%').height('45%').backgroundColor(0x7FFF00).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(4) + .width('60%').height('60%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('75%').height('75%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('90%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.Bottom) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_System.ets + +@Component +struct ThemeColorMode_System { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0130 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomEnd}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0030 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0030_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0030_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.ets + + +@Component +struct UIAttributesColorrampInterface0830 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: 0, + end: 90, + rotation: 380 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0530.ets + + +@Component +struct SubAceActionWindowWindowCustom0530 { + @State state1: string = '111' + build() { + Column() { + Index0530({ link1: this.state1 }) + } + } +} +@Component +struct Index0530 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0430.ets + + +@Component +struct ActionEventCommonEventMouseStyle0430 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0430_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0430" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0430_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_218: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets new file mode 100644 index 000000000..2013ca873 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets @@ -0,0 +1,436 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row,DragBehavior, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,TextAreaOptions,TextArea,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import image from '@ohos.multimedia.image'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + PlaybackSpeed,Image,DragBehavior,DragEvent,DragResult,DragItemInfo,CustomBuilder,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0110 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0110_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.ets + + +@Component +struct UIAttributesImageeffectInterface0660 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0240.ets + + +@Component +struct UIActionEventCommonEventDragInterface0240 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap|undefined = undefined + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image("./cat.jpg") + .id('startDragID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent):() => void => { + }) + .onDragEnd((event:DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + } as Callback) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('dragOnDropID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .onDragMove((event:DragEvent) => { + event.dragBehavior = DragBehavior.COPY + } as Callback) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event:DragEvent) => { + event.setResult(DragResult.DRAG_CANCELED) + } as Callback) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0020.ets + + +@Component +struct ActionEventCommonEventMouseStyle0020 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextArea({ text: "TextArea1" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_01") + TextArea({ text: "TextArea2" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_OPEN); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.ets + + +@Component +struct UIAttributesColorrampInterface0030 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: GradientDirection.Left, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0180.ets + + +@Component +struct ActionEventCommoneventDragImage0180 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.COPY + event?.setResult(DragResult.DROP_ENABLED) + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0010.ets + + +@Component +struct UIActtonEventComdneventDracForeground0010 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "cubic-bezier(0.2,0,0,1)", + delay: 100, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0010_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0010_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_219: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets new file mode 100644 index 000000000..d711836fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets @@ -0,0 +1,446 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + Navigation,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll,NavPathStack, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, BuilderParam } from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Scroller,Scroll,ScrollState,Edge,ForEach,ScrollDirection,BarState,TextAlign,ScrollSource,OffsetResult,OnScrollEdgeCallback +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.ets + + +@Component +struct UIAttributesColorrampInterface0310 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [["rgb(0,0,225)", 0.1], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0040.ets + + +@Component +struct ActionEventCommoneventDragdefault0040 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0110.ets + + +@Component +struct UIAttributesBcakgroundSeriable0110 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 40 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:40}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes190.ets + + +@Component +struct UIAttributesTouchableInteraction190 { + scroller: Scroller = new Scroller() + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State testTextStr: string = 'test' + @State testRowStr: string = 'test' + build() { + Column() { + Column() { + Text(this.testTextStr) + .fontSize(20) + Text(this.testRowStr) + .fontSize(20) + } + .height(100) + .backgroundColor(Color.Gray) + .opacity(0.3) + Scroll(this.scroller) { + Column() { + Text("Test Text Visible Change") + .fontSize(20) + .height(200) + .margin({ top: 50, bottom: 20 } as Margin) + .backgroundColor(Color.Green) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Text isVisible: ' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Text is fully visible. currentRatio:' + currentRatio) + this.testTextStr = 'Test Text is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Text is completely invisible.') + this.testTextStr = 'Test Text is completely invisible' + } + }) + Row() { + Text('Test Row Visible Change') + .fontSize(20) + .margin({ bottom: 20 } as Margin) + } + .height(200) + .backgroundColor(Color.Yellow) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Row is fully visible.') + this.testRowStr = 'Test Row is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Row is completely invisible.') + this.testRowStr = 'Test Row is completely invisible' + } + }) + ForEach(this.arr, (item:number):void => { + Text(item.toString()) + .width('90%') + .height(150) + .backgroundColor(0xFFFFFF) + .borderRadius(15) + .fontSize(16) + .textAlign(TextAlign.Center) + .margin({ top: 10 } as Margin) + }, (item:number) => String(item)) + }.width('100%') + } + .id('UIAttributesTouchableInteraction190') + .hitTestBehavior(HitTestMode.None) + .backgroundColor(0x317aff) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onWillScroll((xOffset: number, yOffset: number, scrollState: ScrollState,scrollSource:ScrollSource): OffsetResult => { + console.info(xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge):void => { + console.info('To the edge') + }) + .onScrollStop(() => { + console.info('Scroll Stop') + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0290252.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0290252 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0290252_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0290252_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0370.ets + + +@Component +struct SubAceActionWindowWindowCustom0370 { + @Builder + builder1() { + Text('111').fontSize(50) + } + build() { + Column() { + Index0370({ builderParam1: this.builder1 }) + } + } +} +@Component +struct Index0370 { + @BuilderParam builderParam1: () => void = this.builder1 + @BuilderParam builderParam2: () => void = this.builder2 + @Builder + builder1() { + } + @Builder + builder2() { + Text('111').fontSize(50) + } + build() { + Column() { + this.builderParam1() + this.builderParam2() + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0300 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_22: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets new file mode 100644 index 000000000..a03e47194 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets @@ -0,0 +1,417 @@ +import { Entry, Component, Column,ResourceStr,$r,Menu,MenuItem,Builder,ColumnOptions,FontWeight, + MenuItemGroup,MenuItemOptions,MenuItemGroupOptions,Text,Margin +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Select,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextInputController, + Button, + TextArea, + MenuPolicy, + $r, + ClickEvent +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic3.ets + +@Component +struct buttonDynamicExample3 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Normal' + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.ets + + +@Component +struct UIAttributesRenderFit0030 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.ets + + +@Component +struct UIAttributesImageeffectInterface0490 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0330.ets + + +@Component +struct SubAceActionWindowWindowCustom0330 { + controller: TextInputController | undefined = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0480 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .width(100) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .foregroundEffect({ radius: this.radiusValue }) + .width(100) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0210.ets + + +@Component +struct ActionEventCommonEventMouseStyle0210 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0210_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0210" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0210_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.ets + + +@Component +struct UIComponentCommonattrGrayscale0140 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [-10, -10] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0420.ets + + +@Component +struct ActionEventControlCallback0420 { + @State context: string = "" + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + MenuItemGroup({ header: '小标题' } as MenuItemGroupOptions) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions).id('MenuItem') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('MenuItem'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + MenuItem({ + startIcon: $r('app.media.startIcon'), + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + } + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + } as MenuItemOptions) + } + } + build() { + Column({space: 20} as ColumnOptions) { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .id('Column') + .bindMenu(this.MyMenu) + .width('100%') + Text(this.context).margin({ top: 20 } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_220: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets new file mode 100644 index 000000000..b384e3934 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets @@ -0,0 +1,421 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + ItemAlign, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Radio, + FlexDirection +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import {Entry,Component,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign,Image,Row,List,ForEach,ListItem, +Margin,BorderOptions,DragEvent,Visibility,$r,Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent.ets + +@Component +struct Percent { + build() { + Column() { + Text('上下30%,左右-20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: '20%', right: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.ets + + +@Component +struct UIAttributesColorrampInterface0290 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SampleMultipleSelectionDrag/SampleMultipleSelectionDrag0020.ets + + +@Component +struct SampleMultipleSelectionDrag0020 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('0') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .onDragStart(undefined) + .draggable(true) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('1') + .height('90%') + .width('100%') + .backgroundColor(Color.Red) + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index: number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('2') + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .backgroundColor(Color.Green) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets + + +@Component +struct UIAttributesBackgroundInterface1350 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:-90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets + + +@Component +struct UIAttributesSelectedStyle0080 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean): void => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets + + +@Component +struct UIAttributesBackgroundInterface0330 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为100vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-10, -10], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 100, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0040.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0040 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .id('ScrollScrollbarScrolledge0040_002') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Start, { + velocity: 100000 + }) + }).id('ScrollScrollbarScrolledge0040_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0630.ets + + +@Component +struct ActionEventCommoneventDragdefault0630 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .fontColor(this.color) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.color = Color.Orange + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .fontColor(Color.Orange) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_221: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets new file mode 100644 index 000000000..0b9cb8a76 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets @@ -0,0 +1,335 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder,ForEach, + CustomDialogController,UniformDataType, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + List, + BorderOptions, + UnifiedData,ListItem,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.ets + + +@Component +struct UIAttributesModaltransitionVision0150_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet:跟手") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:50, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0120.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0120 { + @State widthValue: number = 200 + @State heightValue: number = 250 + @State str: string = '你好' + build() { + Column({ space: 5 }as ColumnOptions) { + Text(this.str).width(this.widthValue).height(this.heightValue) + .id('UIComponentCommonattrFocusenhancement0120_001') + .onHover(():void => { + this.widthValue = 80 + this.heightValue = 60 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0310.ets + + +@Component +struct ActionEventCommoneventDragdefault0310 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets + + +@Component +struct UIAttributesBackgroundInterface119 { + build() { + Column() { + Row() + .backgroundColor(Color.Transparent) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0070.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0070 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin为小数') + .focusBox({ + margin: LengthMetrics.px(0.1), + }) + Button('button margin 0') + .focusBox({ + margin: LengthMetrics.px(0), + }) + Button('button margin null') + .focusBox({ + margin: undefined, + }) + Button('button margin undefined') + .focusBox({ + margin: undefined, + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes100.ets + + +@Component +struct UIAttributesTouchableInteraction100 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction100') + .onDragLeave((): void =>{ + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction100_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + } + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_222: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets new file mode 100644 index 000000000..e4661b180 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets @@ -0,0 +1,416 @@ +import common from '@ohos.app.ability.common' + +import window from '@ohos.window'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,RowOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Padding, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + ScrollDirection, + XComponentController, + focusControl, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Direction,Divider,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_027.ets + +@Component +struct Grid_027 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .margin({ + left: 30, + right: 10, + top: 10, + bottom: 40 + } as Margin) + .padding({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Padding) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0190.ets + + +@Component +struct CommonEventDragVideo0190 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_CANCELED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0250_323.ets + + +@Component +struct UIComponentListandgridGridInterface_0250_323 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceActionEventIntercept/SubAceActionEventIntercept0100.ets + + +@Component +struct SubAceActionEventIntercept0100 { + private flag: boolean = true; + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput() + .key('SubAceActionEventIntercept0100_key1') + .onAppear(() => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key1'); + }) + .defaultFocus(true) + Button('') + .width(0) + .height(0) + .key('SubAceActionEventIntercept0100_key3') + } + .padding({ top: 20 } as Padding) + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key3'); + }) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0250.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0250 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + horVerSwitch() { + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('横竖屏切换').id('btn2').onClick((event:ClickEvent) => { + this.horVerSwitch() + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_223: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets new file mode 100644 index 000000000..bebb6d1ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets @@ -0,0 +1,426 @@ +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets + + +@Component +struct UIAttributesBackgroundInterface0290 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[0xAEE1E1,0.0],[0xD3E0DC,0.3], [0xFCD1D1,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest12.ets + +@Component +struct ZIndexDynamicModificationTest12 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 8 //text的value: 'ABC设置zIndex: -1 -2 0' + this.zIndexValueIndex = 7 //ABC设置zIndex: -1 -2 0 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.ets + + +@Component +struct UIAttributesGraphictransformationInterface0370 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1.5,centerX:"dfd",centerY:"gj"}') + Image('cat.jpg') + .width(100) + .scale({x:1.5,centerX:"dfd",centerY:"gj"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0240.ets + + +@Component +struct ActionEventCommoneventDragdefault0240 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010.ets + + +@Component +struct UIAttributesRenderFit0010 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.CENTER) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0210.ets + + +@Component +struct UIAttributesBcakgroundSeriable0210 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets + + +@Component +struct UIAttributesBackgroundInterface107 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.Y) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ClipIsTrueIndex.ets + +@Component +struct ClipExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Row() { + Image($r('app.media.startIcon')) + .width(200) + .height(100) + } + .clip(true) + .borderRadius(20) + } + .width('100%') + .margin({ top: 15 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.ets + + +@Component +struct UIAttributesModaltransitionSafearea0020 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({top: 20} as Margin) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0010 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 } as matrix4.ScaleOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x*0.5') + .id('UIAttributesGraphicTransformationSkew0010_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*0.5') + .id('UIAttributesGraphicTransformationSkew0010_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 0.5, z: 1 } as matrix4.ScaleOption); + }) + Button('z*0.5') + .id('UIAttributesGraphicTransformationSkew0010_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 0.5 } as matrix4.ScaleOption); + }) + Button('x*2') + .id('UIAttributesGraphicTransformationSkew0010_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*2') + .id('UIAttributesGraphicTransformationSkew0010_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 2, z: 1 } as matrix4.ScaleOption); + }) + Button('z*2') + .id('UIAttributesGraphicTransformationSkew0010_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 2 } as matrix4.ScaleOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + + +export const FLAG_OF_FILE_224: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets new file mode 100644 index 000000000..cfce0dc8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets @@ -0,0 +1,421 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,FlexAlign,Margin, + Scroll,Text,TextAlign,Grid,GridItem,ForEach,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,EdgeOutlineWidths +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.ets + + +@Component +struct UIAttributesImageeffectInterface0520 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0070.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0070 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth({left: 1, right: 0, top: 4, bottom: -1} as EdgeOutlineWidths) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.ets + + +@Component +struct UIAttributesImageeffectInterface0210 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(-45) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/fcocusEvent_c_rh/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0160 { + @State radius: number = 0 + @State numbers: string[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0160_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0160_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0160_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + .rowStart(1) + .rowEnd(2) + .columnStart(1) + .columnEnd(2) // 同时设置合理的行列号 + .foregroundEffect({ radius: this.radius }) + ForEach(this.numbers, (item: string,index:number) => { + GridItem() { + Text(item) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height(300) + } + } + .id('UIComponentCommonattrForegroundEffect0160_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface60.ets + + +@Component +struct AceActionEventCommoneventClickInterface60 { + @State text:string='sourceTool = '; + @State number1:number=0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text+this.number1) + .id('AceActionEventCommoneventClickInterface60') + .onClick((event: ClickEvent)=> { + this.number1 = event.sourceTool; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0040_342.ets + + +@Component +struct UIComponentListandgridGridEvents_0040_342 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragMove( (event: ItemDragInfo, itemIndex: number, insertIndex: number) => { + this.text1 = 'onItemDragMove'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0070.ets + + +@Component +struct UIActtonEventComdneventDragInput0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0070_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDragInput0070_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_225: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets new file mode 100644 index 000000000..43d49195c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets @@ -0,0 +1,347 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + HorizontalAlign,ScrollDirection,Counter,TextAlign,Button,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest01.ets + +@Component +struct ZIndexTest01 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization128.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization128 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0090 { + @State radiusValue: number = 0; + @State value1: number = 0; + @State value2: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Counter() { + Text(this.value1.toString()) + } + .onInc(():void => { + this.value1++ + }) + .onDec(():void => { + this.value1-- + }) + Counter() { + Text(this.value2.toString()) + } + .foregroundEffect( + { radius: this.radiusValue } + ) + .onInc(():void => { + this.value2++ + }) + .onDec(():void => { + this.value2-- + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.ets + + +@Component +struct UIAttributesImageeffectInterface0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(-5) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_226: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets new file mode 100644 index 000000000..05294f1ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets @@ -0,0 +1,436 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,HorizontalAlign,animateTo,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + QRCode,HorizontalAlign,ScrollDirection,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0030 { + @State group: boolean | undefined = false; + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(this.group) + .justifyContent(FlexAlign.Center) + Button('Switch') + .onClick((e:ClickEvent) => { + this.group = undefined; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0120.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0120 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0390 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + QRCode('我是二维码').width(140).height(140) + QRCode('我是二维码').width(140).height(140) + .margin({ top: 30 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0390.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0390 { + @State toggle: boolean = true + build() { + Column() { + Button('').margin(50) + .renderFit(RenderFit.TOP_RIGHT) + .id('buttonId') + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + .onClick((e:ClickEvent) => { + animateTo({ duration: 2000, curve: Curve.Linear }, () => { + this.toggle = !this.toggle + }) + }) + }.width('100%').height('100%').alignItems(this.toggle ? HorizontalAlign.Start : HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0100.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0100 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets + + +@Component +struct UIAttributesBackgroundInterface0600 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "3.14rad", + end: "6.28rad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0040 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0040_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0040_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0260.ets + + +@Component +struct ActionEventCommonEventMouseStyle0260 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_FORBID; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0260_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0260" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0260_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0210.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0210 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(5) + .borderWidth(5) + .borderColor(Color.Yellow) + .borderRadius(10) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.ets + + +@Component +struct UIAttributesModaltransitionInteration0060 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.CENTER, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_227: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets new file mode 100644 index 000000000..96ba7b424 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets @@ -0,0 +1,402 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,DragPreviewMode,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderStyle, + GestureGroup, + GestureMode, + LongPressGesture, + PanGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { PromptAction } from '@ohos.arkui.UIContext' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + FontWeight +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnWillScrollCallback,OnScrollCallback,ComputedBarAttribute,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXonhofOnscroll/UIComponentListandgridXonhofOnscroll0220134528.ets + + +@Component +struct UIComponentListandgridXonhofOnscroll0220134528 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State msgInfo1: string = 'inital value'; + @State msgInfo2: string = 'inital value'; + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.msgInfo2); + Text(this.msgInfo1); + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.msgInfo1 = '2.trigger onDidScroll' + } as OnScrollCallback | undefined) + .onWillScroll((scrollOffset: number, scrollState: ScrollState): ScrollResult => { + this.msgInfo2 = '1.trigger onWillScroll' + } as OnWillScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + .id('UIComponentListandgridXonhofOnscroll0220134528'); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('UIComponentListandgridXonhofOnscroll0220134528_001'); + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes140.ets + + +@Component +struct UIAttributesTouchableInteraction140 { + @State isShow: boolean = true + @State changeAppear: string = '点我卸载挂载组件' + private myText: string = 'Text for onAppear' + build() { + Column() { + Button(this.changeAppear) + .id('UIAttributesTouchableInteraction140') + .hitTestBehavior(HitTestMode.None) + .onClick((): void => { + this.isShow = !this.isShow + }).margin(15) + if (this.isShow) { + Text(this.myText).fontSize(26).fontWeight(FontWeight.Bold) + .onAttach((): void => { + new PromptAction().showToast({ + message: 'The text is shown', + duration: 2000, + bottom: 500 + }) + }) + .onAppear(() =>{ + this.myText = 'Text for onAppear'; + }) + .onDetach((): void => { + new PromptAction().showToast({ + message: 'The text is hidden', + duration: 2000, + bottom: 500 + }) + }) + .onDisAppear(() =>{ + this.myText = 'Text for DisAppear'; + }) + } + }.padding(30).width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0020 { + @State hei:number = 150; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .clip(true) + .height(100) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes70.ets + + +@Component +struct UIAttributesTouchableInteraction70 { + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction70') + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++; + } + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + }) + ) + .onCancel(() => { + }) + ) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0290.ets + + +@Component +struct UIActionEventCommonEventDragInterface0290 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('./cat.jpg') + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO,numberBadge:2}) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + event.setResult(DragResult.DROP_ENABLED); + }) + .onDragEnd((event: DragEvent) => { + console.log("onDragEnd event.getResult()"+event.getResult()) + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + console.log("ondrop udmf data"); + event?.setResult(DragResult.DROP_ENABLED); + this.dragSuccess = true + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_228: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets new file mode 100644 index 000000000..07d882e45 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets @@ -0,0 +1,410 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,PageTransitionEnter,RouteType,PageTransitionExit,Image,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0100.ets + + +@Component +struct UIComponentBackgroundimage0100 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0230.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0230 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse002.ets + + +@Component +struct UIComponentCommonattrClearfocuse002 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0420.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0420 { + @State scale1: number = 1 + @State opacity1: number = 1 + pageTransition() { + PageTransitionEnter({ duration: 1200, curve: Curve.Linear }) + .onEnter((type: RouteType, progress: number):void => { + if (type == RouteType.Push||type == RouteType.Pop) { + this.scale1 = progress + this.opacity1 = progress + } + }) + PageTransitionExit({ duration: 1200, curve: Curve.Ease }) + .onExit((type: RouteType, progress: number):void => { + if (type == RouteType.Push) { + this.scale1 = 1 - progress + this.opacity1 = 1 - progress + } + }) + } + build() { + Column() { + Image('icon.png').width(200) + .id('imageId') + .onClick((e:ClickEvent)=>{ + const routerInstance = AppStorage.get("router", Type.of(new Router())) as Router + routerInstance.pushUrl({url:'testability/pages/UIAttributesComponentContentFillingModeInterface/0410'}) + }) + }.width('100%').renderFit(RenderFit.BOTTOM) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080.ets + + +@Component +struct UIAttributesColorRampAny0080 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .radialGradient({ + center:[50,50], + radius:60, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0150.ets + + +@Component +struct ActionEventCommoneventDragInput0150 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0510 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("string:“!@#3%^&*()_+”",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets + + +@Component +struct UiAttributesFloatingLayerInterface0180 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur15.ets + +@Component +struct linearGradientBlur15 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[-1, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0190.ets + + +@Component +struct UIActtonEventComdneventDracInterface0190 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0190_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0190_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_229: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets new file mode 100644 index 000000000..0f96b70c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets @@ -0,0 +1,354 @@ +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, Text, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,ShadowOptions,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.ets + + +@Component +struct UIAttributesColorrampInterface0350 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Botton') + .width(400) + .height(60) + .linearGradient({ + colors:[] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0050 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets + + +@Component +struct UIAttributesBackgroundInterface110 { + build() { + Column() { + Row() + .backgroundColor(Color.Black) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0170.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0170 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .visibility(Visibility.Visible) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0160 { + @State textPosition: Position = { x: 0, y: 150 } as Position; + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.textPosition = { x: 100, y: 150 } as Position + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .margin({left:100,top:50} as Margin) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .fontSize(15) + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row1.ets + +@Component +struct Row1Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(5) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets + + +@Component +struct UIAttributesBackgroundInterface0450 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets + + +@Component +struct UIAttributesBackgroundInterface0110 { + build() { + Column() { + Row() { + Text("DARK") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.DARK}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest03.ets + +@Component +struct ZIndexTest03 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .zIndex(-3) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(-1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(999999) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9999) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(10) + .width('15%').height('20%').backgroundColor(0x3300FF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(8) + .width('30%').height('30%').backgroundColor(0xFF1493).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(6) + .width('45%').height('45%').backgroundColor(0x7FFF00).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(4) + .width('60%').height('60%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('75%').height('75%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('90%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.Bottom) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + + +export const FLAG_OF_FILE_23: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets new file mode 100644 index 000000000..a9c17a06d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets @@ -0,0 +1,382 @@ +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,Callback,DragResult,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets + + +@Component +struct UIAttributesBackgroundInterface1470 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.ets + + +@Component +struct UIAttributesColorRampBlurGradient0150 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(60, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0020.ets + + +@Component +struct UIAttributesFocuscontrolInterface0020 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("DefaultFocus(true)").defaultFocus(true) + Column({ space: 20 } as ColumnOptions) { + Button("你好") + } + Column({ space: 20 } as ColumnOptions) { + Button("你好啊") + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0270.ets + + +@Component +struct UIActionEventCommonEventDragInterface0270 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image("./cat.jpg") + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0010.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0010 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0010_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('点击:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0010_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0010_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0300_345.ets + + +@Component +struct UIComponentListandgridGridInterface_0300_345 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(undefined) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0040.ets + + +@Component +struct ActionEventCommoneventDragText0040 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(1, 4) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_230: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets new file mode 100644 index 000000000..09627c187 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets @@ -0,0 +1,386 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,TextInput,Button,Column,Margin +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Builder, Image } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + px2vp,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.ets + + +@Component +struct UIAttributesModaltransitionVision0030 { + @State isShow: boolean = false + @State detents: number = 0; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`当前挡位:${this.detents}`) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[400, 500, 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + onDetentsDidChange: (detents:number):void => { + this.detents = Math.floor(px2vp(detents)); + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets + + +@Component +struct UIAttributesBackgroundInterface0480 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0480 { + @Builder + overlayBuilder(){ + Image('icon.png') + .height("50%") + .width("50%") + } + build() { + Column() { + Image("2.png") + .height("100vp") + .width("100vp") + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets + + +@Component +struct UIAttributesBackgroundInterface0610 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "90deg", + end: "270deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0150 { + @State rotateAngle: number = 0 + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.rotateAngle = 90 + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .fontSize(50) + .margin({left:100,top:50} as Margin) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .rotate({ angle: this.rotateAngle }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.ets + + +@Component +struct UIAttributesColorrampInterface0700 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[-10,-10], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic7.ets + +@Component +struct buttonDynamicExample7 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button7') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0010.ets + + +@Component +struct ActionEventCommoneventClickDfx0010 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0010") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0100.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0100 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('zIndex(1)') + .visibility(Visibility.Visible) + .zIndex(1) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(2)') + .visibility(Visibility.Visible) + .zIndex(2) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(3)') + .visibility(Visibility.Visible) + .zIndex(3) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterWebsearchEventCallback/ActionEventRegisterWebsearchEventCallback010.ets + + +@Component +struct ActionEventRegisterWebsearchEventCallback010 { + build(){ + Column(){ + TextInput().width(300).height(50).margin({top:30} as Margin) + .id("websearchEventCallback010") + Button("获焦").margin({top:30} as Margin) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.ets + + +@Component +struct UIAttributesModaltransitionVision0280 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_231: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets new file mode 100644 index 000000000..86f6b7a01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets @@ -0,0 +1,393 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Flex,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, FlexOptions,ListOptions, BorderOptions,ScrollState,FlexWrap} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + ForEach, + EdgeEffect, + ScrollSnapAlign,TripleLengthDetents +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets + + +@Component +struct UIAttributesImageEffectProjection0200 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:-50, y:-50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0060 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0060_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0060_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.ets + + +@Component +struct UIAttributesColorrampInterface0380 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + radius: 20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_035.ets + +@Component +struct Grid_035 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12') + scroller1: Scroller = new Scroller() + @State scrollbar:BarState=BarState.Off + @State columnsTemplate: string = '1fr 1fr 2fr' + @State columnsTemplateNum: number = 0 + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .columnsTemplate(this.columnsTemplate) + .scrollBar(this.scrollbar) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("repeat(auto-fit, 10%)") + .id('repeat(auto-fit, 10%)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 10%)' + }) + } + ListItem(){ + Button("repeat(auto-fit, 90px)") + .id('repeat(auto-fit, 90px)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 90px)' + }) + } + ListItem(){ + Button("repeat(auto-fit, -1)") + .id('repeat(auto-fit, -1)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, -1)' + }) + } + ListItem(){ + Button("1fr 0fr 1fr") + .id('101fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr 0fr 1fr' + }) + } + ListItem(){ + Button("1fr a 1fr") + .id('1a1fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr a 1fr' + }) + } + ListItem(){ + Button('On') + .id('On') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.On + }) + } + ListItem(){ + Button('Off') + .id('Off') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Off + }) + } + ListItem(){ + Button('Auto') + .id('Auto') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Auto + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.ets + + +@Component +struct UIAttributesImageeffectInterface0510 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton139.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton139 { + @State isShow:boolean = false + scroller: Scroller = new Scroller; + private arr: Array = new Array(0, 1) + @Builder myBuilder() { + Column() { + Scroll(this.scroller) { + Column() { + ForEach(this.arr, (item: number) => { + Button("content1") + .margin(10) + .fontSize(20) + }, (item: number,index:number) => String(item)) + }.width('100%').backgroundColor(0xDCDCDC) + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + .width('100%') + } + build() { + Column() { + TextInput({ placeholder: 'input ...' }) + .width(380) + .height(60) + Button("transition modal 1") + .id('UlComponentCommonattrlfocusoptimizatton_139_1') + .onClick((): void => { + this.isShow = true + }) + .focusable(false) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()},{ + detents:[SheetSize.MEDIUM as SheetSize, SheetSize.LARGE as SheetSize, SheetSize.FIT_CONTENT] as TripleLengthDetents, + backgroundColor:Color.Gray, + blurStyle:BlurStyle.Thick, + showClose:true, + title:{title:"title", subtitle:"subtitle"}, + preferType: SheetType.CENTER, + shouldDismiss:((sheetDismiss: SheetDismiss): void=> { + console.log("bind sheet shouldDismiss") + sheetDismiss.dismiss() + }) + }) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_038.ets + +@Component +struct Grid_038 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = 0 + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0; i < 100; i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('maxCount=0') + .onClick((event:ClickEvent) => { + this.maxCount = 0 + }) + Text() + .width(10) + .height(10) + .key('maxCount=2') + .onClick((event:ClickEvent) => { + this.maxCount = 2 + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(90) + .height(50) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .scrollBar(BarState.On) + .scrollBarWidth(10) + .scrollBarColor(Color.Red) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } +} + + +export const FLAG_OF_FILE_232: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets new file mode 100644 index 000000000..166a3bce8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets @@ -0,0 +1,431 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Blank,GridDirection,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0110344.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0110344 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute|undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= "trigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0110344'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0110193.ets + + +@Component +struct UIComponentListandgridXommonScrollto0110193 { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('rowsTemplate、columnsTemplate都不设置layoutDirection、maxcount、minCount、cellLength才生效') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string,index: number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr ') + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: '5%', right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.ets + + +@Component +struct UIComponentCommonattrGrayscale0030 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0050.ets + + +@Component +struct ActionEventCommoneventDragdefault0050 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0040 { + @Builder + OverlayNode() { + Column() { + Image($r('app.media.startIcon')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode1() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode2() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode2() { + Column() { + Image($r('app.media.startIcon')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode3() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode3() { + Column() { + Image($r('app.media.startIcon')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode4() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode4() { + Column() { + Image($r('app.media.startIcon')) + .width(270) + .height(270) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode5() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(270).height(270).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode5() { + Column() { + Image($r('app.media.startIcon')) + .width(250) + .height(250) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode6() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(250).height(250).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode6() { + Column() { + Image($r('app.media.startIcon')) + .width(230) + .height(230) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode7() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(230).height(230).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode7() { + Column() { + Image($r('app.media.startIcon')) + .width(210) + .height(210) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode8() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(210).height(210).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode8() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode9() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode9() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_233: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets new file mode 100644 index 000000000..61c0eee26 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets @@ -0,0 +1,402 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,AttributeModifier,GridAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment,Row,RowOptions,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,AnimationStatus,ResourceStr,ResourceStr,$r,ImageAnimator,FillMode,Margin, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentNumber.ets + +@Component +struct ContentNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 Green true").fontSize(11).id('ContentNumber2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0x008000, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentNumber3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 Yellow ture").fontSize(11).id('ContentNumber4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0xffff00, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0140 { + @State isDialogVisible: boolean = false; + onButtonClick(){ + this.isDialogVisible = true + if (this.isDialogVisible == true) { + } + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:-100} as Margin) + }.width('100%').height(400).backgroundColor(Color.Green) + Button("animation") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets + + +@Component +struct UIAttributesBackgroundInterface089 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "280px" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0100 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.HEAVY }) + .id('UIAttributesClivkreboundeffectInterface0100_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0060.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0060 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.ets + + +@Component +struct UIAttributesColorrampInterface0660 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[this.centerX,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.ets + + +@Component +struct UIAttributesColorrampInterface0880 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [["#0000FF", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0190.ets + + +@Component +struct UIAttributesFocuscontrolInterface0190 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 }as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0300.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('切换主轴').id('btn2').onClick((event:ClickEvent) => { + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_234: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets new file mode 100644 index 000000000..318521ace --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets @@ -0,0 +1,388 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu,MenuItemOptions,$r,MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,ToggleType,Toggle,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0020.ets + + +@Component +struct ActionEventCommoneventDragText0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur12.ets + +@Component +struct linearGradientBlur12 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Top } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0190.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0190 { + @State targetText: string = 'Drag Text'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({ space: 20 } as ColumnOptions) { + Column({ space: 15 } as ColumnOptions) { + Text('start Drag') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + }) + } + .width('100%') + .height(300) + Column({ space: 15 } as ColumnOptions) { + Text('Drag Target Area') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn_1') + .width('100%') + .height(100) + .padding({ top: 15, left: 15 } as Padding) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: UDC.PlainText = records[0] as UDC.PlainText; + this.abstractContent = plainText.textAbstract as string; + this.textContent = plainText.textContent; + event.setResult(DragResult.DRAG_CANCELED); + }) + }) + } + .width('100%') + .height(300) + } + .height('100%') + .width('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0040 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0580 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0580_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0580_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0580_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column({ space: 10 } as ColumnOptions) { + Text('type: Toggle Switch') + .fontSize(20) + .textAlign(TextAlign.Center) + .fontColor(Color.Grey) + .width('100%') + Toggle({ + type: ToggleType.Switch, + isOn: true + }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .foregroundEffect({ radius: this.radius }) + } + } + } + .id('UIComponentCommonattrForegroundEffect0580_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets + + +@Component +struct UiAttributesFloatingLayerInterface0060 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton154.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton154 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_154_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_154_1') + .bindMenu(this.MyMenu) + } +} + + +export const FLAG_OF_FILE_235: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets new file mode 100644 index 000000000..d1ce02e07 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets @@ -0,0 +1,401 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Hyperlink,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + PanGestureOptions, + PanGesture,BorderOptions,PanDirection +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets + + +@Component +struct UIAttributesBackgroundInterface1450 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0240.ets + + +@Component +struct ActionEventCommonEventMouseStyle0240 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CROSS; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0240_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0240" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0240_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes250.ets + + +@Component +struct UIAttributesTouchableInteraction250 { + @State value: string = ''; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All }); + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction250') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.value = 'onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0050.ets + + +@Component +struct ActionEventCommonEventMouseStyle0050 { + build() { + Column({ space: 50 } as ColumnOptions) { + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_01") + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.RESIZE_LEFT_RIGHT); + } else { + cursorControl.restoreDefault(); + } + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0210.ets + + +@Component +struct CommonEventDragVideo0210 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_SUCCESSFUL) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_236: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets new file mode 100644 index 000000000..e241cc418 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets @@ -0,0 +1,394 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Radio,FlexAlign,FontWeight,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,SheetSize,ClickEvent,List, +$$,ListItem,Resource,ScrollSizeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Blank,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + Visibility,ClickEvent,animateTo,PlayMode,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets + + +@Component +struct UiAttributesFloatingLayerInterface0140 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.TopStart}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.ets + + +@Component +struct UIAttributesGraphictransformationInterface0260 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .translate({x:"100px"}) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.ets + + +@Component +struct UIAttributesColorrampInterface0060 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Top + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 1000, + iterations: 1, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.Hidden + this.directionY=GradientDirection.Bottom + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Top + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.ets + + +@Component +struct UIAttributesModaltransitionInteration0010 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[ SheetSize.MEDIUM, SheetSize.LARGE ] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0030 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('我是Button') + Button('我是Button') + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets + + +@Component +struct UIAttributesBackgroundInterface0620 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.ets + + +@Component +struct UIAttributesModaltransitionVision0770 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] as number[]; + @Builder + myBuilder() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + scrollSizeMode: ScrollSizeMode.CONTINUOUS + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets + + +@Component +struct UIAttributesBackgroundInterface120 { + build() { + Column() { + Row() + .backgroundColor(Color.White) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0110 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0110_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0400 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0400_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0400_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0400_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Radio({ value: 'Radio', group: 'radioGroup' }) + .checked(true) + .height(50) + .width(50) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0400_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets + + +@Component +struct UIAttributesBackgroundInterface118 { + build() { + Column() { + Row() + .backgroundColor(Color.Red) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_237: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets new file mode 100644 index 000000000..167de7b7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets @@ -0,0 +1,423 @@ +import { Entry, Component, Column,Text,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0150.ets + + +@Component +struct UIAttributesBcakgroundSeriable0150 { + @State top: number = 150 + @State bottom: number = 50 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0450.ets + + +@Component +struct ActionEventCommonEventMouseStyle0450 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0450_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0450" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0450_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.ets + + +@Component +struct UIAttributesColorRampAny0060 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .linearGradient({ + direction:GradientDirection.Left, + repeating:true, + colors:[[0xff0000,0.0], [0x0000ff,0.3], [0xffff00,0.5]] + } as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.ets + + +@Component +struct UIAttributesColorrampInterface0870 { + build() { + Column({ space: 4 } as ColumnOptions) { + Column() { + } + .backgroundColor(Color.Green) + .border({ width: 3 }) + .width(100) + .height(100) + .sweepGradient({ + center: [100, 50], + colors: [["#FF0000", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 180, + end: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0040.ets + + +@Component +struct ActionEventCommoneventClickDfx0040 { + @State num2:string = "" + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_1") + Button("按钮2点击300").onClick((event: ClickEvent) => { + this.num2 = "点击2" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_2") + Text(this.num) + Text(this.num2) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0270.ets + + +@Component +struct ActionEventCommoneventDragCard0270 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = false; + }) + .id('ActionEventCommoneventDragCard0270') + .border({width:1}) + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0440.ets + + +@Component +struct ActionEventCommonEventMouseStyle0440 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0440_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0440" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0440_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0020.ets + + +@Component +struct ActionEventControlCallback0020 { + @State context: string = "hello" + build() { + Column(){ + Text(this.context) + .fontSize(32) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } +} + + +export const FLAG_OF_FILE_238: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets new file mode 100644 index 000000000..ac2477996 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets @@ -0,0 +1,390 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, + CustomDialogController,DialogAlignment,ClickEvent,CustomDialogControllerOptions,TranslateOptions, + PanDirection,PanGestureHandlerOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,OnScrollCallback, + CaretOffset,TextInputController,TextInput,ItemAlign,EdgeEffect,ComputedBarAttribute,TextInputOptions,Callback,ResourceStr, + Resource,EditableTextOnChangeCallback +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets + + +@Component +struct UiAttributesFloatingLayerInterface0020 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.") + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInteraction/UIComponentListandgridGridInteraction0010237.ets + + +@Component +struct UIComponentListandgridGridInteraction0010237 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State text: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } as CaretOffset + controller: TextInputController = new TextInputController() + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller } as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('90%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .onChange((value: string) => { + this.text = value + } as EditableTextOnChangeCallback) + }.alignSelf(ItemAlign.Start) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(6) + .rowsGap(6) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring, { alwaysEnabled: true }) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(300) + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets + + +@Component +struct UIAttributesBackgroundInterface0630 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets + + +@Component +struct UIAttributesImageEffectProjection0110 { + build() { + Column() { + Text('Hello World') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .fontColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column3.ets + +@Component +struct Column3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .cellLength(500) + .minCount(3) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0320.ets + + +@Component +struct UIAttributesBcakgroundSeriable0320 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragWay/ActionEventCommoneventDragWay0020.ets + + +@Component +struct ActionEventCommoneventDragWay0020 { + @State info: string[] = [] as string[]; + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + build() { + Column({ space: 5} as ColumnOptions) { + Button('0020') + .height("50") + .id('button') + .onClick((e: ClickEvent) => { + }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(():void => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightString.ets + +@Component +struct HightString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: '5000' , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition '300fp'").fontSize(11).id('HightString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: '300fp', dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close DEFAULT").fontSize(11).id('HightString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition '300vp'").fontSize(11).id('HightString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:'300vp' , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:'900px' , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_239: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets new file mode 100644 index 000000000..d03f195e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets @@ -0,0 +1,449 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import image from '@ohos.multimedia.image'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + PlaybackSpeed,Image,DragBehavior,DragEvent,DragResult,DragItemInfo,CustomBuilder,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl,Button, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + Text, + $r, + Builder, + Color +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_System.ets + +@Component +struct ThemeColorMode_System { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0130 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomEnd}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0030 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0030_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0030_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.ets + + +@Component +struct UIAttributesColorrampInterface0830 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: 0, + end: 90, + rotation: 380 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0530.ets + + +@Component +struct SubAceActionWindowWindowCustom0530 { + @State state1: string = '111' + build() { + Column() { + Index0530({ link1: this.state1 }) + } + } +} +@Component +struct Index0530 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0430.ets + + +@Component +struct ActionEventCommonEventMouseStyle0430 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0430_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0430" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0430_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0110 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0110_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.ets + + +@Component +struct UIAttributesImageeffectInterface0660 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0240.ets + + +@Component +struct UIActionEventCommonEventDragInterface0240 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap|undefined = undefined + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image("./cat.jpg") + .id('startDragID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent):() => void => { + }) + .onDragEnd((event:DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + } as Callback) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('dragOnDropID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .onDragMove((event:DragEvent) => { + event.dragBehavior = DragBehavior.COPY + } as Callback) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event:DragEvent) => { + event.setResult(DragResult.DRAG_CANCELED) + } as Callback) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_24: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets new file mode 100644 index 000000000..1f7988fda --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets @@ -0,0 +1,412 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import prompt from '@system.prompt'; + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Row,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Visibility,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + ScrollDirection,Button,ClickEvent,Stack,Text, + DataPanel,Color,DataPanelType,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.ets + + +@Component +struct UIAttributesImageeffectInterface0570 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets + + +@Component +struct UIAttributesBackgroundInterface0320 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为60vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 60, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0100857.ets + + +@Component +struct UIComponentListandgridXommonSmooth0100857 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0100857') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0100857_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0100857_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.ets + + +@Component +struct UIAttributesImageeffectInterface0420 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: 50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0100 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }) + .width(168) + .height(168) + .foregroundEffect({ radius: this.radiusValue }) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0040.ets + + +@Component +struct UIComponentPreventdefault0040 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0040") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.ets + + +@Component +struct UIAttributesImageeffectInterface0120 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_034.ets + +@Component +struct columnsTemplate1 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10') + scroller1: Scroller = new Scroller() + @State columnsGap: number = 10 + @State rowsGap: number = 10 + @State Visibility:Visibility=Visibility.Visible + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + GridItem(){ + Text('TopItem') + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .visibility(this.Visibility) + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + Row(){ + Button('Hidden') + .id('Hidden') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Hidden + }) + Button('Visible') + .id('Visible') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Visible + }) + Button('None') + .id('None') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.None + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.ets + + +@Component +struct UIAttributesImageeffectInterface0500 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0160.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0160 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_240: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets new file mode 100644 index 000000000..1d0aace78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets @@ -0,0 +1,382 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Padding, + ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, + Visibility,ClickEvent,animateTo,PlayMode,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Navigation,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Radio,RadioIndicatorType +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0400.ets + + +@Component +struct ActionEventControlCallback0400 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Radio({ value: 'Radio1', group: 'radioGroup', + indicatorType:RadioIndicatorType.TICK + }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0010.ets + + +@Component +struct ActionEventCommonEventMouseStyle0010 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput({ text: "TextInput1" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_01") + .type(InputType.Password) + TextInput({ text: "TextInput2" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_02") + .type(InputType.Password) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_POINTING); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0310 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundUltraThick.ets + +@Component +struct BlurStyle_BackgroundUltraThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets + + +@Component +struct UiAttributesFloatingLayerInterface0080 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0050 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0020.ets + + +@Component +struct ActionGestureRegister0020 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.ets + + +@Component +struct UIAttributesImageeffectInterface0410 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: -50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0090 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=-inf') + .id('UIAttributesGraphicTransformationSkew0090_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(-Infinity, 0); + }) + Button('y=-inf') + .id('UIAttributesGraphicTransformationSkew0090_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, -Infinity); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.ets + + +@Component +struct UIAttributesColorrampInterface0070 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Bottom + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.directionY=GradientDirection.Top + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Bottom + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0010.ets + + +@Component +struct UIComponentPreventdefault0010 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0010") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_241: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets new file mode 100644 index 000000000..bf5d0c66e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets @@ -0,0 +1,472 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + $r, + MenuItem, + MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,GridLayoutOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + Image, + FlexAlign, + Button, + ObscuredReasons, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0030 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().rotate({ x: 0, y: 0, z: 0, angle: 0 } as matrix4.RotateOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('y+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('z+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: 45 } as matrix4.RotateOption); + }) + Button('x+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('y+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('z+∠45') + .id('UIAttributesGraphicTransformationSkew0030_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: -45 } as matrix4.RotateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.ets + + +@Component +struct UIAttributesOutlinewidth0010 { + build() { + Column() { + Text('outlineWidth测试') + .outlineWidth({ + left: 20, + right: 20, + top: 20, + bottom: 20 + } as EdgeOutlineWidths) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.ets + + +@Component +struct UIAttributesGraphictransformationInterface0240 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('translate {x:"sd30",y:"sd30",z:"sd30"}') + Image('cat.jpg') + .width(400) + .translate({x:"sd30",y:"sd30",z:"sd30"} as TranslateOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets + + +@Component +struct UIAttributesBackgroundInterface0690 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Center) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0100.ets + + +@Component +struct ActionEventCommoneventDragdefault0100 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets + + +@Component +struct UIComponentMediaImageMask0010 { + @State borderW: number = 1; + @State borderC: number = Color.White; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('change border') + .onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + }).id('mask0010_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.ets + + +@Component +struct UIAttributesColorrampInterface0130 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + direction: GradientDirection.Bottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0260_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0260_891 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsGap(-1) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.ets + + +@Component +struct UIAttributesImageeffectInterface0340 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: -10 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton159.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton159 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_159_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_159_1') + .bindMenu(this.MyMenu) + } +} + + +export const FLAG_OF_FILE_242: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets new file mode 100644 index 000000000..11f764da0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets @@ -0,0 +1,351 @@ +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Flex, + Builder +} from '@ohos.arkui.component'; + +import { + Entry, + ImageFit, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Color,DragEvent,Margin,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,EffectComponent,Divider} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0460 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button") + .id("changeTextColor0460") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + .margin({top:30} as Margin) + }.height(300) + .backgroundColor(Color.Orange) + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/UseEffectIndex.ets + +@Component +struct UseEffectExample { + @State use_effect1_: boolean = true + @State use_effect2_: boolean = false + build() { + Column() { + EffectComponent() { + Column({ space: 20 } as ColumnOptions) { + Text("Normal text with useEffect1") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect1_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Text("Normal text with useEffect2") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect2_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Divider() + Button('Change useEffect1 ' + this.use_effect1_) + .id('button_auto_updateEffect1') + .onClick((event:ClickEvent) => { + if (this.use_effect1_) { + this.use_effect1_ = false + } else { + this.use_effect1_ = true + } + }) + Button('Change useEffect2 ' + this.use_effect2_) + .id('button_auto_updateEffect2') + .onClick((event:ClickEvent) => { + if (this.use_effect2_) { + this.use_effect2_ = false + } else { + this.use_effect2_ = true + } + }) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0140.ets + + +@Component +struct UIActtonEventComdneventDracInterface0140 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0140_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0140_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0290.ets + + +@Component +struct ActionEventCommoneventDragdefault0290 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .margin({top:200} as Margin) + .id('txt2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0150 { + @State color1: Color = Color.Red; + @State color2: Color = Color.Red; + @Builder + OverlayNode() { + Column() { + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color1).onClick((e:ClickEvent) => { + if (this.color1 == Color.Red) { + this.color1 = Color.Blue; + } else { + this.color1 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_001') + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color2).onClick((e:ClickEvent) => { + if (this.color2 == Color.Red) { + this.color2 = Color.Blue; + } else { + this.color2 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_002') + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0110 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + + +export const FLAG_OF_FILE_243: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets new file mode 100644 index 000000000..0c0b8076b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets @@ -0,0 +1,389 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ItemAlign, + ObscuredReasons, + FlexDirection, + Radio +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import {BusinessError} from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.ets + + +@Component +struct UIAttributesColorrampInterface0340 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["AAAEYU",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0150 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets + + +@Component +struct UIAttributesBackgroundInterface1460 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.None, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.ets + + +@Component +struct UIAttributesColorrampInterface0710 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0210.ets + + +@Component +struct ActionEventCommoneventDragImage0210 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.chuan'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.ets + + +@Component +struct UIAttributesRenderFit0060 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets + + +@Component +struct UIAttributesSelectedStyle0090 { + @State isChecked: boolean = true; + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(this.isChecked) + .height(50) + .width(50) + .onChange((isChecked: boolean) :void=> { + console.log('Radio status is ' + isChecked) + } ) + Button('Click') + .id('UIAttributesSelectedStyle0090') + .onClick((e: ClickEvent) => { + this.isChecked = false; + }) + } + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_three.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button10', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('buttonxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .margin({top:10} as Margin) + Button('button11', { type: ButtonType.Normal,stateEffect:true}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button11') + .margin({top:10} as Margin) + Button('button12', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button12') + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.ets + + +@Component +struct UIAttributesModaltransitionVision0190 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:'100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur1.ets + +@Component +struct linearGradientBlur1 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(0, { fractionStops: [[0,0]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + + +export const FLAG_OF_FILE_244: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets new file mode 100644 index 000000000..fce3909fe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets @@ -0,0 +1,401 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextPicker,FontWeight, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,$$,SheetSize,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_029.ets + +@Component +struct Grid_029 { + scroller1: Scroller = new Scroller() + @State Number: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8') + @State layoutOptions: GridLayoutOptions = { + regularSize: [1.2555, 1], + irregularIndexes: [3, 8], //设置第几个item占一整行 + onGetIrregularSizeByIndex:(index:number):[number,number] => { + return [2,2] + } + } as GridLayoutOptions + build() { + Scroll() { + Column() { + Grid(this.scroller1, this.layoutOptions) { + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text("N" + day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .focusable(true) + }.size({ width: "100%", height: 50 }).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .height(500) + .width("95%") + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .margin(10) + .onScrollIndex((first: number,last: number) => { + console.info("XXX Grid1 firstindex: " + String(first) + ", lastindex: " + String(last)) + }) + .onScrollStart(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStart`) + }) + .onScrollStop(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStop`) + }) + .onReachStart(() => { + console.log(`XXX Grid1 Swipe onReachStart`) + }) + .onReachEnd(() => { + console.log(`XXX Grid1 Swipe onReachEnd`) + }) + } + .width('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0150.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0150 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0050.ets + + +@Component +struct ActionEventCommoneventClickDfx0050 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0050") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.ets + + +@Component +struct UIAttributesTransparencyInterface0050 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:1') + .onClick((e:ClickEvent) => { + this.opacityValue = 1; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0710.ets + + +@Component +struct ActionEventCommoneventDragdefault0710 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽篇章文本\n可拖拽篇章文本可拖拽篇章文本可拖拽篇章文\n本可拖拽篇章文本可拖拽篇章文本可拖' + + '拽篇章文\n本可拖拽篇章文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.ets + + +@Component +struct UIAttributesModaltransitionVision0500 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: false, + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0220.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0220 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0550 { + private select: number = 1 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4'] as string[] + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0550_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0550_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0550_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextPicker({ + range: this.fruits, + selected: this.select + }) + .onChange((value: string | string[], index: number | number[]):void => { + console.info('Picker item changed, value: ' + value + ', index: ' + index) + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0550_004') + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_245: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets new file mode 100644 index 000000000..420f1620d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets @@ -0,0 +1,461 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,DragBehavior,DragItemInfo,$r,LongPressGesture,DragResult, + Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,FontWeight,Text,VerticalAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0030 { + build() { + Column({space:20} as ColumnOptions) { + Column() { + Column({space:10} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + } + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.ets + + +@Component +struct UIAttributesColorrampInterface0140 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.LeftBottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignltems/UIComponentGridAlignltems0350.ets + +@Component +struct UIComponentGridAlignltems0350 { + @State data: Array = new Array(); + @State items: Array = new Array(); + scroller: Scroller = new Scroller(); + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.data.push(String(i)) + this.items.push(String(this.getSize())) + } + } + getSize() { + let ret = Math.floor(Math.random() * 5) + return 5 + } + build() { + Column({ space: 10 } as ColumnOptions) { + Text('Grid alignItems示例代码') + Grid(this.scroller) { + ForEach(this.data, (item: string, index:number) => { + GridItem() { + Column() { + Column().height(100).backgroundColor('#D5D5D5').width('100%') + Text(`${item}`.repeat(1)) + .flexGrow(1).width('100%').align(Alignment.TopStart).height(60) + .backgroundColor('#F7F7F7') + Column().height(50).backgroundColor('#707070').width('100%') + } + } + .border({ color: Color.Black, width: 1 } as BorderOptions) + }) + } + .id('0') + .columnsGap(10) + .rowsGap(5) + .columnsTemplate('1fr 1fr') + .width('80%') + .height('100%') + .alignItems(GridItemAlignment.STRETCH) + .hitTestBehavior(HitTestMode.Block) + .scrollBar(BarState.Off) + .onClick((event: ClickEvent) => { + this.scroller.scrollEdge(Edge.Bottom) + }) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.ets + + +@Component +struct UIAttributesColorrampInterface0910 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.ets + + +@Component +struct UIAttributesImageeffectInterface0560 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets + + +@Component +struct UIAttributesBackgroundInterface125 { + build() { + Column() { + Row() + .backgroundColor('rgb(0,0,255)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid006.ets + +@Component +struct UIComponentGrid006 { + @State numbers: Array = new Array() + layoutDirectionValue: GridDirection = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('GridDirection.Column') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.layoutDirectionValue = GridDirection.Column + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0100.ets + + +@Component +struct ActionEventCommoneventDragInterface0100 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0020.ets + +@Component +struct ActionEventCommonEventDragListItem0020 { + @State message: string = '拖动我'; + build() { + Column() { + Button(this.message) + .id('ActionEventCommonEventDragListItem0020') + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + }) + .margin({ top: 100 } as Margin) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + Text('1').fontSize(1).id("ActionEventCommonEventDragListItem0020Text") + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracCard0070.ets + + +@Component +struct UIActtonEventComdneventDracCard0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("card_07_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Image(this.targetImage) + .id("card_07_02") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent?: DragEvent) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + event.useCustomDropAnimation = false; + this.imgState = Visibility.None; + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("card_07_03") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_246: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets new file mode 100644 index 000000000..b2badfb17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets @@ -0,0 +1,354 @@ +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,ClickEvent, + Resource,$r, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,Row,Margin,$r,DragItemInfo, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.ets + + +@Component +struct UIAttributesImageeffectInterface0180 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(2.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.ets + + +@Component +struct UIAttributesModaltransitionVision0240 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0100.ets + + +@Component +struct ActionEventCommoneventDragImage0100 { + @State isDrag:string = '' + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .key('img1') + .onDragStart((event: DragEvent, extraParams?: string):DragItemInfo => { + return { builder: () => { + this.pixelMapBuilder() + }, extraInfo: 'extra info' } as DragItemInfo; + }) + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0110.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0110 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest10.ets + +@Component +struct ZIndexDynamicModificationTest10 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 6 //text的value: 'CBA设置ZIndex:-3 -2 -1' + this.whValueIndex = 1 //组件顺序设置为CBA + this.zIndexValueIndex = 5 //CBA设置ZIndex:-3 -2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0850_504.ets + + +@Component +struct UIComponentListandgridGridInterface_0850_504 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventConnect/ActionEventConnect010.ets + + +@Component +struct ActionEventConnect010 { + private imageOne: Resource = $r('app.media.startIcon'); + @State src: Resource = this.imageOne + @State strname:string='' + build(){ + Column(){ + Image(this.src) + .id("ActionEventConnect010") + .width(100) + .height(100) + .onClick((e:ClickEvent) => { + this.strname = "onClick" + }) + Text(this.strname) + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_247: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets new file mode 100644 index 000000000..01a1091f6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets @@ -0,0 +1,411 @@ +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + focusControl, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign,ColumnOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0040 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets + + +@Component +struct UIAttributesBackgroundInterface115 { + build() { + Column() { + Row() + .backgroundColor(Color.Grey) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0070 { + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:220,color:Color.Blue,offsetX:0,offsetY:0} as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:280,color:Color.Pink,offsetX:0,offsetY:0} as ShadowOptions) + } + .useShadowBatching(false) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0120.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0120 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0120_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0120_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0050.ets + + +@Component +struct UIActtonEventComdneventDracForeground0050 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "linear-out-slow-in", + delay: 300, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0050_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0050_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization142.ets + + +@Component +struct SubAceUIComponentCommonattrFocusoptimization142 { + @State isFocus: boolean = false; + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput() + .key('SubAceUIComponentCommonattrFocusoptimization142_key1') + .defaultFocus(true) + .onAppear(() => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_key1'); + }) + Button(`Button2 isFocus: 【 ${this.isFocus} 】`) + .key('SubAceUIComponentCommonattrFocusoptimization142_btn_key') + .width(300) + .height(60) + .fontSize(20) + .fontWeight(700) + .backgroundColor(Color.Pink) + .onFocus(() => { + this.isFocus = true; + }) + } + .id('SubAceUIComponentCommonattrFocusoptimization142_column') + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_btn_key'); + }) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.ets + + +@Component +struct UIAttributesColorRampAny0040 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .sweepGradient({ + center:[50,50], + start:0, + end:359, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_248: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets new file mode 100644 index 000000000..33dff83e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets @@ -0,0 +1,397 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Flex,Toggle,FlexAlign,ItemAlign,ToggleType, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,GridLayoutOptions, + ForEach,Grid,GridItem,TextAlign,Margin,ColumnOptions +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets + + +@Component +struct UIAttributesBackgroundInterface0100 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0380.ets + + +@Component +struct ActionEventCommoneventDragdefault0380 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets + + +@Component +struct UIAttributesBackgroundInterface092 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 333 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur4.ets + +@Component +struct linearGradientBlur4 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackGrid/040.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackGrid040 { + @State numbers1: String[] = ['0', '1', '2', '3', '4'] as String[] + @State numbers2: String[] = ['0', '1','2','3','4','5'] as String[] + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[Double, Double, Double, Double] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string) => { + ForEach(this.numbers1, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('Use of GridLayoutOptions: onGetRectByIndex').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0240_486.ets + + +@Component +struct UIComponentListandgridGridInterface_0240_486 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(0) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0500 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0360.ets + + +@Component +struct ActionEventControlCallback0360 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Toggle') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Toggle'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets + + +@Component +struct UIAttributesImageEffectProjection0150 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.None) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid003.ets + +@Component +struct UIComponentGrid03 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, true) + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_249: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets new file mode 100644 index 000000000..a7ced3e2f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets @@ -0,0 +1,345 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row,DragBehavior, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,TextAreaOptions,TextArea,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0020.ets + + +@Component +struct ActionEventCommonEventMouseStyle0020 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextArea({ text: "TextArea1" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_01") + TextArea({ text: "TextArea2" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_OPEN); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.ets + + +@Component +struct UIAttributesColorrampInterface0030 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: GradientDirection.Left, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0180.ets + + +@Component +struct ActionEventCommoneventDragImage0180 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.COPY + event?.setResult(DragResult.DROP_ENABLED) + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0010.ets + + +@Component +struct UIActtonEventComdneventDracForeground0010 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "cubic-bezier(0.2,0,0,1)", + delay: 100, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0010_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0010_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic3.ets + +@Component +struct buttonDynamicExample3 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Normal' + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.ets + + +@Component +struct UIAttributesRenderFit0030 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_25: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets new file mode 100644 index 000000000..bc1b0ecb7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets @@ -0,0 +1,416 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,TextAlign, + BarState,TapGesture,Margin,ListScroller,List,ListItem,ScrollSnapAlign, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Flex,Text,FlexWrap,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.ets + + +@Component +struct UIAttributesModaltransitionVision0620 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface40.ets + + +@Component +struct AceActionEventCommoneventClickInterface40 { + @State text: string = 'y= '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface40') + .onClick((event: ClickEvent) => { + this.number1 = event.y; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0050.ets + + +@Component +struct ActionEventControlCallback0050 { + @State context: string = "" + build() { + Column(){ + Flex({ wrap: FlexWrap.Wrap }) { // 子组件多行布局 + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xD2B48C) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0050.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0050 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin -5px') + .focusBox({ + margin: LengthMetrics.px(-5), + }) + Button('button margin 内侧-5vp') + .focusBox({ + margin: LengthMetrics.vp(-5), + }) + Button('button margin 内侧-5fp') + .focusBox({ + margin: LengthMetrics.fp(-5), + }) + Button('button margin 内侧5') + .focusBox({ + margin: LengthMetrics.vp(5), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0260.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0260 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0210.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0210 { + @State uri: string = ""; + @State AblockArr: string[] = [] as string[]; + @State BblockArr: string[] = [] as string[]; + @State img: string = ''; + @State isHave: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.png') + .id('SubAceActionEventCommoneventDragCard0210_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.Image = new UDC.Image(); + data.imageUri = './cat.jpg'; + let unifiedData = new UDC.UnifiedData(data); + event.setData(unifiedData); + }) + } + Column({ space: 10 } as ColumnOptions) { + Text('可释放区域') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image(this.img) + .id('SubAceActionEventCommoneventDragCard0210_btn_1') + .width(100) + .height(100) + .border({ width: 1 }) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData: UDC.UnifiedData = (event as DragEvent).getData() as UDC.UnifiedData; + console.info('yxc =========1') + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.img = image.imageUri + console.info('yxc =========2' + this.img) + } else { + } + } + }) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0260.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0260 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 300 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX).fontSize(20) + Text('Y: '+this.itemY).fontSize(20) + Text('width: '+this.itemWidth).fontSize(20) + Text('height: '+this.itemHeight).fontSize(20) + Button('getItemRect').id('btn1').width(200).height(80) + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0080.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0080 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + private listScroller: ListScroller = new ListScroller(); + @State flag: boolean = false; + build() { + Column() { + List({ space: 10, scroller: this.listScroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('item_' + item) + .width('100%') + .height(100) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFFFFF) + } + }, (item: number) => String(item)) + }.focusable(false) + .padding(10) + .backgroundColor(Color.Yellow) + .height(500) + .scrollSnapAlign(this.flag ? ScrollSnapAlign.CENTER : ScrollSnapAlign.START) + Row({ space: 20 } as RowOptions) { + Button('focusable false').focusable(false) + }.height('50%') + }.onClick((e: ClickEvent)=>{}) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.ets + + +@Component +struct UIAttributesModaltransitionVision0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_250: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets new file mode 100644 index 000000000..55750e89f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets @@ -0,0 +1,376 @@ +import { Entry,Component,Column,Text,Button,ColumnOptions,Margin +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,Row,$r,Builder,ResourceStr,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,Callback, + BarState,CaretOffset,TextInputController,TextInput, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, Text, Image } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Row, Margin, Grid, Edge, BarState, GridItem, Direction,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_025.ets + +@Component +struct Grid_025 { + @State rowStart : number = 1 + @State rowEnd : number = 1 + @State columnStart : number = 1 + @State columnEnd : number = 1 + build() { + Column() { + Column() { + Text('rowStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowStart = 1; + }).id('rowStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowStart = 2; + }).id('rowStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.rowStart = 3; + }).id('rowStart3') + } + Text('rowEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowEnd = 1; + }).id('rowEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowEnd = 2; + }).id('rowEnd3') + Button("3") + .onClick((event:ClickEvent) => { + this.rowEnd = 3; + }).id('rowEnd5') + } + Text('columnStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnStart = 1; + }).id('columnStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnStart = 2; + }).id('columnStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnStart = 3; + }).id('columnStart3') + } + Text('columnEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnEnd = 1; + }).id('columnEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnEnd = 2; + }).id('columnEnd2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnEnd = 3; + }).id('columnEnd3') + } + }.height('40%') + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + }.rowStart(this.rowStart).rowEnd(this.rowEnd).columnStart(this.columnStart).columnEnd(this.columnEnd) // 同时设置合理的行列号 + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height("60%") + .border({width:1} as BorderOptions) + .direction(Direction.Ltr) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0370 { + @State count: string = "点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("手指点击") + .id("shouzhiButton") + .fontSize(30) + .onClick((e: ClickEvent) => { + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0190.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0190 { + @State text: string = '' + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + build() { + Column() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + .padding(30) + .height('100%') + .width('100%') + } + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentOnDisappear.ets + +@Component +struct ContentOnDisappear { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State num:number = 0 + @State num2:number = 0 + @State num3:number = 0 + @State num4:number = 0 + @State num5:number = 0 + @State num6:number = 0 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentOnDisappear5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Orange, onAppear: () => { + this.num3 = this.num + this.num3+=1 + console.log("BindContentCover onAppear2.") + }, + onDisappear: () => { + this.num4 = this.num2 + this.num4+=1 + console.log("BindContentCover onDisappear2.") + }} as SheetOptions) + Text('2 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('2 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Button("close modal 1").fontSize(11).id('ContentOnDisappear6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentOnDisappear7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => { + this.num+=1 + console.log("BindContentCover onAppear1.")}, onDisappear: () => { + this.num2+=1 + console.log("BindContentCover onDisappear1.")}} as SheetOptions) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('触发将被覆盖').fontSize(20) + .margin(10) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0120.ets + + +@Component +struct UIAttributesFocuscontrolInterface0120 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + @Builder + tabBuilder(index: number, name: string) { + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + .defaultFocus(true) + } + Column({ space: 20 } as ColumnOptions) { + Row({ space: 5 } as RowOptions) { + Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { + TabContent() { + Column().width('100%').height('50%').backgroundColor('#00CB87') + }//.tabBar(this.tabBuilder(0, 'green')) + .tabBar(():void =>{this.tabBuilder(0, 'green')}) + .defaultFocus(true) + TabContent() { + Column().width('100%').height('50%').backgroundColor('#007DFF') + }//.tabBar(this.tabBuilder(1, 'blue')).id('focus') + .tabBar(():void =>{this.tabBuilder(1, 'blue')}) + .id('focus') + }.defaultFocus(false) + } + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouse/ActionEventCommonEventMouse0010.ets + + +@Component +struct ActionEventCommonEventMouse0010 { + @State hoverState: string = ''; + build() { + Column({ space: 30 } as ColumnOptions) { + Text(this.hoverState).height(80) + Button("Hover测试文本--0010") + .id("ActionEventCommonEventMouse0010_01") + .margin({ top: 80 } as Margin) + .fontSize(24) + .height(80) + .onHover((isHover:boolean):void=>{ + if (isHover) { + this.hoverState = "HoverTrue" + } + }) + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_251: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets new file mode 100644 index 000000000..3cf362c09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets @@ -0,0 +1,460 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,RowSplit,TextAlign,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { promptAction } from '@kit.ArkUI'; + +import { BusinessError } from '@ohos.base'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Color,Builder,PreDragStatus, + ColumnOptions,Text,Image,Row,DragResult, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + ImageFit, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0210 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0720.ets + + +@Component +struct ActionEventCommoneventDragdefault0720 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽红色文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .fontColor(this.txt_color) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Red; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .fontColor(Color.Red) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.ets + + +@Component +struct UIAttributesImageeffectInterface0380 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: "#0000FF" } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets + + +@Component +struct UIAttributesBackgroundInterface075 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "280px" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceUIDragEventReportRule/SubAceUIDragEventReportRule0010.ets + + +@Component +struct SubAceUIDragEventReportRule0010 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9,); + build() { + Column({ space: 5 } as ColumnOptions) { + List() { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Row({ space: 30 } as RowOptions) { + Button('Button' + item) + .width(100) + .height(100) + .border({ width: 1, radius: 25 }) + Text(`image item - ${item}`) + .fontColor(Color.White) + .fontSize(25) + .fontWeight(700) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .padding({ left: 30, top: 30 } as Padding) + .backgroundColor(Color.Pink) + } + }, (item: Double, index: Double) => String(item)) + } + .height('90%') + .draggable(true) + .id('SubAceUIDragEventReportRule0010_list') + } + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0070.ets + +@Component +struct ActionEventCommonEventDragListItem0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @State dragState: string = ''; + @State dragStateSuccess: string = ''; + @Builder + pixelMapBuilder() { + Column() { + Image('2.png') + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column({ space: 30 } as ColumnOptions) { + Text(`拖拽状态初始值: 未拖拽`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽过程中松手: ${this.dragState}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽到指定区域: ${this.dragStateSuccess}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Image('2.png') + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .visibility(this.imgState) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.backGroundColor = Color.Transparent; + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .id('DragListItem0070Image') + .onDragEnd((event: DragEvent, extraParams?: string):void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.dragStateSuccess = '拖拽成功'; + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.dragState = '拖拽失败'; + } + }) + .draggable(true) + Text(`1`).fontSize(1).id('text1').margin(40).id("DragListItem0070Text") + Column() { + Text(this.targetText) + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 }) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event as DragEvent), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.targetText = plainText.textContent; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets + + +@Component +struct UIComponentCommonattrForegroundEffect450 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0450_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0450_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0450_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + RowSplit() { + Text('1').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('25%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .resizeable(true) // 可拖动 + .width('100%') + .height(100) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0450_004') + .layoutWeight(1) + } + .width('100%') + .margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_252: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets new file mode 100644 index 000000000..61ebee05a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets @@ -0,0 +1,432 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus,Margin,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0010.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0010 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0010") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle1.ets + +@Component +struct TextBackgroundBlur { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('NONE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.NONE) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + Text('BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets + + +@Component +struct UIAttributesBackgroundInterface117 { + build() { + Column() { + Row() + .backgroundColor(Color.Pink) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0500.ets + + +@Component +struct ActionEventCommonEventMouseStyle0500 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0500_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0500" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0500_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0030.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0030 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor rgba') + .focusBox({ + strokeColor: ColorMetrics.rgba(192, 192, 192), + }) + Button('button strokeColor Green') + .focusBox({ + strokeColor: ColorMetrics.resourceColor(Color.Green), + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: ColorMetrics.resourceColor($r('app.media.startIcon')), + }) + Button('button strokeColor fc0303') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#fc0303'), + }) + Button('button strokeColor 0xff000000') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#ff000000'), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0090.ets + + +@Component +struct ActionEventCommoneventDragGriditem0090 { + @State numbers: String[] = ['0', "1", "2"] as String[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + } + Row() { + Column() { + Text('不支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text().fontSize(15).width('100%') + } + .id("img2") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + console.log("ondrop not udmf data"); + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + Column() { + Text('支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text(this.textContent).fontSize(15).width('100%') + } + .id("img3") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.textContent = plainText.textContent; + }) + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_253: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets new file mode 100644 index 000000000..d16fddcac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets @@ -0,0 +1,334 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle,ThemeColorMode,AdaptiveColor, + BlurStyleActivePolicy,ImageSize +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.ets + + +@Component +struct UIAttributesColorrampInterface0810 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:'90deg' + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.ets + + +@Component +struct UIAttributesColorrampInterface0530 { + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.colors= [["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Green, 1]] + } else { + this.btnShow = Visibility.Visible + this.colors= [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurAndEffectIndex.ets + +@Component +struct TextBackgroundBlurAndEffectIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Text('BackgroundEffect') + .fontSize(20) + .fontWeight(500) + .width('100%') + .backgroundColor('#DCDCDC') + .fontColor(Color.Blue) + .textAlign(TextAlign.Center) + .height(50) + .margin(5) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + Text('radius:100 ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets + + +@Component +struct UIAttributesBackgroundInterface0070 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0060 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.ets + + +@Component +struct UIAttributesImageeffectInterface0220 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(0) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_254: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets new file mode 100644 index 000000000..72a43dfb2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets @@ -0,0 +1,409 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Grid,ForEach,GridItem, + Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image' + +import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, + Grid,ForEach,ClickEvent,DragPreviewMode,Padding,DragPreviewOptions,DragInteractionOptions, + DragEvent,GridItem,CommonMethod, applyStyles, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,ResourceColor,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,Image,$r +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0110.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0110 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0280 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0160.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0160 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0130 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0320.ets + + +@Component +struct ActionEventCommoneventDragInterface0320 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets + + +@Component +struct UIAttributesColorrampInterface0100 { + @State colors:Array<[ResourceColor, number]> = [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] as Array<[ResourceColor, number]>; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: this.colors + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.colors= [[$r('app.media.startIcon'), 0.0], [Color.Yellow, 0.5]] + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur10.ets + +@Component +struct linearGradientBlur10 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.RightTop } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragScenarios/ActionEventCommoneventDragScenarios0070.ets + + +@Component +struct ActionEventCommoneventDragScenarios0070 { + @State pixmap: image.PixelMap|undefined = undefined + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] as number[] + @State colors: Color[] = + [Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Yellow, Color.Orange, Color.Pink, Color.Yellow, + Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Red, Color.Blue, Color.Brown, Color.Gray, + Color.Green] as Color[] + @State isSelectedItem: boolean[] = [] as boolean[] + @State previewData: DragItemInfo[] = [] as DragItemInfo[] + @State numberBadge: number = 0; + scroller: Scroller = new Scroller() + normalStyles(instance: CommonMethod): void { + instance.opacity(0.3) + } + selectStyles(instance: CommonMethod): void { + instance.opacity(1.0) + } + @Builder dragStartBuilder() { + Column() { + Text("builder dragStart") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Column() { + Grid(this.scroller) { + ForEach(this.arr, (item: number) => { + GridItem() { + Text('item ' + item) + .width('100%').height(100).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10) + } + .id(`${item}`) + .backgroundColor(this.colors[item]) + .draggable(true) + .selectable(true) + .selected(this.isSelectedItem[item]) + .stateStyles({ + normal: this.normalStyles, + selected: this.selectStyles + }) + .onClick((e:ClickEvent) => { + }) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO } as DragPreviewOptions, + { isMultiSelectionEnabled: true, defaultAnimationBeforeLifting: true } as DragInteractionOptions) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .dragPreview(():void => { + }) + }, (item: number,index:number) => item+'') + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('80%') + .height('80%') + } + .width('100%') + .height('100%') + .backgroundColor(0xDCDCDC) + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0140 { + @State radiusValue: number = 0; + private data: string[] = ["1", "2", "3", "4"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur6.ets + +@Component +struct linearGradientBlur6 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 +build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.LeftBottom } as LinearGradientBlurOptions) + } + } + } + } +} + + +export const FLAG_OF_FILE_255: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets new file mode 100644 index 000000000..c52b3e69c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets @@ -0,0 +1,447 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Toggle,ToggleType, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions,TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_011.ets + +@Component +struct Grid1 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为-5').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(-5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0100.ets + + +@Component +struct UIAttributesFocuscontrolInterface0100 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .groupDefaultFocus(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0190_620.ets + + +@Component +struct UIComponentListandgridGridInterface_0190_620 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Auto) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0330 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets + + +@Component +struct UIAttributesBackgroundInterface111 { + build() { + Column() { + Row() + .backgroundColor(Color.Blue) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0470.ets + + +@Component +struct ActionEventControlCallback0470 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Toggle({ type: ToggleType.Button, isOn: false }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row3.ets + +@Component +struct Row3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(3) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest8.ets + +@Component +struct ZIndexDynamicModificationTest8 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 4 //text的value: 'ABC设置zIndex: 3 2 1' + this.zIndexValueIndex = 3 //ABC设置zIndex: 3 2 1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_256: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets new file mode 100644 index 000000000..ca462f44c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets @@ -0,0 +1,346 @@ +import { + Color, + FlexDirection, + ItemAlign, + Entry, + Text, + Image, + Component, + Flex, + Padding, + ListItem, + ClickEvent, + Scroller, + ObscuredReasons, + ScrollAlign, + Column, + List, + Button, + ForEach, + Axis, + BarState, + EdgeEffect +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + GridRow, + GridCol, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + DragPreviewMode +} from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,TextInput,TextInputController,Margin,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions, + AnimationStatus, + ResourceStr,$r,ImageAnimator,Margin,FillMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.ets + + +@Component +struct UIAttributesImageeffectInvert0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0050.ets + + +@Component +struct UIAttributesFocuscontrolInterface0050 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 } as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + .focusable(true) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + .focusable(true) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + .focusable(true) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0150.ets + + +@Component +struct UIAttributesFocuscontrolInterface0150 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + Button('one button ').groupDefaultFocus(true) + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 }as SearchOptions) + .searchButton('SEARCH') + .groupDefaultFocus(true) + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + .tabIndex(1) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0080.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0080 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Button('Button') + .id('SubAceActionEventCommoneventDragImprove0080_btn') + .width('100%') + .height('100%') + .backgroundColor(Color.Pink) + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0080_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.ets + + +@Component +struct UIAttributesRenderFit0020 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets + + +@Component +struct UIComponentMediaImageMask0120 { + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6); + private scroller: Scroller = new Scroller(); + build() { + Column() { + List({ space: 20, initialIndex: 0, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { + Text('item is ' + item) + Image('icon.png') + .width(100) + .height(150) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + } + }, (item: Double, index: Double) => item + '') + } + .listDirection(Axis.Vertical) // 排列方向 + .scrollBar(BarState.Off) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: 0xFFFFFF, + startMargin: 20, + endMargin: 20 + }) // 每行之间的分界线 + .edgeEffect(EdgeEffect.Spring) // 边缘效果设置为Spring + .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => { + console.info('first' + firstIndex) + console.info('last' + lastIndex) + console.info('center' + centerIndex) + }) + .width('90%') + .height('60%') + Button('scroll Bottom') + .onClick((e: ClickEvent) => { + this.scroller.scrollToIndex(ScrollAlign.END); + }).id('mask0120_button_01').margin(10) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_257: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets new file mode 100644 index 000000000..4cd5321b7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets @@ -0,0 +1,409 @@ +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.ets + + +@Component +struct UIAttributesModaltransitionVision0390 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0190.ets + + +@Component +struct UIAttributesBcakgroundSeriable0190 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.ets + + +@Component +struct UIAttributesModaltransitionVision0570 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface80.ets + + +@Component +struct AceActionEventCommoneventClickInterface80 { + @State btn_width:string = '' + @State btn_height:string = '' + @State position_x:string | undefined = '' + @State position_y:string | undefined = '' + @State g_position_x:string | undefined = '' + @State g_position_y:string | undefined = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Button('点击') + .fontSize(20) + .width(100) + .height(60) + .id('btn') + .onClick((event:ClickEvent) => { + this.btn_width = event.target.area.width.toString() + this.btn_height = event.target.area.height.toString() + this.position_x = event.target.area.position.x?.toString() + this.position_y = event.target.area.position.y?.toString() + this.g_position_x = event.target.area.globalPosition.x?.toString() + this.g_position_y = event.target.area.globalPosition.y?.toString() + }) + Text('宽:'+this.btn_width).fontSize(20).margin({top:10} as Margin) + Text('高:'+this.btn_height).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移x:'+this.position_x).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移y:'+this.position_y).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移x:'+this.g_position_x).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移y:'+this.g_position_y).fontSize(20).margin({top:10} as Margin) + } + .width(300) + .height(400) + .border({width: 1}) + .margin(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.ets + + +@Component +struct UIAttributesModaltransitionVision0270 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.ets + + +@Component +struct UIAttributesColorRampBlurGradient0180 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(-10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0290.ets + + + +@Component +struct ActionEventCommonEventMouseStyle0290 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_OPEN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0290_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0290" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0290_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur3.ets + +@Component +struct linearGradientBlur3 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0010 { + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.ets + + +@Component +struct UIAttributesImageEffectProjection0020 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_258: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets new file mode 100644 index 000000000..36f8c9b13 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets @@ -0,0 +1,458 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,Video,TextAlign,HorizontalAlign,ScrollDirection, + VideoController, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,ColumnOptions,Flex,FlexDirection,FlexAlign,ItemAlign, + Radio,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.ets + + +@Component +struct UIAttributesColorrampInterface0790 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0030.ets + + +@Component +struct ActionEventCommoneventDragGriditem0030 { + @State numbers: String[] = ['0', "1", "2"] as string[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0330.ets + + +@Component +struct ActionEventControlCallback0330 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio1') + Radio({ value: 'Radio1', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + } + Column() { + Text('Radio2') + Radio({ value: 'Radio2', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .id('Radio') + .onChange((value: boolean):void => { + let strJson: string = inspector.getInspectorByKey('Radio'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Column() { + Text('Radio3') + Radio({ value: 'Radio3', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean):void => { + console.log('Radio3 status is ' + isChecked) + }) + } + } + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0040.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0040 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor null') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor abcd') + .focusBox({ + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0040.ets + + +@Component +struct ActionGestureRegister0040 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0240.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0240 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.ets + + +@Component +struct UIAttributesImageeffectInterface0430 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: $r('app.media.startIcon'), + offsetY: $r('app.media.startIcon') + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0590 { + @State radiusValue: number = 0; + controller: VideoController = new VideoController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0240816.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0240816 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0240816_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(3); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0240816_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .enableScrollInteraction(false) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_259: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets new file mode 100644 index 000000000..17d5af14c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets @@ -0,0 +1,522 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import {Entry,Component,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign,Image,Row,List,ForEach,ListItem, +Margin,BorderOptions,DragEvent,Visibility,$r,Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component, Column,ResourceStr,$r,Menu,MenuItem,Builder,ColumnOptions,FontWeight, + MenuItemGroup,MenuItemOptions,MenuItemGroupOptions,Text,Margin +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Select,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextInputController, + Button, + TextArea, + MenuPolicy, + $r, + ClickEvent +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.ets + + +@Component +struct UIAttributesImageeffectInterface0490 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0330.ets + + +@Component +struct SubAceActionWindowWindowCustom0330 { + controller: TextInputController | undefined = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0480 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .width(100) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .foregroundEffect({ radius: this.radiusValue }) + .width(100) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0210.ets + + +@Component +struct ActionEventCommonEventMouseStyle0210 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0210_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0210" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0210_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.ets + + +@Component +struct UIComponentCommonattrGrayscale0140 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [-10, -10] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0420.ets + + +@Component +struct ActionEventControlCallback0420 { + @State context: string = "" + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + MenuItemGroup({ header: '小标题' } as MenuItemGroupOptions) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions).id('MenuItem') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('MenuItem'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + MenuItem({ + startIcon: $r('app.media.startIcon'), + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + } + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + } as MenuItemOptions) + } + } + build() { + Column({space: 20} as ColumnOptions) { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .id('Column') + .bindMenu(this.MyMenu) + .width('100%') + Text(this.context).margin({ top: 20 } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent.ets + +@Component +struct Percent { + build() { + Column() { + Text('上下30%,左右-20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: '20%', right: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.ets + + +@Component +struct UIAttributesColorrampInterface0290 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SampleMultipleSelectionDrag/SampleMultipleSelectionDrag0020.ets + + +@Component +struct SampleMultipleSelectionDrag0020 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('0') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .onDragStart(undefined) + .draggable(true) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('1') + .height('90%') + .width('100%') + .backgroundColor(Color.Red) + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index: number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('2') + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .backgroundColor(Color.Green) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_26: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets new file mode 100644 index 000000000..b20975d53 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets @@ -0,0 +1,418 @@ +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,GradientDirection,FlexAlign,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.ets + + +@Component +struct UIAttributesModaltransitionAvoid0010 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 50; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[450, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent+.ets + +@Component +struct Percent_zheng { + build() { + Column() { + Text('扩展尺寸: 20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '20%', bottom: '20%', right: '20%', left: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0160 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0160_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0160_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.ets + + +@Component +struct UIAttributesColorrampDfx0010 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.ets + + +@Component +struct UIAttributesColorrampInterface0750 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.ets + + +@Component +struct UIAttributesOutlineColor0010 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(0xFFFF4777) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.ets + + +@Component +struct UIAttributesImageEffectProjection0220 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0080_215.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0080_215 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets + + +@Component +struct UIAttributesImageEffectProjection0160 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Hidden) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_label.ets + +@Component +struct ButtonLabel { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: -3, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: $r('app.media.startIcon'), + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: '20', + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 12, + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: -9, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 8, + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_260: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets new file mode 100644 index 000000000..4ac987e33 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets @@ -0,0 +1,327 @@ +import { Entry, Component, Column,ColumnOptions,$r,Image,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color,ScaleOptions,TranslateOptions,RotateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Color, + Builder, + RelativeContainer, + Image, + $r +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.ets + + +@Component +struct UIAttributesGraphictransformationInterface0270 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('translate,设置参数{x:40,y:30}') + .width(100) + .translate({x:40,y:30} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0070.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0070 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: undefined + }) + }).id('ScrollScrollbarScrolledge0070_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0120290.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0120290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0120290'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0010 { + @Builder BackgroundBuilder() { + RelativeContainer(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.width(400).height(400).backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.ets + + +@Component +struct UIAttributesImageEffectProjection0250 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0040 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + @State translateX: number = 0; + @State translateY: number = 0; + @State scaleX: number = 1; + @State scaleY: number = 1; + @State rotateAngle: number = 0; + build() { + Column() { + Column() { + } + .scale({ x: this.scaleX, y: this.scaleY} as ScaleOptions) + .translate({ x: this.translateX, y: this.translateY} as TranslateOptions) + .rotate({ angle: this.rotateAngle} as RotateOptions) + .height(50) + .width(50) + .backgroundColor('red') + Button('scale') + .id('UIAttributesGraphicTransformationSkew0040_001') + .margin({ top: 50 } as Margin) + .onClick((e:ClickEvent) => { + this.scaleX = 2; + this.scaleY = 2; + }) + Button('translate') + .id('UIAttributesGraphicTransformationSkew0040_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.translateX = -50; + this.translateY = -50; + }) + Button('rotate') + .id('UIAttributesGraphicTransformationSkew0040_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.rotateAngle = 45; + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0430.ets + + +@Component +struct ActionEventCommoneventDragInterface0430 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height(250) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + + +export const FLAG_OF_FILE_261: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets new file mode 100644 index 000000000..daf6f6254 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets @@ -0,0 +1,425 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DrawableDescriptor,ImageContent,Resource,Position,Flex,FlexDirection,ItemAlign,FlexAlign,Grid,GridItem +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + BorderStyle, + GestureGroup, + BorderOptions, + PanGesture, + LongPressGesture, + GestureMode +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes290.ets + + +@Component +struct UIAttributesTouchableInteraction290 { + @State value: string = ''; + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Column() { + Text('Click ') + .fontSize(28) + .id('UIAttributesTouchableInteraction290') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Parallel, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++ + } + this.value = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + this.value += 'PanGesture onAction'; + }) + ) + .onCancel(() => { + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets + + +@Component +struct UIAttributesBackgroundInterface1420 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Bottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0460_322.ets + + +@Component +struct UIComponentListandgridGridInterface_0460_322 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth('90%') + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets + + +@Component +struct UIAttributesImageEffectProjection0120 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0.5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0060 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(500) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0300.ets + + +@Component +struct ActionEventCommoneventDragdefault0300 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentSnapshotAttribute/UIComponentSnapshotAttribute0990.ets + + +@Component +struct UIComponentSnapshotAttribute0990 { + @State positionX: number = 20 + @State positionY: number = 20 + @State value: string = ''; + build() { + Column() { + Button("组件") + .id("Button_001") + .position({ x: this.positionX, y: this.positionY } as Position) + Text(this.value) + .width("95%") + .height(200) + .borderWidth(2) + Grid() { + GridItem() { + Button("windowoffset设置x为负数").onClick((event:ClickEvent) => { + this.positionX = -40 + }) + .id("UIComponentSnapshotAttribute0990_001") + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/SystemBarEffectIndex.ets + +@Component +struct systemBarEffectIndex { + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .width(150).height(10) + .systemBarEffect() + .border({radius:5}) + .margin({bottom:80} as Margin) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_017.ets + +@Component +struct Grid07 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置grid大小300*150,griditem大小90*40。 maxCount设置为-2').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .layoutDirection(GridDirection.Row) + .rowsGap(10) + .friction(0.6) + .minCount(3) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .maxCount(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_262: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets new file mode 100644 index 000000000..297a624c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets @@ -0,0 +1,376 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemGroup,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Stack,Alignment,TransitionEffect,Image,animateTo,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0030.ets + + +@Component +struct UIActtonEventComdneventDracForeground0030 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + }as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0030_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0030_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0400.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0400 { + @State isShow: boolean = false + build() { + Stack({ alignContent: Alignment.Center }) { + if (this.isShow) { + Image('icon.png') + .autoResize(false) + .clip(true) + .width(300) + .height(400) + .offset({ y: 100 } as Position) + .geometryTransition("picture", { follow: false }) + .transition(TransitionEffect.OPACITY) + } else { + Column() { + Column() { + Image('2.png') + .width('100%').height('100%') + }.width('100%').height('100%') + } + .width(80) + .height(80) + .borderRadius(20) + .clip(true) + .geometryTransition("picture") + .transition(TransitionEffect.OPACITY) + } + } + .renderFit(RenderFit.TOP_LEFT) + .id('stackId') + .onClick((e:ClickEvent) => { + animateTo({ duration: 1000 }, ():void => { + this.isShow = !this.isShow + }) + }) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic9.ets + +@Component +struct buttonDynamicExample9 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button9') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0020 { + @State isbgcColor:boolean = false + @State isClick:boolean = false + @State opacity1:number = 1.0 + onButtonClick(){ + this.opacity1 = 0.5 + this.isClick = true + this.isbgcColor = true + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .blendMode(BlendMode.SRC_IN) + .margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .opacity(this.opacity1) + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets + + +@Component +struct UIAttributesBackgroundInterface0570 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "0.5trun", + end: "1turn", + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.ets + + +@Component +struct UIAttributesColorRampBlurGradient0120 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0280 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_263: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets new file mode 100644 index 000000000..f614e7873 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets @@ -0,0 +1,438 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Image, + Builder, + Menu +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0240 { + @State message: string = 'Hello' + @Builder privateBuilder() { + Menu().overlay((): void => {this.privateBuilderTwo()}).height(600).width("100%").margin({ top: 100 } as Margin) + } + @Builder privateBuilderTwo() { + Image("2.png").height(300).margin({ top: 100 } as Margin) + } + build() { + Row() { + Column() {} + .width('100%') + .height('100%') + .backgroundColor(Color.Green) + }.overlay((): void => {this.privateBuilder()}) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.ets + + +@Component +struct UIAttributesModaltransitionAnimator0040 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0540.ets + + +@Component +struct ActionEventCommonEventMouseStyle0540 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RUNNING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0540_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0540" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0540_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0490 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.ets + + +@Component +struct UIAttributesModaltransitionVision0320 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.ets + + +@Component +struct UIAttributesModaltransitionVision0360 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 420, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0300.ets + + +@Component +struct ActionEventCommonEventMouseStyle0300 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_POINTING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0300_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0300" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0300_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_264: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets new file mode 100644 index 000000000..200197586 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets @@ -0,0 +1,410 @@ +import { Entry, Component, Row, Column, Color, Builder, Button, Text, ClickEvent, GestureEvent, Margin, RotationGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + Padding, + ColumnOptions, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.ets + + +@Component +struct UIAttributesColorrampInterface0510{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[50,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragListItem/CommonEventDragListItem0080.ets + + +@Component +struct CommonEventDragListItem0080 { + @State status: string = ''; + @State arr: Array = new Array(0, 1, 2, 3, 4, 5) + build() { + Column({ space: 5 } as ColumnOptions) { + List({ space: 20, initialIndex: 0 }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('' + item) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + } + }, (item: Double, index: Double) => item + '') + } + .width('90%') + .height('70%') + .scrollBar(BarState.Off) + .id('view-1') + .dragPreviewOptions({}, { isMultiSelectionEnabled: true }) + .onDragStart((event: DragEvent, extraParams?: string): (() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + Text('拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.ets + + +@Component +struct UIAttributesColorrampInterface0490 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0070.ets + + +@Component +struct ActionEventCommoneventDragImage0070 { + @State uri: string = "" + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop(null) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let img = arr[0] as unifiedDataChannel.Image; + this.uri = img.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_005.ets + +@Component +struct onlyColumnMaxCount { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State maxCountValue: number = 8 + onPageShow() { + console.info('onlyColumnMaxCount onPageShow') + this.maxCountValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .maxCount(this.maxCountValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.ets + + +@Component +struct UIAttributesModaltransitionVision0630 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0410 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent): void => { + this.angle=this.angle+60 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_265: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets new file mode 100644 index 000000000..8f84c44c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets @@ -0,0 +1,387 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TabsController,Tabs,Text,TabContent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Resource, + Menu, + MenuItemOptions, + $r, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + PatternLock,HorizontalAlign,ScrollDirection,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.ets + + +@Component +struct UIAttributesModaltransitionInteration0070 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.ets + + +@Component +struct UIComponentCommonattrGrayscale0130 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [48, 58] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0350 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + PatternLock() + .sideLength(200) + .autoReset(true) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectIndex.ets + +@Component +struct TextBackgroundBlurStyle1 { + build() { + Column() { + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.5') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.5) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为-1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(-1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.2) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(2) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0130.ets + + +@Component +struct UIComponentBackgroundimage0130 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton155.ets + + +class Tmp155 { + iconStr2: ResourceStr = $r('app.media.startIcon') + set(val: Resource) { + this.iconStr2 = val + } +} +@Component +struct UlComponentCommonattrlfocusoptimizatton155 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_155_2') + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_155_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0370.ets + + +@Component +struct ActionEventControlCallback0370 { + @State context: string = "hello" + @State index: number = 2 + private controller1: TabsController = new TabsController() + build() { + Column() { + Text(this.context) + Tabs({ controller: this.controller1 }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + } + .tabBar('pink') + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar('yellow') + } + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id = JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type = JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + .height('80%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton150.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton150 { + build() { + Column() { + Button("支持自定义内容弹出框") + .id('UlComponentCommonattrlfocusoptimizatton_150_1') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @Builder + buildContent(): void { + Column() { + TextInput({ placeholder: 'input ...' }) + Button('count is odd').fontSize(30).height(50).margin({ top: 20 } as Margin) + TextArea({ + placeholder: 'The text area can hold an unlimited amount of text. input your word...', + }) + .placeholderFont({ size: 16, weight: 400 }) + .width(336) + .height(56) + .margin(20) + .fontSize(16) + .fontColor('#182431') + .backgroundColor('#FFFFFF') + Search({ placeholder: 'Type to search...', }) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + } + } +} + + +export const FLAG_OF_FILE_266: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets new file mode 100644 index 000000000..4ca17dafb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets @@ -0,0 +1,406 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ClickEvent,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,Row,$r,DragBehavior, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Column, + Component, + Color, + Scroll, + Row, + FlexAlign, + TextAlign, + OutlineStyle, + Dimension, + EdgeColors +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Color,$r,Margin,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Row,Alignment,Color,Stack, + Position,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0080.ets + + +@Component +struct ActionEventCommonEventMouseStyle0080 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Row() + .id("ActionEventCommonEventMouseStyle0080_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + Row() + .id("ActionEventCommonEventMouseStyle0080_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0290.ets + + +@Component +struct ActionEventCommoneventDragImage0290 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image($r('app.media.startIcon')) + .id("img1") + .border({ color: Color.Black, width: 1 }) + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{}) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image(this.targetImage) + .id("img2") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event1: DragEvent) => { + event1.useCustomDropAnimation = true; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/RowOutlineColorIndex.ets + +@Component +struct RowOutlineColorIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Row() { + Text('验证组件的外描边颜色outlineColor取值类型为EdgeColors时').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15 as Dimension) + .outlineColor({left:0xFFff4777, right:0xFFff4777, top:0xFFff4777, bottom:0xFFff4777} as EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets + + +@Component +struct UIAttributesBackgroundInterface0180 { + build() { + Column() { + Row() { + Text("BACKGROUND_THIN") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0120.ets + + +@Component +struct UIAttributesBcakgroundSeriable0120 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 50 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:50}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0190.ets + + +@Component +struct ActionEventCommoneventDragImage0190 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.MOVE + event?.setResult(DragResult.DROP_ENABLED) + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data1: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data1); + img.imageUri = 'app.media.img2'; + let data2: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data2); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0060.ets + + +@Component +struct ActionEventCommonEventMouseStyle0060 { + build() { + Column({ space: 50 } as ColumnOptions) { + Button("Button1") + .id("ActionEventCommonEventMouseStyle0060_01") + .onClick((e:ClickEvent) => { + cursorControl.setCursor(pointer.PointerStyle.SCREENSHOT_CHOOSE); + }) + Button("Button2") + .id("ActionEventCommonEventMouseStyle0060_02") + .onClick((e:ClickEvent) => { + cursorControl.restoreDefault(); + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.ets + + +@Component +struct UIAttributesModaltransitionVision0100 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:['50%', SheetSize.FIT_CONTENT, SheetSize.LARGE] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_267: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets new file mode 100644 index 000000000..9e0bb3c81 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets @@ -0,0 +1,387 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,BorderStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets + + +@Component +struct UIAttributesBackgroundInterface0660 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Bottom) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0520.ets + + +@Component +struct ActionEventCommoneventDragdefault0520 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_007.ets + +@Component +struct onlyColumnRowsGap { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State rowsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnRowsGap onPageShow') + this.rowsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .rowsGap(this.rowsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button02.ets + + +@Component +struct Button02 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button02_0020') + .id('Button02_0020') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.obj = inspector.getInspectorTree(); + this.text = String(this.obj); + }) + Row() { + Text(this.text) + .id('Button02_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0060 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + .border({width:2.5,color:Color.Blue,style:BorderStyle.Solid}) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0090.ets + + +@Builder +function builder10090(text: string) { + builder20090(text) +} +@Builder +function builder20090(text: string) { + Text(text) + .fontSize(50) +} +@Component +struct SubAceActionWindowWindowCustom0090 { + @State statel: string = 'text1'; + @Builder + builder3(text: string) { + builder20090(text) + this.builder4(text) + } + @Builder + builder4(text: string) { + Text(text).fontSize(50) + } + build() { + Column() { + builder10090(this.statel) + this.builder3(this.statel) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0110.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0110 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("small black focus box") + .enabled(false) + .focusBox({ + margin: new LengthMetrics(0), + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0130 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.5 }) + .id('UIAttributesClivkreboundeffectInterface0130_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes50.ets + + +@Component +struct UIAttributesTouchableInteraction50 { + @State rotateAngle: number = 0; + @State speed: number = 1; + build() { + Column() { + Text("SwipeGesture speed\n" + this.speed) + .border({ width: 3 } as BorderOptions) + .width(300) + .height(200) + .margin(100) + .rotate({ angle: this.rotateAngle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction50') + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent) => { + if (event) { + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets + + +@Component +struct UIAttributesBackgroundInterface122 { + build() { + Column() { + Row() + .backgroundColor(0x0000ff) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_268: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets new file mode 100644 index 000000000..abc6479a4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets @@ -0,0 +1,482 @@ +import { + Entry, + Text, + Column, + Component, + FlexAlign, + TextAlign, + Scroll, + Divider, + Color, + OutlineStyle, + Dimension, + ResourceColor, + EdgeColors, + EdgeOutlineWidths, + OutlineRadiuses, + EdgeOutlineStyles +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack,$r, + BlendApplyType +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Button,ClickEvent,FlexAlign,Margin,Stack,Alignment,List,ForEach, + ListItem,Text,TextAlign,ListOptions,AlphabetIndexer,FontWeight,IndexerAlign,BlurStyle,Color,Stack, + FontStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.ets + + +@Component +struct UIAttributesImageeffectInterface0150 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(0.0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0270.ets + + +@Component +struct UIAttributesBcakgroundSeriable0270 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0010 { + private arrayA: string[] = ['安'] as string[] // A + private arrayB: string[] = ['卜', '白', '包', '毕', '丙'] as string[] // B + private arrayC: string[] = ['曹', '成', '陈', '催'] as string[] // C + private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'] as string[] // L + private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G', + 'H', 'I', 'J', 'K', 'L', 'M', 'N', + 'O', 'P', 'Q', 'R', 'S', 'T', 'U', + 'V', 'W', 'X', 'Y', 'Z'] + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0010_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0010_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0010_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Stack({ alignContent: Alignment.Start }) { + Row() { + List({ space: 20, initialIndex: 0 } as ListOptions) { + ForEach(this.arrayA, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayB, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayC, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayL, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .width('50%') + .height('100%') + AlphabetIndexer({ arrayValue: this.value, selected: 0 }) + .autoCollapse(false) + .selectedColor(0xFFFFFF)// 选中项文本颜色 + .popupColor(0xFFFAF0)// 弹出框文本颜色 + .selectedBackgroundColor(0xCCCCCC)// 选中项背景颜色 + .popupBackground(0xD2B48C)// 弹出框背景颜色 + .usingPopup(true)// 是否显示弹出框 + .selectedFont({ size: 16, weight: FontWeight.Bolder })// 选中项字体样式 + .popupFont({ size: 30, weight: FontWeight.Bolder })// 弹出框内容的字体样式 + .itemSize(28)// 每一项的尺寸大小 + .alignStyle(IndexerAlign.Left)// 弹出框在索引条右侧弹出 + .popupItemBorderRadius(24)// 设置提示弹窗索引项背板圆角半径 + .itemBorderRadius(14)// 设置索引项背板圆角半径 + .popupBackgroundBlurStyle(BlurStyle.NONE)// 设置提示弹窗的背景模糊材质 + .popupTitleBackground(0xCCCCCC)// 设置提示弹窗首个索引项背板颜色 + .popupSelectedColor(0x00FF00) + .popupUnselectedColor(0x0000FF) + .popupItemFont({ size: 30, style: FontStyle.Normal }) + .popupItemBackgroundColor(0xCCCCCC) + .onSelect((index: number):void => { + console.info(this.value[index] + ' Selected!') + }) + .onRequestPopupData((index: number):string[] => { + if (this.value[index] == 'A') { + return this.arrayA // 当选中A时,弹出框里面的提示文本列表显示A对应的列表arrayA,选中B、C、L时也同样 + } else if (this.value[index] == 'B') { + return this.arrayB + } else if (this.value[index] == 'C') { + return this.arrayC + } else if (this.value[index] == 'L') { + return this.arrayL + } else { + return [] as string[] // 选中其余子母项时,提示文本列表为空 + } + }) + .onPopupSelect((index: number):void => { + console.info('onPopupSelected:' + index) + }) + .backgroundColor(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + .width('100%') + .height('100%') + } + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0040 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin).position({x:50,y:50} as Position) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0030.ets + + +@Component +struct ActionEventCommoneventDragText0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .draggable(true) + .fontSize(30) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.ets + + +@Component +struct UIAttributesModaltransitionAvoid0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 5; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType3.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Image($r('app.media.startIcon')) + .width(300).height(200) + Image($r('app.media.startIcon')) + .width(300).height(200) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/OutlinePropertiesIndex.ets + +@Component +struct OutlinePropertiesIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('使用EdgeColors的方式设置各边的边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(15 as Dimension) + .outlineColor({ left: '#e3bbbb', right: Color.Blue, top: Color.Red, bottom: Color.Green } as ResourceColor | EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用EdgeOutlineWidths的方式设置各边的边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth({top: 4,right: 0,bottom: -1,left: 1} as EdgeOutlineWidths) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlineradius的方式设置每一边边框的圆角').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .outlineRadius({topLeft:16, topRight:0, bottomLeft:-1, bottomRight:1} as OutlineRadiuses) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlinestyle的方式设置每一边边框的样式').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle({ + top:OutlineStyle.DASHED, + right:OutlineStyle.DOTTED, + bottom:OutlineStyle.SOLID, + left:OutlineStyle.DASHED + } as EdgeOutlineStyles) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineColor的方式设置边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineWidth的方式设置边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } + } +} + + +export const FLAG_OF_FILE_269: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets new file mode 100644 index 000000000..2eceb4f16 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets @@ -0,0 +1,319 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + ItemAlign, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Radio, + FlexDirection +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets + + +@Component +struct UIAttributesBackgroundInterface1350 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:-90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets + + +@Component +struct UIAttributesSelectedStyle0080 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean): void => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets + + +@Component +struct UIAttributesBackgroundInterface0330 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为100vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-10, -10], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 100, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0040.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0040 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .id('ScrollScrollbarScrolledge0040_002') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Start, { + velocity: 100000 + }) + }).id('ScrollScrollbarScrolledge0040_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0630.ets + + +@Component +struct ActionEventCommoneventDragdefault0630 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .fontColor(this.color) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.color = Color.Orange + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .fontColor(Color.Orange) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.ets + + +@Component +struct UIAttributesModaltransitionVision0150_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet:跟手") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:50, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0120.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0120 { + @State widthValue: number = 200 + @State heightValue: number = 250 + @State str: string = '你好' + build() { + Column({ space: 5 }as ColumnOptions) { + Text(this.str).width(this.widthValue).height(this.heightValue) + .id('UIComponentCommonattrFocusenhancement0120_001') + .onHover(():void => { + this.widthValue = 80 + this.heightValue = 60 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_27: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets new file mode 100644 index 000000000..0a86f8a5d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets @@ -0,0 +1,307 @@ +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ClickEvent,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, ImageSize } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets + + +@Component +struct UiAttributesFloatingLayerInterface0110 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.BottomStart}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur13.ets + +@Component +struct linearGradientBlur13 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets + + +@Component +struct UIAttributesBackgroundInterface094 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Auto) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0340.ets + + +@Component +struct ActionEventCommoneventDragdefault0340 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ right: 150 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets + + +@Component +struct UIAttributesBackgroundInterface0060 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.ets + + +@Component +struct UIAttributesColorRampBlurGradient0060 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.6,0.6],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.ets + + +@Component +struct UIAttributesColorrampInterface0540 { + @State centerX: number = 0; + @State radius:string='20%' + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: this.radius, + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.radius='50%' + this.btnShow = Visibility.None + } else { + this.radius='50%' + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0170 { + build() { + Row() { + Column() { + Button('Button-MIDDLE') + .width(106) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.2 }) + .id('UIAttributesClivkreboundeffectInterface0170_001') + Button('Button-LIGHT') + .width(106) + .margin(20) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.1 }) + .id('UIAttributesClivkreboundeffectInterface0170_002') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0230.ets + + +@Component +struct UIAttributesFocuscontrolInterface0230 { + @State focusOnTouchValue: boolean = false + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0230_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets + + +@Component +struct UIAttributesBackgroundInterface0030 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + + +export const FLAG_OF_FILE_270: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets new file mode 100644 index 000000000..0b257c266 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets @@ -0,0 +1,417 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Color,DragItemInfo,Button,Row,DragEvent,Builder,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragPreview/ActionEventCommoneventDragPreview0010.ets + + +@Component +struct UIActionEventCommonEventDragPreview0010{ + @State pixmap: image.PixelMap | undefined = undefined + @Builder + DraggingBuilder() { + Column() { + Text("DraggingBuilder") + .fontColor(Color.White) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + @State dragItemInfo: DragItemInfo = { + pixelMap: this.pixmap, + builder: () => { + this.DraggingBuilder() + }, + extraInfo: "DragItemInfoTest" + } as DragItemInfo + build() { + Row() { + Column() { + Button('拖拽') + .id("dragButton") + .width("30%") + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .dragPreview(this.dragItemInfo) + } + .width("100%") + } + .height("100%") + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0180 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0180_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0180_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0470 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0170.ets + + +@Component +struct ActionEventCommonEventMouseStyle0170 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0170_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0170" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0170_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0780.ets + + +@Component +struct ActionEventCommoneventDragdefault0780 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '第一行可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Column(){ + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Text('第二行文本').fontSize(20) + Text('第三行文本').fontSize(20) + } + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0120.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + this.text + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_271: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets new file mode 100644 index 000000000..171a5a5d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets @@ -0,0 +1,393 @@ +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + DatePicker,FlexAlign,HorizontalAlign,Margin,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding, +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, SwipeGesture, PanGesture, GestureEvent, Image, Text } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0080 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Pink :Color.White).margin({left:50,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets + + +@Component +struct UIAttributesBackgroundInterface0190 { + build() { + Column() { + Row() { + Text("BACKGROUND_ULTRA_THICK") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0250.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0250 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0140.ets + + +@Component +struct UIAttributesBcakgroundSeriable0140 { + @State top: number = 150 + @State bottom: number = 30 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.ets + + +@Component +struct UIAttributesModaltransitionAnimator0070 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.ets + + +@Component +struct UIAttributesModaltransitionSafearea0090 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0160 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0310 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("overlayButton") + .fontSize(28) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500); + Text("测试").fontSize(1).id("ceshitext") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0020.ets + + +@Component +struct UIComponentPreventdefault0020 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0020") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.ets + + +@Component +struct UIAttributesColorrampInterface0730 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0110 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + .margin({ top: 60 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_272: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets new file mode 100644 index 000000000..1a8056b4f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets @@ -0,0 +1,420 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + UnifiedData,UniformDataType, + List, + CustomBuilder, + ForEach, + ListItem, + Image, + DragItemInfo, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Button,cursorControl,Text, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.ets + + +@Component +struct UIAttributesColorrampInterface0280 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Button') + .width(400) + .height(60) + .linearGradient({ + colors:[[0x0000ff,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.ets + + +@Component +struct UIAttributesImageeffectInterface0320 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.ets + + +@Component +struct UIAttributesRenderFit0070 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0160.ets + + +@Component +struct ActionEventCommonEventMouseStyle0160 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0160_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0160" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0160_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.ets + + +@Component +struct UIAttributesColorrampInterface0370 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[-10,10], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:60 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes110.ets + + +@Component +struct UIAttributesTouchableInteraction110 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction110') + .onDragMove((): void => { + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number): void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction110_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.ets + + +@Component +struct UIAttributesImageeffectInterface0290 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.ets + + +@Component +struct UIAttributesColorrampInterface0260 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),-0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_273: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets new file mode 100644 index 000000000..0231cf28f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets @@ -0,0 +1,383 @@ +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Slider,Text,SliderStyle,SliderChangeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback, ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets + + +@Component +struct UIAttributesImageEffectProjection0080 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .sweepGradient({center: [100, 100], start: 0, end: 300, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0160.ets + + +@Component +struct UIComponentBackgroundimage0160 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightNumber.ets + +@Component +struct HightNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height:SheetSize.MEDIUM , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightNumber2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button(" height5000").fontSize(11).id('HightNumber3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: 5000, dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + }) + Button("close DEFAULT").fontSize(11).id('HightNumber4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightNumber5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:300 , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + Button("close NONE").fontSize(11).id('HightNumber6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightNumber7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:500 , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0310603.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0310603 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0310603_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0310603_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index: number) => { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index: number) => day) + }, (day: string, index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0510 { + @State radius: number = 0 + @State inSetValueOne: number = 30 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0510_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0510_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0510_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Slider({ + value: this.inSetValueOne, + min: 0, + max: 100, + style: SliderStyle.InSet + }) + .blockColor('#191970') + .trackColor('#ADD8E6') + .selectedColor('#4169E1') + .showTips(true) + .onChange((value: number, mode: SliderChangeMode):void => { + this.inSetValueOne = value + console.info('value:' + value + 'mode:' + mode.toString()) + }) + .foregroundEffect({ radius: this.radius }) + Text(this.inSetValueOne + .toFixed(0)) + .fontSize(20) + } + .width('80%') + } + } + .id('UIComponentCommonattrForegroundEffect0510_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.ets + + +@Component +struct UIAttributesColorrampInterface0400 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:true + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets + + +@Component +struct UIAttributesBackgroundInterface1400 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'AAA', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + + +export const FLAG_OF_FILE_274: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets new file mode 100644 index 000000000..1f5ae700a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets @@ -0,0 +1,413 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, SwipeGesture, SwipeDirection, GestureEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { KeyCode } from '@ohos.multimodalInput.keyCode'; + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,$r,Margin,DragEvent +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AnalyseActionEventCommoneventDrag/AnalyseActionEventCommoneventDrag0200.ets + + +@Component +struct AnalyseActionEventCommoneventDrag0200 { + build() { + Column() { + Image($r('app.media.startIcon')).width(150).height(150) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).border({width:1}).id('img') + Text('这是一个text').fontSize(30).width(100).height(80).margin({top: 30} as Margin) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).id('txt') + }.margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0770.ets + + +@Component +struct ActionEventCommoneventDragdefault0770 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0290_722.ets + + +@Component +struct UIComponentListandgridGridInterface_0290_722 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(500) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0420 { + @State rotateAngle: number = 0; + @State speed: number = 1; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void=> { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .onClick((e: ClickEvent): void => { + this.rotateAngle=this.rotateAngle+120 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0270155.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0270155 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0270155_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0270155_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .animation({ + duration: 1000, + curve: Curve.Ease + }) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0150 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes230.ets + + +@Component +struct UIAttributesTouchableInteraction230 { + @State value: string = '' + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction230') + .hitTestBehavior(HitTestMode.Transparent) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'onAction'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + + +export const FLAG_OF_FILE_275: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets new file mode 100644 index 000000000..054e08461 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets @@ -0,0 +1,424 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + FontWeight, + Padding, +} from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Flex,FlexAlign,ItemAlign,ToggleType,Toggle, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,ShadowOptions,Color,Button,ClickEvent,ButtonType, + Margin,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Text,FlexAlign,HorizontalAlign,ScrollDirection,Margin +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0330 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0200.ets + + +@Component +struct ActionEventCommoneventDragdefault0200 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .margin({top:250} as Margin) + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0050.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0050 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(2)").tabIndex(2) + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(1)").tabIndex(1) + } + Column({ space: 20 } as ColumnOptions) { + Button("未设置") + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0050 { + @State status: boolean = true + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Button(this.status ? "usingShadowBatching" : "closedShadowBatching", { type: ButtonType.Normal }) + .width("70%") + .borderRadius(8) + .margin({top:20} as Margin) + .id("button") + .onClick((e:ClickEvent) => { + this.status = !this.status + }) + } + .useShadowBatching(this.status) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.ets + + +@Component +struct UIComponentCommonattrGrayscale0040 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.ets + + +@Component +struct UIAttributesModaltransitionVision0230 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0310.ets + + +@Component +struct ActionEventControlCallback0310 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Switch') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Switch'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0670.ets + + +@Component +struct ActionEventCommoneventDragdefault0670 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0220.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0220 { + build() { + Column() { + GridRow() { + GridCol({ span: 6 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0220_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader220 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + + +export const FLAG_OF_FILE_276: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets new file mode 100644 index 000000000..456b8f7ae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets @@ -0,0 +1,483 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,List,NavigationMode,ListItem, + NavPathStack,NavDestination,Navigation,ListOptions,ForEach,TextAlign,NavPathInfo +} from '@ohos.arkui.component' + +import { State,Provide,Consume } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0430_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0430_891 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(1) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes270.ets + + +@Component +struct UIAttributesTouchableInteraction270 { + @State value: string = ''; + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction270') + .hitTestBehavior(HitTestMode.Transparent) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + this.value = 'RotationGesture onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0010_995.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0010_995 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0160.ets + + +@Component +struct UIActtonEventComdneventDracInterface0160 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0160_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0160_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid004.ets + +@Component +struct Indexbef3j { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.columnsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.ets + + +@Component +struct UIAttributesImageeffectInterface0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.ets + + +@Component +struct UIAttributesColorrampInterface0900 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5], [Color.Yellow, 1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton132.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton132 { + @Provide({alias:'pageInfos'}) pageInfos: NavPathStack = new NavPathStack() + private arr: string[] = ['pushpageOne']; + @Builder + PageMap(name: string) { + if (name === "pushpageOne") { + pageOne() + } + } + build() { + Column() { + Navigation(this.pageInfos) { + List({ space: 12 } as ListOptions) { + ForEach(this.arr, (item:string, index: number) => { + ListItem() { + Text(item) + .width("100%") + .height(72) + .backgroundColor('#FFFFFF') + .borderRadius(24) + .fontSize(16) + .fontWeight(500) + .textAlign(TextAlign.Center) + .id('pushpageOneID') + .onClick((): void=>{ + this.pageInfos.pushPath(new NavPathInfo(item,undefined)) + }) + } + }, (item:String,index:number) => String(item)) + } + .width("90%") + .margin({ top: 12 } as Margin) + } + .mode(NavigationMode.Stack) + .navDestination(this.PageMap) + } + .height('100%') + .width('100%') + .backgroundColor('#F1F3F5') + } +} +@Component +export struct pageOne { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Button('button1') + .id('button1') + .onClick((): void => { + }) + Button('button2') + .id('button2') + .onClick((): void => { + this.pageInfos.pop() + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + }.title("pushpageOne1Title") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + .id('popID') + } +} +@Component +export struct pageTwo { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent2") + }.width('100%').height('100%') + }.title("NavDestinationTitle2") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} +@Component +export struct pageThree { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent3") + }.width('100%').height('100%') + }.title("NavDestinationTitle3") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} + + +export const FLAG_OF_FILE_277: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets new file mode 100644 index 000000000..b93d4b4f2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets @@ -0,0 +1,341 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextInput, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0460.ets + + +@Component +struct ActionEventCommonEventMouseStyle0460 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0460_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0460" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0460_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0540 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0540_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0540_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0540_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextInput({ placeholder: 'I am TextInput' }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 20, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0540_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0050 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0050_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0050_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets + + +@Component +struct UIAttributesBackgroundInterface076 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "90%" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0210_300.ets + + +@Component +struct UIComponentListandgridGridInterface_0210_300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_278: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets new file mode 100644 index 000000000..30027edd4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets @@ -0,0 +1,377 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ObscuredReasons, + ClickEvent, + Column, + Margin, + Text, + Button, + Image, + Curve, + PlayMode, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions} from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,GradientDirection} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect,Visibility, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.ets + + +@Component +struct UIAttributesColorrampInterface0780 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:-90, + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0290.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + .visibility(Visibility.Hidden) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0290_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnLinearGradient.ets + +@Component +struct LinearGradientExample { + build() { + Row() { + Column() + .width(300) + .height(200) + .linearGradient({ + angle: 90, + direction: GradientDirection.Bottom, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]], + repeating: true + }).margin(5) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0090.ets + + +@Component +struct UIActtonEventComdneventDracForeground0090 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0090_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0090_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets + + +@Component +struct UIComponentMediaImageMask0050 { + @State widthSize: number = 200 + @State heightSize: number = 200 + @State flag: boolean = true + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .animation({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal + }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('start Animation').onClick((e: ClickEvent) => { + if (this.flag) { + this.widthSize = 150 + this.heightSize = 60 + } else { + this.widthSize = 250 + this.heightSize = 100 + } + this.flag = !this.flag + }).id('mask0050_button_01').margin(5) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0240.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0240 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0240_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0240_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_279: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets new file mode 100644 index 000000000..dcf9c5c37 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets @@ -0,0 +1,455 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Direction,Divider,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder,ForEach, + CustomDialogController,UniformDataType, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + List, + BorderOptions, + UnifiedData,ListItem,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0310.ets + + +@Component +struct ActionEventCommoneventDragdefault0310 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets + + +@Component +struct UIAttributesBackgroundInterface119 { + build() { + Column() { + Row() + .backgroundColor(Color.Transparent) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0070.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0070 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin为小数') + .focusBox({ + margin: LengthMetrics.px(0.1), + }) + Button('button margin 0') + .focusBox({ + margin: LengthMetrics.px(0), + }) + Button('button margin null') + .focusBox({ + margin: undefined, + }) + Button('button margin undefined') + .focusBox({ + margin: undefined, + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes100.ets + + +@Component +struct UIAttributesTouchableInteraction100 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction100') + .onDragLeave((): void =>{ + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction100_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + } + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_027.ets + +@Component +struct Grid_027 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .margin({ + left: 30, + right: 10, + top: 10, + bottom: 40 + } as Margin) + .padding({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Padding) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0190.ets + + +@Component +struct CommonEventDragVideo0190 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_CANCELED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_28: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets new file mode 100644 index 000000000..0a515ec27 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets @@ -0,0 +1,392 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, TimePickerResult, TimePicker,FontWeight } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0230.ets + + +@Component +struct ActionEventCommoneventDragInput0230 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0060 { + build() { + Column() { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0070 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0240136.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0240136 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + this.msgInfo= "trigger Grid onScrollStop" + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0240136'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0530.ets + + +@Component +struct ActionEventCommoneventDragdefault0530 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State text_align:TextAlign = TextAlign.Start + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .textAlign(this.text_align) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + this.text_align = TextAlign.Center + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .textAlign(TextAlign.Center) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.ets + + +@Component +struct UIAttributesImageeffectInterface0680 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0270 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @Builder + privateBuilder() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult):void => { + if(value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({color: Color.Red, font: {size: 15, weight: FontWeight.Lighter}}) + .textStyle({color: Color.Black, font: {size: 20, weight: FontWeight.Normal}}) + .selectedTextStyle({color: Color.Blue, font: {size: 30, weight: FontWeight.Bolder}}) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.ets + + +@Component +struct UIAttributesImageeffectInterface0240 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_280: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets new file mode 100644 index 000000000..49d041d80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets @@ -0,0 +1,445 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + CopyOptions, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + TextArea, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.ets + + +@Component +struct UIComponentCommonattrGrayscale0150 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [128, 128] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0110.ets + + +@Component +struct UIComponentBackgroundimage0110 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0950.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0950 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + TextArea({ placeholder: 'please input words' }) + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_1') + .copyOption(CopyOptions.InApp) + .width('100%') + .height(50) + .draggable(true) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0530.ets + + +@Component +struct ActionEventCommonEventMouseStyle0530 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.LOADING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0530_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0530" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0530_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.ets + + +@Component +struct UIAttributesModaltransitionVision0540 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, undefined) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0120.ets + + +@Component +struct ActionEventCommoneventDragdefault0120 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_281: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets new file mode 100644 index 000000000..842363d22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets @@ -0,0 +1,355 @@ +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions,TextInputController,TextInput ,Text,TextInputOptions} from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0450 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(40).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Text("二级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + } + @Builder + privateBuilder() { + Column() { + Text("一级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + Button("点击改变") + .id("changeTextColor") + .margin({ top: 200 } as Margin) + .fontColor("#ff6bf2de") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0120.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0120 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0040.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0040 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0460.ets + + +@Component +struct ActionEventCommoneventDragdefault0460 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State font_weight:number = 0 + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontWeight(this.font_weight) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontWeight(800) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_weight = 800 + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0140.ets + + +@Component +struct ActionEventCommoneventDragInput0140 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets + + +@Component +struct UIAttributesBackgroundInterface1380 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'10px', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0020.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0020 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): number { + if (typeof this.str == 'number') { + return Number(this.str); + } else { + this.str1 = "error" + return 0 + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller } as TextInputOptions) + .width(380) + .height(60) + .tabIndex(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.ets + + +@Component +struct UIAttributesColorRampBlurGradient0170 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0]] as Array<[Double, Double]>, direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_282: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets new file mode 100644 index 000000000..b41d61cc2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets @@ -0,0 +1,421 @@ +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Builder, + Margin +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Color,Column,List,ListOptions,ForEach,ListItem,TextAlign,Text, + Margin,FlexAlign,HorizontalAlign,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,DataChangeListener,IDataSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,LazyForEach,EdgeEffect,ScrollState,DataOperation, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.ets + + +@Component +struct UIAttributesColorrampInterface0300 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["#0000ff",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.ets + + +@Component +struct UIAttributesGraphictransformationInterface0090 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('rotate,默认参数') + .width(100) + .rotate({x:0,y:0,z:0,angle:0,centerX:"50%",centerY:"50%"} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0150.ets + + +@Component +struct ActionEventCommoneventDragdefault0150 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column() { + Row() { + Column(){ + Text('B位置') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left:30} as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0840_624.ets + + +class BasicDataSource implements IDataSource { + private listeners: Array = new Array(); + private originDataArray: Array = new Array(); + public totalCount(): number { + return 0; + } + public getData(index: number):string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener'); + this.listeners.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listeners.splice(pos, 1); + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to); + }) + } + notifyDatasetChange(operations: DataOperation[]):void{ + this.listeners.forEach(listener => { + listener.onDatasetChange(operations); + }) + } +} +class MyDataSource extends BasicDataSource { + private dataArray: Array = new Array(); + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number):string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, 0, data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public deleteData(index: number): void { + this.dataArray.splice(index, 1); + this.notifyDataDelete(index); + } + public changeData(index: number): void { + this.notifyDataChange(index); + } + operateData():void { + const totalCount = this.dataArray.length; + const batch=5; + for (let i = totalCount; i < totalCount + batch; i++) { + this.dataArray.push(`Hello ${i}`) + } + this.notifyDataReload(); + } +} +@Component +struct UIComponentListandgridGridInterface_0840_624 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + private data: MyDataSource = new MyDataSource(); + aboutToAppear() { + for (let i = 0; i <= 29; i++) { + this.data.pushData(`${i}`); + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + LazyForEach(this.data, (day: string,index:number) => { + LazyForEach(this.data, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0020 { + @State dataList: number[] = [] as number[] + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 100; index++) { + this.dataList.push(index); + } + } + build() { + Column() { + List({ space: 10 } as ListOptions) { + ForEach(this.dataList, (index: number,i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + }.shadow({ radius: 50, color: this.colors[index%4] } as ShadowOptions) + .height(40) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.ets + + +@Component +struct UIAttributesGraphictransformationInterface0390 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .scale({y:1.5} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0280 { + @State mainColor:Color=Color.Orange; + @Builder + privateBuilder() { + Column(){ + Button("点击改变主控件背景色").onClick((e: ClickEvent) => { + this.mainColor=Color.Pink + }).height(30).width(150).margin({top:30,right:60} as Margin) + }.height(100).width("100%").backgroundColor("#F26BED").id("changeButton") + } + build() { + Column() { + Text('主控件文字背景').backgroundColor(this.mainColor).fontSize(50).margin({top:300,right:60} as Margin); + }.overlay((): void => {this.privateBuilder()},{offset:{x:0,y:80}}).height(500).width(500).backgroundColor("#ff6bf2b8") + } +} + + +export const FLAG_OF_FILE_283: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets new file mode 100644 index 000000000..6ba67685c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets @@ -0,0 +1,394 @@ +import { Entry, Component, Column,Grid,Text,ClickEvent,GridItem,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,Margin,ColumnOptions,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.ets + + +@Component +struct UIAttributesImageeffectInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('2.png') + .width(200) + .height(250) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: -50, + offsetY: 50 + } as ShadowOptions) + .margin({ left: 10 } as Margin) + Button('aaa') + .width(150) + .height(50) + .backgroundColor(Color.Red) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.ets + + +@Component +struct UIAttributesImageeffectInterface0110 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0120.ets + + +@Component +struct UIComponentBackgroundimage0120 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.ets + + +@Component +struct UIAttributesTransparencyInterface0030 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0') + .onClick((e:ClickEvent) => { + this.opacityValue = 0; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0020.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0020 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeWidth 负数') + .focusBox({ + strokeWidth: LengthMetrics.px(-20) + }) + Button('button strokeWidth 小数') + .focusBox({ + strokeWidth: LengthMetrics.vp(0.5), + }) + Button('button strokeWidth -null') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth undefined') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth 0') + .focusBox({ + strokeWidth: LengthMetrics.px(0), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.ets + + +@Component +struct UIAttributesImageeffectInterface0620 { + build() { + Column() { + Row() { + Text('test') + .blur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets + + +@Component +struct UIAttributesBackgroundInterface1340 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[0xD3E0DC,0.4],[Color.Red,0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.ets + + +@Component +struct UIAttributesImageeffectInvert0030 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.8, + high: 0.3, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.ets + + +@Component +struct UIAttributesColorrampInterface0520 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow,1]], + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.None + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets + + +@Component +struct UiAttributesFloatingLayerInterface0150 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.TopEnd}) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.ets + + +@Component +struct UIAttributesModaltransitionVision0080_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0060.ets + + +@Component +struct ActionEventControlCallback0060 { + @State context: string = "" + build() { + Column(){ + Grid(){ + GridItem(){ + Text("gritItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + + +export const FLAG_OF_FILE_284: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets new file mode 100644 index 000000000..cf9a64777 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets @@ -0,0 +1,449 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,ResourceColor, + Color,Padding,RowOptions,Flex,FlexDirection,CustomBuilder,Placement,PopupStateChangeParam,CustomPopupOptions,Position +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r, LinearGradientBlurOptions, + GradientDirection +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility, + Text,ImageError,DragResult,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,ColumnOptions,Padding, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment,RadialGradientOptions, + AttributeModifier,RowAttribute,Resource,AlignRuleOption +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text, Select, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0380.ets + + +@Component +struct ActionEventControlCallback0380 { + @State context: string = "hello" + @State index: number = 2 + build() { + Column() { + Text(this.context) + Select([{ value: 'aaa'}, + { value: 'bbb'}, + { value: 'ccc'}, + { value: 'ddd'}]) + .selected(this.index) + .height(50) + .width(250) + .onSelect(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_borderRadius.ets + +@Component +struct ButtonBorderRadius { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .borderRadius(50) + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .labelStyle({}) + .borderRadius(50) + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 1, + maxFontSize: 20, + font: { + size: 30, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 16, + maxFontSize: 20, + font: { + size: 10, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bold, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Lighter, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Medium, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/animations/entry/src/main/ets/testability/pages/radialGradient/radialGradientResource.ets + +@Component +struct radialGradientResource { + @State sizeW: number = 100 + build() { + Column({ space: 5 } as ColumnOptions) { + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(this.sizeW) + .height(this.sizeW) + } + .width('100%') + .padding({ top: 30 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0170.ets + + +@Component +struct ActionEventCommoneventDragCard0170 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + } + .id('ActionEventCommoneventDragCard0170_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.COPY + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur14.ets + +@Component +struct linearGradientBlur14 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0.5, 0.5], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ImageLinearGradientBlur.ets + +@Component +struct ImageLinearGradientBlur { + build() { + Column({ space: 5 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('90%') + .height('90%') + .linearGradientBlur(undefined, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton170.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton170 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_170_2') + .width(380) + .height(60) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_170_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_285: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets new file mode 100644 index 000000000..aec531b84 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets @@ -0,0 +1,356 @@ +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0080.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0080 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.px(20) + }) + Button('button margin 5vp、strokeColor app、strokeWidth 20lpx') + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0200.ets + + +@Component +struct ActionEventCommoneventDragInput0200 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_003.ets + +@Component +struct onlyColumnGapGrid { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnGapGrid onPageShow') + this.columnsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .columnsGap(this.columnsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.ets + + +@Component +struct UIAttributesColorrampInterface0320 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["rgba(0,0,255,0.5)",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets + + +@Component +struct UIAttributesImageEffectProjection0210 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:$r('app.media.startIcon'), y:$r('app.media.startIcon')} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0250.ets + + +@Component +struct ActionEventCommoneventDragInput0250 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(2, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0160.ets + + +@Component +struct ActionEventCommoneventDragText0160 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_286: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets new file mode 100644 index 000000000..0721078ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets @@ -0,0 +1,412 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Text,Rating, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.ets + + +@Component +struct UIAttributesColorrampInterface0650 { + @State startX: number = 0; + @State endX: number = 90; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: this.startX, + end: this.endX, + repeating: false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.startX=20 + this.endX=140 + this.btnShow = Visibility.None + } else { + this.startX=0 + this.endX=90 + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0390.ets + + +@Component +struct ActionEventControlCallback0390 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Rating() + .height(50) + .width(250) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0020 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0020_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0020_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0090.ets + + +@Component +struct ActionEventCommoneventDragInput0080 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.ets + + +@Component +struct UIAttributesColorrampInterface0040 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:false + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0470_052.ets + + +@Component +struct UIComponentListandgridGridInterface_0470_052 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 2fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(0xff0000) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0040 { + build() { + Column() { + Row() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(0.8) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0090.ets + + +@Component +struct ActionEventCommoneventDragdefault0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + private txt:string = '可拖拽文本' + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Text(this.txt).backgroundColor(Color.Yellow).fontColor(Color.Red) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Text(item).fontSize(20) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.txt); + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_287: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets new file mode 100644 index 000000000..8a0131c63 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets @@ -0,0 +1,431 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + ColumnOptions, + Toggle,ToggleType +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,Padding, + PinchGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets + + +@Component +struct UIAttributesBackgroundInterface114 { + build() { + Column() { + Row() + .backgroundColor(Color.Green) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_967.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_967 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .constraintSize({ maxWidth: 200 }) + .rowsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.ets + + +@Component +struct UIAttributesColorRampBlurGradient0140 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[2,2]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0080 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0080_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes30.ets + + +@Component +struct UIAttributesTouchableInteraction30 { + @State Text: string = 'Text PinchGesture'; + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Text(this.Text) + .id('UIAttributesTouchableInteraction30') + .width('90%') + .height(50) + .hitTestBehavior(HitTestMode.None) + .width(180).height(80) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.pinchValue = this.scaleValue; + this.Text = 'PinchGesture success'; + }) + ) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0140 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0140_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets + + +@Component +struct UiAttributesFloatingLayerInterface0160 { + build() { + Column() { + Image('2.png') + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets + + +@Component +struct UIAttributesBackgroundInterface116 { + build() { + Column() { + Row() + .backgroundColor(Color.Orange) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets + + +@Component +struct UIAttributesSelectedStyle0110 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: false }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean):void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0020 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().translate({ x: 0, y: 0, z: 0 } as matrix4.TranslateOption); + build() { + Column() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + } + .height(60) + .width(60) + .backgroundColor(Color.Gray) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + Button('x+10') + .id('UIAttributesGraphicTransformationSkew0020_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y+10') + .id('UIAttributesGraphicTransformationSkew0020_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 10, z: 0 } as matrix4.TranslateOption); + }) + Button('z+10') + .id('UIAttributesGraphicTransformationSkew0020_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: 10 } as matrix4.TranslateOption); + }) + Button('x-10') + .id('UIAttributesGraphicTransformationSkew0020_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y-10') + .id('UIAttributesGraphicTransformationSkew0020_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: -10, z: 0 } as matrix4.TranslateOption); + }) + Button('z-10') + .id('UIAttributesGraphicTransformationSkew0020_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: -10 } as matrix4.TranslateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0160.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0160 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0160_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader160 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + + +export const FLAG_OF_FILE_288: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets new file mode 100644 index 000000000..bdc5f3854 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets @@ -0,0 +1,365 @@ +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import I18n from '@ohos.i18n'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction, GridDirection,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + ClickEvent, + TextInputController, + Button, + TextInput, + MenuPolicy +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets + + +@Component +struct UiAttributesFloatingLayerInterface0040 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:0}}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0230 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + } + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0340.ets + + +@Component +struct SubAceActionWindowWindowCustom0340 { + controller: TextInputController = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextInput({ text: "123456", controller: this.controller }) + .id('input') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.ets + + +@Component +struct UIAttributesColorRampBlurGradient0070 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.RightBottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_024.ets + +@Component +struct Grid_024 { + @State numbers: Array = new Array() + @State dirction: Direction = Direction.Auto + @State layoutDirection: GridDirection|undefined = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 150; i++) { + this.numbers.push(i + '') + } + } + build() { + Column() { + Column() { + Text('镜像').fontSize(12) + Row() { + Button("Auto") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionAuto_024') + Button("Ltr") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionLtr_024') + Button("Rtl") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Rtl; + }).id('DirectionRtl_024') + } + Text('layoutDirection').fontSize(12) + Row() { + Button("Row") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + }).id("layoutDirectionRow") + Button("RowReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.RowReverse + }).id("layoutDirectionRowReverse_024") + } + Row() { + Button("Column") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Column + }).id("layoutDirectionColumn") + Button("ColumnReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.ColumnReverse + }).id("layoutDirectionColumnReverse_024") + } + Text('layoutDirection').fontSize(12) + Row() { + Button("汉语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("zh-Hans"); + }).id('chineseLang') + Button("阿拉伯语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ar-EG"); + }).id('arLang') + Button("维吾尔语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ug"); + }).id('ugLang') + } + } + .width('100%') + .height('40%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(20) + .minCount(3) + .cellLength(0) + .layoutDirection(this.layoutDirection) + .direction(this.dirction) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.ets + + +@Component +struct UIAttributesColorrampInterface0740 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_Dark.ets + +@Component +struct ThemeColorMode_Dark { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0060 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: -1 }) + .id('UIAttributesClivkreboundeffectInterface0060_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0520 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("“1234567890",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0510.ets + + +@Component +struct ActionEventControlCallback0510 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content510' }) + .id("ActionEventControlCallback0510_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + + +export const FLAG_OF_FILE_289: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets new file mode 100644 index 000000000..4df1289c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets @@ -0,0 +1,336 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import common from '@ohos.app.ability.common' + +import window from '@ohos.window'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,RowOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Padding, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + ScrollDirection, + XComponentController, + focusControl, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0250_323.ets + + +@Component +struct UIComponentListandgridGridInterface_0250_323 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceActionEventIntercept/SubAceActionEventIntercept0100.ets + + +@Component +struct SubAceActionEventIntercept0100 { + private flag: boolean = true; + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput() + .key('SubAceActionEventIntercept0100_key1') + .onAppear(() => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key1'); + }) + .defaultFocus(true) + Button('') + .width(0) + .height(0) + .key('SubAceActionEventIntercept0100_key3') + } + .padding({ top: 20 } as Padding) + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key3'); + }) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0250.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0250 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + horVerSwitch() { + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('横竖屏切换').id('btn2').onClick((event:ClickEvent) => { + this.horVerSwitch() + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets + + +@Component +struct UIAttributesBackgroundInterface0290 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[0xAEE1E1,0.0],[0xD3E0DC,0.3], [0xFCD1D1,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest12.ets + +@Component +struct ZIndexDynamicModificationTest12 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 8 //text的value: 'ABC设置zIndex: -1 -2 0' + this.zIndexValueIndex = 7 //ABC设置zIndex: -1 -2 0 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_29: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets new file mode 100644 index 000000000..232cd82fe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets @@ -0,0 +1,427 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,SearchController,TextInputController,TextInputOptions,Line ,SearchOptions,CancelButtonSymbolOptions,CancelButtonStyle +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Alignment, + Builder, + PinchGesture, + GestureEvent, + Image, + Direction, + FontWeight +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets + + +@Component +struct UIAttributesBackgroundInterface1360 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0290 { + @State imagePath:string="2.png"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder) + } + @Builder + privateBuilder() { + Column(){ + Image(this.imagePath).height(500).margin({top:70} as Margin) + .overlay((): void => {this.privateBuilderTwo()},{align:Alignment.Center}) + Button("点击改变图片") + .margin({top:30} as Margin) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .id("changeImagePath") + .onClick((e: ClickEvent) => { + this.imagePath="openeye.png" + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur18.ets + +@Component +struct linearGradientBlur18 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(80, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0330.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0330 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0050_922.ets + + +interface style { + style: GridItemStyle +} +@Component +struct UIComponentListandcridGridUxconsistency_0050_922 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + @State style1:style = { + style: GridItemStyle.NONE + } as style + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({ style: GridItemStyle.NONE } as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.ets + + +@Component +struct UIAttributesImageeffectInvert0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 1, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton151.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton151 { + @State changeValue: string = '' + searchController: SearchController = new SearchController() + build() { + Column() { + Button("ComponentDialog") + .id('ComponentDialog') + .onClick((): void => { + }) + TextArea({text:"我是TextArea我是Text"}) + .defaultFocus(true) + Search({ value: this.changeValue, placeholder: '请输入内容', controller: this.searchController } as SearchOptions) + .onChange((value: string):void => { + this.changeValue = value + }) + .margin(20) + Button('获取焦点') + .onClick((): void => { + }) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @State text: string = '' + controller: TextInputController = new TextInputController( + ) + @Builder + buildContent(): void { + Column() { + TextInput({ + text: this.text, + placeholder: '请输入内容', + controller: this.controller, + } as TextInputOptions) + .defaultFocus(true) + .onChange((value: string): void => { + this.text = value + }) + .cancelButton({ style: CancelButtonStyle.CONSTANT } as CancelButtonSymbolOptions) + Line() + TextArea({text:"我是TextArea我是Text"}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.ets + + +@Component +struct UIAttributesImageeffectInterface0280 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(-5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.ets + + +@Component +struct UIAttributesColorrampInterface0080 { + @State angleY:number=0 + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + angle:this.angleY + } as LinearGradientOptions) + .animation({ + duration: 1000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.angleY=90 + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0150.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0150 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0150_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + + +export const FLAG_OF_FILE_290: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets new file mode 100644 index 000000000..4eb4cfdd3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets @@ -0,0 +1,472 @@ +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, + TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.ets + + +@Component +struct UIAttributesColorrampInterface0890 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization143.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization143 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + PageMap(name: string, param: Object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('Back') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.ets + + +@Component +struct UIAttributesImageEffectProjection0260 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets + + +@Component +struct UIAttributesBackgroundInterface0130 { + build() { + Column() { + Row() { + Text("LIGHT") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.LIGHT}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0020.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0020 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0020") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0280_218.ets + + +@Component +struct UIComponentListandgridGridInterface_0280_218 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(-5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0750.ets + + +@Component +struct ActionEventCommoneventDragInterface0750 { + @State arr: string[] = [] as string[] + @State arr2: string[] = [] as string[] + private mIndex: number = -1 + private startIndex: number = -1 + @State text: string = 'drag' + @State msgInfo: string = '' + private listType: number = -1 + aboutToAppear(): void { + for (let i = 0; i < 5; i++) { + this.arr.push(i+"") + } + for (let i = 0; i < 5; i++) { + this.arr2.push(i+"") + } + } + @Builder + pixelMapBuilder() { //拖拽过程样式 + Column() { + Text(this.text) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xF5F5F5) + } + } + changeIndex(type: number, itemIndex: number, insertIndex: number) { //交换数组位置 + let temp: string; + if (this.listType == type && type == 1) { + temp = this.arr[itemIndex]; + this.arr[itemIndex] = this.arr[insertIndex]; + this.arr[insertIndex] = temp; + } else if (this.listType == type && type == 2) { + temp = this.arr2[itemIndex]; + this.arr2[itemIndex] = this.arr2[insertIndex]; + this.arr2[insertIndex] = temp; + } else if (this.listType != type && type == 1) { + temp = this.arr2[insertIndex]; + this.arr.splice(insertIndex, 1, this.text); + this.arr2.splice(this.startIndex, 1, temp); + } else if (this.listType != type && type == 2) { + temp = this.arr[insertIndex]; + this.arr2.splice(insertIndex, 1, this.text); + this.arr.splice(this.startIndex, 1, temp); + } + } + build() { + Column() { + Text(this.msgInfo); + List({ space: 10 } as ListOptions) { + ForEach(this.arr, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list1"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onItemMove((from: number, to: number):boolean => { + console.info('pkgg 1 onItemMove 列表元素发生移动时触发,from:' + from + ' to:' + to) + this.mIndex = -1 + if (from == to) { + return false + } else { + return true + } + }) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder => { + console.info('pkgg 1 onItemDragStart 开始拖拽列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + this.text = this.arr[itemIndex] + "" + this.startIndex = itemIndex + this.listType = 1 + return ()=>{this.pixelMapBuilder()} + }) + .onItemDragEnter((event: ItemDragInfo):void => { + console.info('pkgg 1 onItemDragEnter 拖拽进入列表元素范围内时触发,x:' + event.x + ' y:' + event.y) + }) + .onItemDragMove((event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + if (this.mIndex != itemIndex) { + this.mIndex = itemIndex + console.info('pkgg 1 onItemDragMove 拖拽在列表元素范围内移动时触发,x:' + event.x + ' y:' + event.y + + ' itemIndex:' + + itemIndex + ' insertIndex:' + insertIndex) + } + }) + .onItemDragLeave((event: ItemDragInfo, itemIndex: number):void => { + console.info('pkgg 1 onItemDragLeave 拖拽离开列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + if (!isSuccess || insertIndex >= this.arr.length) { + return + } + if (insertIndex == -1) { + return + } + console.info('pkgg 1 onItemDrop 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发 ,x:' + + event.x + ' y:' + + event.y + ' itemIndex:' + itemIndex + ' insertIndex:' + insertIndex + ' isSuccess:' + isSuccess) + this.changeIndex(1, itemIndex, insertIndex) + }) + Column().width('100%').height('2%').backgroundColor(Color.Blue) + List({ space: 10 } as ListOptions) { + ForEach(this.arr2, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list2"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let numberObj = JSON.parseJsonElement(extraParams!,(key: string, value: jsonx.JsonElement): jsonx.JsonElement => { + if(key === "selectedindex") return value; + return value; + }) as Object; + console.info('call onDragStart' + numberObj) + }) + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_291: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets new file mode 100644 index 000000000..5b4b44772 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets @@ -0,0 +1,315 @@ +import { + Entry, + Component, + ClickEvent, + ObscuredReasons, + Margin, + Column, + Text, + Image, + $r, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0320937.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0320937 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + this.msgInfo= "trigger Grid onScrollIndex" + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0320937'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0580.ets + + +@Component +struct ActionEventCommoneventDragdefault0580 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '最后拖拽文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions) { + Text('前面的文本') + Text('中间的文本') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest14.ets + +@Component +struct ZIndexDynamicModificationTest14 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.isImage = true // Image XYZ设置zIndex: 3 2 1 + this.zIndexValueIndex = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets + + +@Component +struct UIComponentMediaImageMask00100 { + @State widthSize: number = 100; + @State heightSize: number = 100; + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .defaultFocus(true) + .obscured([ObscuredReasons.PLACEHOLDER]) + Image($r('app.media.startIcon')) + .width(this.widthSize) + .height(this.heightSize) + .margin(10) + .obscured([ObscuredReasons.PLACEHOLDER]) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_292: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets new file mode 100644 index 000000000..92820e078 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets @@ -0,0 +1,478 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Area +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Image,Text,Margin,Text,$r,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Padding, + Scroller, + Flex, + RowOptions,PopupStateChangeParam,Position, + FlexDirection,Scroll,CustomBuilder,ResourceColor,CustomPopupOptions,EdgeEffect,ScrollSnapAlign, + Placement +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0200 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .margin({ bottom: 10 } as Margin) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton166.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton166 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + scroller: Scroller = new Scroller; + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + Scroll(this.scroller) { + Column() { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_166_2') + .margin({top:10} as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + }.width('100%') + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_166_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0300319.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0300319 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0300319_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollPage({ next: true }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0300319_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult | undefined => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0080.ets + + +@Component +struct ActionEventControlCallback0080 { + @State context: string = "" + build() { + Column(){ + Image($r('app.media.startIcon')).width(100).height(100).borderRadius(30).margin({ left: 3, right: 10 } as Margin) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes390.ets + + +@Component +struct UIAttributesTouchableInteraction390 { + @State value: string = 'Text' + @State sizeValue: string = '' + build() { + Column() { + Text(this.value) + .id('UIAttributesTouchableInteraction390') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(Color.Green) + .margin(30) + .fontSize(20) + .onClick((): void => { + this.value = this.value + 'Text' + }) + .onAreaChange((oldValue: Area, newValue: Area): void => { + console.info(`Ace: on area change, oldValue is ${String(oldValue)} value is ${String(newValue)}`) + this.sizeValue = String(newValue) + }) + Text('new area is: \n' + this.sizeValue).margin({ right: 30, left: 30 } as Margin) + } + .width('100%').height('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row2.ets + +@Component +struct Row2Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0630.ets + + +@Component +struct UIActionEventCommonEventDragInterface0630 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent) => { + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_293: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets new file mode 100644 index 000000000..61141660f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets @@ -0,0 +1,319 @@ +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rect,FlexAlign,Color,Margin,Text,RectOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + NavDestination,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.ets + + +@Component +struct UIAttributesColorrampInterface0330 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[Color.Blue,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.ets + + +@Component +struct UIAttributesImageeffectInterface0590 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0290 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets + + +@Component +struct UIAttributesImageEffectProjection0130 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets + + +@Component +struct UIAttributesBackgroundInterface0540 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets + + +@Component +struct UIAttributesImageEffectProjection0190 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:50, y:50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0420 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0420_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0420_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0420_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Rect({ + width: '90%', + height: 80 + } as RectOptions) + .fill(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0420_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0430.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0430 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: (curves.springMotion(0.8, 0.4) as ICurve) } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0030.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0030 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_294: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets new file mode 100644 index 000000000..234adcf79 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets @@ -0,0 +1,418 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Line, + Color,Blank,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,Callback,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,GestureEvent,Text,Color,Button,Margin,GestureGroup, + GestureMode,LongPressGesture,PanGesture +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0100.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0100 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_FILL) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0030.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(false) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0110629.ets + + +@Component +struct UIComponentListandgridXommonSmooth0110629 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0110629') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0110629_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0110629_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0150.ets + + +@Component +struct ActionEventControlCallback0150 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Button('Button1') + .id("ActionEventControlCallback0150_01") + .width(80) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + this.change = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + }) + .onActionUpdate((event?: GestureEvent) => { + }) + .onActionEnd(() => { + }) + ) + ) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0200_308.ets + + +@Component +struct UIComponentListandgridGridInterface_0200_308 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Off) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0020_579.ets + + +@Component +struct UIComponentListandgridGridEvents_0020_579 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragEnter((event: ItemDragInfo) => { + this.text1 = 'onItemDragEnter'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0210 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + Blank() + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_295: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets new file mode 100644 index 000000000..e2c5676bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets @@ -0,0 +1,379 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,RowSplit,Text,TextAlign,ListScroller,List, + ListItem,Axis, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, GridItem, Blank, GridDirection, Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/rowsGapsCellLength.ets + +@Component +struct GridExample { + @State numbers: Array = new Array() + @State rowsGap: number = 10 + @State cellLength: number = 0 + aboutToAppear() { + for (let i = 1; i <= 10; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(this.rowsGap) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(this.cellLength) + .layoutDirection(GridDirection.Row) + Button('') + .id('rowsGap_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.rowsGap+=2 + }) + Button('') + .id('cellLength_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.cellLength+=50 + }) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0020 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets + + +@Component +struct UIAttributesImageEffectProjection0180 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:0, y:0} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0070 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .width('80%') + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets + + +@Component +struct UIAttributesBackgroundInterface0200 { + build() { + Column() { + Row() { + Text("Regular") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Regular) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.ets + + +@Component +struct UIAttributesTransparencyInterface0020 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0.5') + .onClick((e:ClickEvent) => { + this.opacityValue = 0.5; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0090.ets + + +@Component +struct UIAttributesFocuscontrolInterface0090 { + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + Button("3") + .focusOnTouch(false) + Button("focusOnTouch true") + .id('UIComponentCommonattrResult0030_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(false) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0390 { + listScroller: ListScroller = new ListScroller() + build() { + Column() { + List({scroller:this.listScroller }){ + ListItem(){ + RowSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + }.listDirection(Axis.Horizontal) + .id('button') + .height('100%') + .width('100%') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0130.ets + + +@Component +struct UIAttributesBcakgroundSeriable0130 { + @State top: number = 220 + @State bottom: number = 20 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.ets + + +@Component +struct UIAttributesColorrampInterface0390 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:false + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_296: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets new file mode 100644 index 000000000..faa725501 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets @@ -0,0 +1,421 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + Scroll,ForEach, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions,BlurStyle, + $$,SheetSize,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput,Margin,SearchOptions,TextInputOptions,SearchController, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0110.ets + + +@Component +struct UIAttributesFocuscontrolInterface0110 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + .groupDefaultFocus(true) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0020.ets + + +@Component +struct ActionEventCommoneventClickDfx0020 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0020") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxModalTransition/ComponentPopupBoxModalTransitionStyle0010.ets + + +@Component +struct ComponentPopupBoxModalTransitionStyle0010 { + @State isShow: Boolean = false; + @Builder + myBuilder() { + Column() { + Button('') { + Text("CONTEXT") + }.height(50).width(200) + } + } + build() { + Column() { + Button("show builder") + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.MEDIUM, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" }, + preferType: SheetType.CENTER, + offset: { x: '-50vp', y: '-50vp' } + } as SheetOptions).id('ComponentPopupBoxModalTransitionStyle0010_button_01') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.ets + + +@Component +struct UIAttributesImageeffectInterface0080 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.ets + + +@Component +struct UIAttributesModaltransitionInteration0080 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor:'#88000000', + enableOutsideInteractive: false, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets + + +@Component +struct UIAttributesImageEffectProjection0170 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Visible) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0160.ets + + +@Component +struct ActionEventCommoneventDragInput0160 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.ets + + +@Component +struct UIAttributesModaltransitionSafearea0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Scroll() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + TextInput({ text: `inpput ${item}` }) + .id(`input${item}`) + .margin({top: 20} as Margin) + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets + + +@Component +struct UIAttributesBackgroundInterface081 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({} as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0090.ets + + +@Component +struct UIComponentBackgroundimage0090 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.ets + + +@Component +struct UIAttributesColorrampInterface0450 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_297: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets new file mode 100644 index 000000000..5858166fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets @@ -0,0 +1,433 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,FontWeight,TimePickerResult, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, + Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { XComponent, Component, Column, ColumnOptions } from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0960.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0960 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0960_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets + + +@Component +struct UIAttributesBackgroundInterface1430 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets + + +@Component +struct UiAttributesFloatingLayerInterface0120 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Bottom}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.ets + + +@Component +struct UIAttributesGraphictransformationInterface0310 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('centerY:"50%"') + Image('cat.jpg') + .width(400) + .scale({centerY:"50%"} as ScaleOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/CAPI_NEW2/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0070.ets + + +@Component +struct ActionEventCommoneventDragdefault0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(12) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.ets + + +@Component +struct UIAttributesModaltransitionAnimator0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + detents: [300, 500] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.ets + + +@Component +struct UIAttributesGraphictransformationInterface0290 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1,y:1,z:1,centerX:"50%",centerY:"50%"}') + Image('cat.jpg') + .width(100) + .scale({x:1,y:1,z:1,centerX:"50%",centerY:"50%"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0570 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0570_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0570_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0570_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult):void => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0570_004') + .layoutWeight(1) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_298: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets new file mode 100644 index 000000000..33fec0ddf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets @@ -0,0 +1,356 @@ +import { + Entry, + Text, + Column, + Component, + Builder, + FlexAlign, + Scroll, + Divider, + TextAlign, + OutlineStyle, + ImageSize, + OutlineRadiuses, + Color +} from '@ohos.arkui.component'; + +import { State, } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, + $$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets + + +@Component +struct UIAttributesImageEffectProjection0040 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + .colorBlend(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.ets + + +@Component +struct UIAttributesImageeffectInterface0250 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0220.ets + + +@Component +struct ActionEventCommoneventDragInput0220 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0170.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0170 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.ets + + +@Component +struct UIAttributesModaltransitionVision0710 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.FIT_CONTENT] as [SheetSize|String|Double|Resource], + preferType: SheetType.BOTTOM, + height: SheetSize.FIT_CONTENT + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes40.ets + + +@Component +struct UIAttributesTouchableInteraction40 { + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('RotationGesture angle:' + this.angle) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(80) + .rotate({ angle: this.angle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction40') + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + }) + ) + }.width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/BorderAndOutlineSetIndex.ets + +@Component +struct BorderAndOutlineSetIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('内边框角度大于外边框').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderRadius(100) + .outlineRadius(50) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角Dimension为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角outlineRadius为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineColor(0xAFEEEE) + .outlineWidth(5) + .outlineRadius({topLeft:15, topRight:15, bottomLeft:15, bottomRight:15} as OutlineRadiuses) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dashed').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dotted').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为solid').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + + +export const FLAG_OF_FILE_299: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets new file mode 100644 index 000000000..bcaa04215 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets @@ -0,0 +1,488 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row,Visibility,DragEvent,List,BorderOptions,UnifiedData, + ListItem, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,UniformDataType, + Color,ForEach,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets + + +@Component +struct UIAttributesBackgroundInterface0410 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: '3.14rad', + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0440_612.ets + + +@Component +struct UIComponentListandgridGridInterface_0440_612 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes80.ets + + +@Component +struct ImageExample { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction80') + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction80_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0150.ets + + +@Component +struct UIComponentBackgroundimage0150 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('') + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0470.ets + + +@Component +struct ActionEventCommonEventMouseStyle0470 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0470_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0470" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0470_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0040.ets + + +@Component +struct UIActtonEventComdneventDracForeground0040 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0040_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0040_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_3: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets new file mode 100644 index 000000000..2b7658bcd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets @@ -0,0 +1,401 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,EdgeOutlineWidths +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.ets + + +@Component +struct UIAttributesGraphictransformationInterface0370 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1.5,centerX:"dfd",centerY:"gj"}') + Image('cat.jpg') + .width(100) + .scale({x:1.5,centerX:"dfd",centerY:"gj"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0240.ets + + +@Component +struct ActionEventCommoneventDragdefault0240 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010.ets + + +@Component +struct UIAttributesRenderFit0010 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.CENTER) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0210.ets + + +@Component +struct UIAttributesBcakgroundSeriable0210 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets + + +@Component +struct UIAttributesBackgroundInterface107 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.Y) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ClipIsTrueIndex.ets + +@Component +struct ClipExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Row() { + Image($r('app.media.startIcon')) + .width(200) + .height(100) + } + .clip(true) + .borderRadius(20) + } + .width('100%') + .margin({ top: 15 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.ets + + +@Component +struct UIAttributesModaltransitionSafearea0020 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({top: 20} as Margin) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0010 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 } as matrix4.ScaleOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x*0.5') + .id('UIAttributesGraphicTransformationSkew0010_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*0.5') + .id('UIAttributesGraphicTransformationSkew0010_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 0.5, z: 1 } as matrix4.ScaleOption); + }) + Button('z*0.5') + .id('UIAttributesGraphicTransformationSkew0010_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 0.5 } as matrix4.ScaleOption); + }) + Button('x*2') + .id('UIAttributesGraphicTransformationSkew0010_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*2') + .id('UIAttributesGraphicTransformationSkew0010_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 2, z: 1 } as matrix4.ScaleOption); + }) + Button('z*2') + .id('UIAttributesGraphicTransformationSkew0010_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 2 } as matrix4.ScaleOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.ets + + +@Component +struct UIAttributesImageeffectInterface0520 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0070.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0070 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth({left: 1, right: 0, top: 4, bottom: -1} as EdgeOutlineWidths) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.ets + + +@Component +struct UIAttributesImageeffectInterface0210 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(-45) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/fcocusEvent_c_rh/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_30: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets new file mode 100644 index 000000000..ad1cf3631 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets @@ -0,0 +1,492 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.ets + + +@Component +struct UIAttributesRenderFit0050 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0360.ets + + +@Component +struct ActionEventCommonEventMouseStyle0360 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0360_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0360" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0360_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets + + +@Component +struct UIAttributesBackgroundInterface0250 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: -10, + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0330.ets + + +@Component +struct ActionEventCommonEventMouseStyle0330 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RESIZE_LEFT_RIGHT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0330_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0330" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0330_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentColor.ets + +@Component +struct ContentColor { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentColor1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow true").fontSize(11).id('ContentColor2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Blue, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentColor3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('ContentColor4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.ets + + +@Component +struct UIAttributesColorRampBlurGradient0050 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Left} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid009.ets + +@Component +struct UIComponentGrid009 { + @State numbers: Array = new Array() + @State maxCountValue: number = 0 + @State minCountValue: number = 2 + layoutDirectionValue: GridDirection = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + @State TextWidth: number = 50 + @State TextHeight: number = 90 + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.TextHeight) + .width(this.TextWidth) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .width(170) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCountValue) + .minCount(this.minCountValue) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('Infinity') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = Infinity + }).id('btn01') + Button('maxCountValue value is 2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = 2 + }).id('btn02') + Button('maxCountValue value is -2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = -2 + }).id('btn03') + Button('TextWidth value is 100') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Column/GridDirection.ColumnReverse)as GridDirection + this.maxCountValue = 0 + this.TextHeight = 90 + this.TextWidth = 100 + this.minCountValue = -2 + }).id('btn04') + Button('GridItem size 150*50') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.maxCountValue = -2 + this.TextHeight = 150 + this.TextWidth = 50 + this.minCountValue = 0 + }).id('btn05') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + + +export const FLAG_OF_FILE_300: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets new file mode 100644 index 000000000..39ffde6d6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets @@ -0,0 +1,332 @@ +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin, ForEach, + NavigationMode, ListOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Scroll,ColumnOptions,Column,Button,ClickEvent,Margin,Text +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/IsShow.ets + +@Component +struct IsShowTF { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('IsShow1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow flase").fontSize(11).id('IsShow2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar,backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('IsShow3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('IsShow4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0180 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0120 { + @State isTextVisible:boolean = true + onButtonClick(){ + this.isTextVisible = false + } + build() { + Column(){ + Row(){ + if (this.isTextVisible){ + Text('Text子组件').fontSize(50).fontColor(Color.White) + .margin({left:100,top:50} as Margin) + } + }.width('100%').height(200).backgroundColor(Color.Green) + Button("HideNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible50.ets + + +@Component +struct UIComponentGridAccessible50 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .accessibilityGroup(true) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickScenarios/ActionEventCommoneventClickScenarios0020.ets + +@Component +struct ActionEventCommoneventClickScenarios0020 { + @State txt:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Button('button').onClick((e:ClickEvent) => { + this.txt = '触发点击事件' + }) + .id('btn') + Text(this.txt).fontSize(20).margin(10) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.ets + + +@Component +struct UIAttributesColorrampInterface0440 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:-20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0060.ets + + +@Component +struct ActionGestureRegister0060 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0170 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0170_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0170_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_301: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets new file mode 100644 index 000000000..57fe91e7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets @@ -0,0 +1,440 @@ +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Driver } from '@kit.TestKit'; + +import { Entry, Component, Row, Column, Color, Image, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility,ImageError,DragResult, + Text,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Color,Column,List,ListOptions,FlexAlign,HorizontalAlign, + Margin,ShadowOptions,TextAlign,LazyForEach,ListItem,Text, + IDataSource,DataChangeListener +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets + + +class BasicDataSource implements IDataSource { + private listenerList: DataChangeListener[] = [] as DataChangeListener[] + private originDataArray: string[] = [] as string[]; + public totalCount(): number { + return 0; + } + public getData(index: number): string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listenerList.indexOf(listener) < 0) { + console.info('add listener'); + this.listenerList.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listenerList.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listenerList.splice(pos, Number(1)); + } + } + notifyDataReload(): void { + this.listenerList.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listenerList.forEach(listener => { + listener.onDataMove(from, to); + }) + } +} +export class DataSource extends BasicDataSource { + private dataArray: string[] = [] as string[]; + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number): string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, Number(0), data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public reloadData(list: string[]) { + this.dataArray = list + this.notifyDataReload() //重新加载 + } +} +@Component +struct UIAttributesImageEffectUseShadowBatching0010 { + @State dataList: DataSource = new DataSource() + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 20; index++) { + this.dataList.pushData(index.toString()); + } + } + build() { + Column() { + List({ space: 20 } as ListOptions) { + LazyForEach(this.dataList, (index: string, i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + } + .shadow({ radius: 200, color: this.colors[Number(index)%4] } as ShadowOptions) + .height(120) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0180.ets + + +@Component +struct ActionEventCommoneventDragCard0180 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + }.id('ActionEventCommoneventDragCard0180_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.MOVE + }) + .onDrop((event: DragEvent, extraParams?: string):void=>{ + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0080.ets + + +@Component +struct UIComponentGridAccessible0080 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State dir: Direction = Direction.Ltr + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .direction(this.dir) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.dir = Direction.Rtl + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0240.ets + + +@Component +struct ActionEventCommoneventDragInput0240 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0540 { + build() { + Row() { + Column() { + Image("2.png") + } + .width(300) + .height(300) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("13216549546519849646518946515616516165161616165161656195415915919",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0400 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(20) + .border({ width: 3 }) + .width(100) + .height(50) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(40) + .width(200) + .height(100) + .backgroundColor(Color.Green) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ).overlay((): void => {this.overlayBuilder()}) + .margin({top:150} as Margin) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_302: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets new file mode 100644 index 000000000..1b9175bd5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets @@ -0,0 +1,409 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Toggle, + ImageSize, + Column, + ColumnOptions,ToggleType +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0070 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Column() + .width(100) + .height(100) + .borderWidth(1) + Column() + .width(100) + .height(100) + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets + + +@Component +struct UIAttributesImageEffectProjection0090 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .radialGradient({center: [100, 100], radius: 100, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets + + +@Component +struct UIAttributesSelectedStyle0100 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean): void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets + + +@Component +struct UIAttributesBackgroundInterface0530 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0090 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0200.ets + + +@Component +struct UIActtonEventComdneventDracInterface0200 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0200_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0200_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0300.ets + + +@Component +struct UIAttributesBcakgroundSeriable0300 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width('100%') + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.ets + + +@Component +struct UIAttributesImageeffectInvert0060 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 0.1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0070.ets + + +@Component +struct UIComponentGridAccessible0070 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State colNum: string = '1fr 1fr 1fr 1fr 1fr' + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate(this.colNum) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.colNum = '1fr 1fr 1fr 1fr' + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_303: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets new file mode 100644 index 000000000..cbc33eca6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets @@ -0,0 +1,361 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Color,ClickEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0010 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Column(){ + } + .blendMode(BlendMode.SRC_IN) + .backgroundColor(this.isClick == true ? Color.Transparent : Color.Pink) + .height(300).width('100%') + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0030.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0030 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0160.ets + + +@Component +struct ActionEventControlcallback0160 { + @State context: string = "" + build() { + Column(){ + Text('text') + .height('80%').width('100%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0160 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1 }) + .id('UIAttributesClivkreboundeffectInterface0160_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets + + +@Component +struct UiAttributesFloatingLayerInterface0030 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid005.ets + +@Component +struct UIComponentGrid005 { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State rowsTemplateValue: string = "1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplateValue) + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('repeat(auto-fit, 90px)') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.rowsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur5.ets + +@Component +struct linearGradientBlur5 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.ets + + +@Component +struct UIComponentCommonattrGrayscale0010 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0110.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0110 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0110_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0110_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.ets + + +@Component +struct UIAttributesColorrampInterface0430{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%" + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_304: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets new file mode 100644 index 000000000..f9637152d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets @@ -0,0 +1,387 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Image,$r,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0040 { + build() { + Column({space:10} as ColumnOptions) { + Column({space:5} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0530.ets + + +@Component +struct ActionEventCommoneventDragInterface0530 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.ets + + +@Component +struct UIComponentCommonattrGrayscale0020 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [-10, -10] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets + + +@Component +struct UIAttributesBackgroundInterface0280 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为20%发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: "20%", + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.ets + + +@Component +struct UIComponentCommonattrGrayscale0060 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Thick.ets + +@Component +struct BlurStyle_Thick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thick, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets + + +@Component +struct UIAttributesBackgroundInterface073 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopEnd) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0650.ets + + +@Component +struct ActionEventCommoneventDragdefault0650 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽中文文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListAndGridGridAutoStretch/UIComponentListAndGridGridAutoStretch0190274.ets + + +@Component +struct HelloComponent1 { + @State message: string = 'Hello, World'; + aboutToAppear() { + console.log('1114' + this.message + " aboutToAppear") + } + aboutToDisappear() { + console.log('1114' + this.message + " aboutToDisappear") + } + build() { + Text(this.message) + } +} +@Component +struct UIComponentListAndGridGridAutoStretch0190274 { + data2: Array = new Array(0, 1, 2, 3, 4, 5) + cachedCount1: number = 2 + build() { + Column({ space: 10 } as ColumnOptions) { + Text('auto-stretch 先根据设定的列宽计算列数,余下的空间会均分到每个列间距中').width('90%') + Grid() { + ForEach(this.data2, (item: number,index:number) => { + GridItem() { + Text('N' + item).height(80); + } + .backgroundColor(Color.Orange); + HelloComponent1({ message: "Item:" + item }); + }) + } + .width('90%') + .border({ width: 1, color: Color.Black }) + .columnsTemplate('repeat(auto-stretch, 90)') + .columnsGap(10) + .rowsGap(10) + .height(150) + .cachedCount(this.cachedCount1); + Button("change cachedCount") + .onClick((event?: ClickEvent) => { + this.cachedCount1 = 3; + }).id('UIComponentListAndGridGridAutoStretch0190274_001'); + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_305: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets new file mode 100644 index 000000000..6f2446d33 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets @@ -0,0 +1,458 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, $r,Image,DragPreviewMode,DragPreviewOptions, + Margin,Row +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragThumbnail/ActionEventCommoneventDragThumbnail0080.ets + + +@Component +struct ActionEventCommoneventDragThumbnail0080 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width("100%") + .draggable(true) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO } as DragPreviewOptions) + .id('commoneventDragThumbnail0080') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0040.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0040 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart') + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface074.ets + + +@Component +struct UIAttributesBackgroundInterface074 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopStart) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0230.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0230 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('90%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('70%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('50%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + }.height('100%') + .resizeable(true) // 可拖动 + }.width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0200.ets + + +@Component +struct UIAttributesModaltransitionVision0200 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:'100%', + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommonEventDragDefault0110.ets + + +@Component +struct ActionEventCommonEventDragDefault0110 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('A位置Image拖拽') + .fontSize('30dp') + .margin(20) + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('view-1') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('B位置可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .id('view-2') + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number+.ets + +@Component +struct Number_zheng { + build() { + Column() { + Text('扩展尺寸: 100').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: 100, bottom: 100, left: 100, right: 100 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0220.ets + + +@Component +struct UIAttributesBcakgroundSeriable0220 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0220.ets + + +@Component +struct CommonEventDragVideo0220 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent): void => { + event.useCustomDropAnimation = false + if (event?.useCustomDropAnimation) { + this.status = "useCustomDropAnimation = true" + } else { + this.status = "useCustomDropAnimation = false" + } + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_306: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets new file mode 100644 index 000000000..1fcf9e179 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets @@ -0,0 +1,342 @@ +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, SizeOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface085.ets + + +@Component +struct UIAttributesBackgroundInterface085 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0380.ets + + +@Component +struct UIAttributesBackgroundInterface0380 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: false + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0100_632.ets + + +@Component +struct HelloComponent { + @State message: string = 'Hello, World'; + aboutToAppear() { + console.log('1114' + this.message + " aboutToAppear") + } + aboutToDisappear() { + console.log('1114' + this.message + " aboutToDisappear") + } + build() { + Text(this.message) + } +} +@Component +struct UIComponentListandgridGridInterface_0100_632 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + HelloComponent({ message: "Item:" + day }); + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .cachedCount(2) + .columnsTemplate("repeat(auto-fit,90px)") + .margin(20) + .id('UIComponentListandgridGridInterface_0100_632') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1370.ets + + +@Component +struct UIAttributesBackgroundInterface1370 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0380.ets + + +@Component +struct UIAttributesGraphictransformationInterface0380 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale,设置参数{y:0}') + Image('cat.jpg') + .width(100) + .scale({y:0} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0020.ets + + +@Component +struct UIAttributesBackgroundInterface0020 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0230.ets + + +@Component +struct UIAttributesImageeffectInterface0230 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible30.ets + + +@Component +struct UIComponentGridAccessible30 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0090.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0090 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Pink : Color.White) + .margin({left:20,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0020.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0020 { + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(true) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_307: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets new file mode 100644 index 000000000..c53d06bfe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets @@ -0,0 +1,406 @@ +import { Entry, Component, Column,Row,Text,List,ListItem,ClickEvent,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + PopupButton, + PopupOptions, + PopupStateChangeCallback, + PopupStateChangeParam, + Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, ImageSize, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface071.ets + + +@Component +struct UIAttributesBackgroundInterface071 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Start) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface096.ets + + +@Component +struct UIAttributesBackgroundInterface096 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface090.ets + + +@Component +struct UIAttributesBackgroundInterface090 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "90%" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0220.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0220 { + @State handlePopup: boolean = false; + @State handlePopup1: boolean = false; + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 } as Margin) + .id('overlay0220_button_02') + .onClick((e: ClickEvent) => { + this.handlePopup1 = !this.handlePopup1; + }) + .fontSize(20) + .fontColor(Color.Black) + .bindPopup(this.handlePopup1, { + message: 'Options2', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup1 = !this.handlePopup1 + console.info('confirm Button click') + } + }as PopupButton + }as PopupOptions) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 } as Margin) + } + build() { + Column() { + Button('show dialog') + .id('overlay0220_button_01') + .onClick((e: ClickEvent) => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: false, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + }as PopupButton, + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + }as PopupButton, + onStateChange: (e:PopupStateChangeParam) => { + console.info(JSON.stringify(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + }as PopupStateChangeCallback + } as PopupOptions).overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Start }) + }.width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0040.ets + + +@Component +struct UIAttributesModaltransitionVision0040 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[400, 500, 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0040.ets + + +@Component +struct UIAttributesColorRampBlurGradient0040 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.24],[1,0.64],[1,1]], direction: GradientDirection.LeftBottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0200.ets + + +@Component +struct ActionEventCommonEventMouseStyle0200 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0200_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0200" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0200_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur19.ets + +@Component +struct linearGradientBlur19 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(undefined, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0100.ets + + +@Component +struct ActionEventControlCallback0100 { + @State context: string = "" + build() { + Row(){ + Text(this.context) + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + } + } + } + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + + +export const FLAG_OF_FILE_308: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets new file mode 100644 index 000000000..20fcd5a6b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets @@ -0,0 +1,423 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Color,Hyperlink,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,ColumnOptions,Column,Button,ClickEvent,Text,Margin +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,BarState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, GridDirection, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, $r, Position } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Divider,Gauge,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/AdaptiveColor_AVERAGE.ets + +@Component +struct AdaptiveColor_AVERAGE { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0060.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0060 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + @State focusableValue: boolean = false + build() { + Column({ space: 5 }as ColumnOptions) { + Text('你好').focusable(this.focusableValue) + Image(this.iconStr).width(68).height(68).focusable(this.focusableValue) + .onClick((e: ClickEvent) => { + }) + Divider() + .focusable(this.focusableValue) + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface079.ets + + +@Component +struct UIAttributesBackgroundInterface079 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: $r('app.media.startIcon'), y: 100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0160.ets + + +@Component +struct UIAttributesColorRampBlurGradient0160 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(80, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0120.ets + + +@Component +struct UIAttributesBackgroundInterface0120 { + build() { + Column() { + Row() { + Text("SYSTEM") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.SYSTEM}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0030.ets + + +@Component +struct UIAttributesImageeffectInterface0030 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_004.ets + +@Component +struct onlyColumnLayoutDirection { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State layoutDirectValue: GridDirection = GridDirection.Row + onPageShow() { + console.info('onlyColumnLayoutDirection onPageShow') + this.layoutDirectValue = GridDirection.Column + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .layoutDirection(this.layoutDirectValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClick/ActionEventCommoneventClick0040.ets + + +@Component +struct ActionEventCommoneventClick0040 { + @State txt: string = '111' + build() { + Column({ space: 5 } as ColumnOptions) { + Button('button').onClick((e:ClickEvent) => { + this.txt = '触发点击事件' + }) + Text(this.txt).fontSize(20).margin(10) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0180.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0180 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Column() { + Hyperlink('https://www.baidu.com/', 'Go to the baidu website') { + } + .color(Color.Blue) + } + Column() { + Hyperlink('https://www.baidu.com/', 'Go to the baidu website') { + } + .color(Color.Blue) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0520.ets + + +@Component +struct ActionEventCommonEventMouseStyle0520 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_CIRCLE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0520_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0520" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0520_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_309: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets new file mode 100644 index 000000000..c7e868d60 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets @@ -0,0 +1,396 @@ +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,FlexAlign,Margin, + Scroll,Text,TextAlign,Grid,GridItem,ForEach,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0160 { + @State radius: number = 0 + @State numbers: string[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0160_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0160_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0160_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + .rowStart(1) + .rowEnd(2) + .columnStart(1) + .columnEnd(2) // 同时设置合理的行列号 + .foregroundEffect({ radius: this.radius }) + ForEach(this.numbers, (item: string,index:number) => { + GridItem() { + Text(item) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height(300) + } + } + .id('UIComponentCommonattrForegroundEffect0160_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface60.ets + + +@Component +struct AceActionEventCommoneventClickInterface60 { + @State text:string='sourceTool = '; + @State number1:number=0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text+this.number1) + .id('AceActionEventCommoneventClickInterface60') + .onClick((event: ClickEvent)=> { + this.number1 = event.sourceTool; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0040_342.ets + + +@Component +struct UIComponentListandgridGridEvents_0040_342 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragMove( (event: ItemDragInfo, itemIndex: number, insertIndex: number) => { + this.text1 = 'onItemDragMove'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0070.ets + + +@Component +struct UIActtonEventComdneventDragInput0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0070_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDragInput0070_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest01.ets + +@Component +struct ZIndexTest01 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + + +export const FLAG_OF_FILE_31: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets new file mode 100644 index 000000000..39107f323 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets @@ -0,0 +1,396 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Flex, + Column, + Text, + Image, + Image, + FlexAlign, + Button, + ObscuredReasons, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,EdgeEffect,OnScrollCallback, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin, +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + TouchEvent, + TextArea +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/textAreaActionEventCommon.ets + + +@Component +struct textAreaActionEventCommon { + @State screenPostion: string= '' + build() { + Column() { + TextArea({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .key('key_textArea_action_event_common_001') + .onTouch((event: TouchEvent) => { + let touchIndex = event.touches[0]; + this.screenPostion = 'windowX:' + touchIndex.windowX + ';windowY:' + touchIndex.windowY + }) + Text(this.screenPostion ) + .width('100%') + }.height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface10.ets + + +@Component +struct AceActionEventCommoneventClickInterface10 { + @State text:string=''; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text) + .id('AceActionEventCommoneventClickInterface10') + .onClick((event: ClickEvent)=> { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0260273.ets + + +@Component +struct UIComponentListandgridXommonScrollto0260273 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State yOffset: number = 800 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring, { alwaysEnabled: true }) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('Button1') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: this.yOffset + 350, + animation: { duration: 500, canOverScroll: true } + }) + }).id('btn1') + Button('Button') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 0 + }) + }).id('btn') + Button('Button2') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: this.yOffset + 650, + animation: { duration: 500, canOverScroll: true } }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0680.ets + + +@Component +struct ActionEventCommoneventDragdefault0680 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0110.ets + + +@Component +struct UIComponentMediaImageMask0110 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | undefined = [ObscuredReasons.PLACEHOLDER]; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick((e: ClickEvent) => { + this.widthSize = this.widthSize + 50; + this.heightSize = this.heightSize + 50; + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = undefined; + } + }).id('mask0110_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0050.ets + + +@Component +struct UIComponentCommonattrGrayscale0050 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [-10, -10] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0600.ets + + +@Component +struct UIAttributesModaltransitionVision0600 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: { + title: '正常显示标题' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0010.ets + + +@Component +struct UIAttributesModaltransitionAnimator0010 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_310: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets new file mode 100644 index 000000000..b88bba007 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets @@ -0,0 +1,401 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,Image,$r +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0600.ets + + +@Component +struct ActionEventCommoneventDragdefault0600 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '加标点符号的文本,。、' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions) { + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0020.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0020 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 }as ColumnOptions) { + Image(this.iconStr).width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Image(this.iconStr).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Image(this.iconStr).width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0100.ets + + +@Component +struct UIAttributesModaltransitionSafearea0100 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0120.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0120 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .backgroundColor(Color.White) + .width(180) + .height(180) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .id('UIAttributesFloatingLayerOverlay0120_001') + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0240_264.ets + + +@Component +struct UIComponentListandgridGridInterface_0240_264 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + .padding(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0230.ets + + +@Component +struct ActionEventCommoneventDragInterface0230 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0140.ets + + +@Component +struct UIAttributesImageEffectProjection0140 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(1) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0100.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0100 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + } + .width(180) + .height(180) + .alignItems(HorizontalAlign.Center) + .backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0100_001') + .onClick((e: ClickEvent) => { + try { + } catch (error) { + } + ; + }) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_311: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets new file mode 100644 index 000000000..9a40ce8d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets @@ -0,0 +1,400 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,$r,Image,Resource, +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import promptAction from '@ohos.promptAction'; + +import { BusinessError } from '@ohos.base'; + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Component, Column, TextController,DragEvent,ColumnOptions, + Text,TextInput,CopyOptions,Color,Margin,DragResult,Rectangle, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragForeground/ActionEventCommoneventDragForeground0140.ets + + +@Component +struct ActionEventCommoneventDragForeground0140 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + @State wid: number = 100 + @State hei: number = 100 + @State input: string = 'abcabc' + private textController: TextController = new TextController() + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 0, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + this.backAnimator!.onFinish = () => { + _this.flag = true + console.info(_this.TAG, 'backAnimator onfinish') + } + this.backAnimator!.onRepeat = () => { + console.info(_this.TAG, 'backAnimator repeat') + } + this.backAnimator!.onCancel = () => { + console.info(_this.TAG, 'backAnimator cancel') + } + this.backAnimator!.onFrame = (value: number) => { + _this.wid = value + _this.hei = value + } + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag'}`) + TextInput({ placeholder: '请拖入内容', text: this.input }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .foregroundColor(Color.Yellow) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + if (this.backAnimator) { + this.backAnimator?.play() + } + event.useCustomDropAnimation = false; + }) + Text('可拖入文本') + .draggable(true) + .margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .foregroundColor(Color.Yellow) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + event.useCustomDropAnimation = false; + event.setResult(DragResult.DRAG_SUCCESSFUL); + if (this.backAnimator) { + this.backAnimator?.play() + } + }) + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0480.ets + + +@Component +struct UIAttributesModaltransitionVision0480 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0100.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0100 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0160.ets + + +@Component +struct UIAttributesBcakgroundSeriable0160 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImage($r('app.media.startIcon')) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0230.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0230 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0230_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0230_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface083.ets + + +@Component +struct UIAttributesBackgroundInterface083 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventGetinspectorTree/AceActionEventGetinspectorTree010.ets + + +@Component +struct AceActionEventGetinspectorTree010 { + private imageOne: Resource = $r('app.media.startIcon'); + @State src: Resource = this.imageOne + build(){ + Column(){ + Text("get inspector") + Image(this.src) + .width(100) + .height(100) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0500.ets + + +@Component +struct ActionEventCommoneventDragdefault0500 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(300) + .height(300) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(300) + .height(300) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_312: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets new file mode 100644 index 000000000..6f28ed8f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets @@ -0,0 +1,402 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, ListOptions,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Menu, + ImageFit, + MenuItem, + MenuItemOptions, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,OnScrollCallback +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0080.ets + + +@Component +struct ActionEventCommoneventDragInput0080 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible20.ets + + +@Component +struct UIComponentGridAccessible20 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0480_955.ets + + +@Component +struct UIComponentListandgridGridInterface_0480_955 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 2fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor('#FF0000') + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => {; + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0210.ets + + +@Component +struct UIAttributesGraphictransformationInterface0210 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('不设置rotate') + Image('cat.jpg') + .width(100) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/AdaptiveColor_DEFAULT.ets + +@Component +struct AdaptiveColor_DEFAULT { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0070.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0070 { + @Builder + OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + }.width(400).height(400).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0010.ets + + +@Component +struct ActionGestureRegister0010 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0020.ets + + +@Component +struct UIAttributesModaltransitionAnimator0020 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_313: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets new file mode 100644 index 000000000..472afa722 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets @@ -0,0 +1,440 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, + ButtonType,ClickEvent,Visibility,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Padding,Rect,MouseEvent,MouseAction +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + TextAlign, + Margin +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0330647.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0330647 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + this.msgInfo= "trigger Grid onScrollIndex" + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0330647'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1320.ets + + +@Component +struct UIAttributesBackgroundInterface1320 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[0xAEE1E1,0.2],[0xD3E0DC,0.2],[0xFCD1D1, 0.6]], + repeating:false, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0590.ets + + +@Component +struct UIAttributesBackgroundInterface0590 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "200grad", + end: "400grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0270.ets + + +@Component +struct UIAttributesImageeffectInterface0270 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0120.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0120 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_009.ets + +@Component +struct onlyRowCellLength { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State cellLengthValue: number = 1 + onPageShow() { + console.info('onlyRowCellLength onPageShow') + this.cellLengthValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('60%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .cellLength(this.cellLengthValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes210.ets + + +@Component +struct UIAttributesTouchableInteraction210 { + @State mouseText: string = ''; + build() { + Column() { + Rect() + .id('UIAttributesTouchableInteraction210') + .width('90%') + .height(50) + .fillOpacity(0) + .stroke(Color.Red) + .hitTestBehavior(HitTestMode.None) + .strokeWidth(3) + .width(180).height(80) + .onMouse((event: MouseEvent):void => { + if(event.action == MouseAction.Press){ + this.mouseText = 'Mouse click' ; + } + }) + Text(this.mouseText) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_031.ets + +@Component +struct Grid_031 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4') + @State numbers2: Array = new Array('0', '1','2','3','4','5') + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number): [number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string, index:number) => { + ForEach(this.numbers1, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0580.ets + + +@Component +struct UIAttributesColorrampInterface0580 { + @State btnShow: Visibility = Visibility.Visible; + @State radius:string ='20%' + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: this.radius, + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.radius='60%' + this.btnShow = Visibility.Hidden + } else { + this.radius='20%' + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_314: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets new file mode 100644 index 000000000..69814c715 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets @@ -0,0 +1,357 @@ +import { + Entry, + Text, + FontWeight, + Row, + Column, + Component, + Color, + $rawfile +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Font } from '@ohos.arkui.UIContext'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { CustomColors, CustomTheme, } from '@ohos.arkui.theme' + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, + List,ListItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0100.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0100 { + build() { + Column() { + List(){ + ListItem(){ + ColumnSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('8').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('9').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('10').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + }.width('100%') + } + .id('button') + .height('100%') + .width('100%') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0360.ets + + +@Component +struct UIAttributesTouchableInteraction0360 { + @State message: string = ''; + @State show: boolean = false; + build() { + Row() { + Column() { + Button('changeShow') + .id('UIAttributesTouchableInteraction0360_001') + .onClick((): void => { + this.show = !this.show; + }) + if (this.show){ + Button('testButton') + .onAppear(() => { + this.message = 'testButton onAppear'; + }) + .onDisAppear(()=>{ + this.message = 'testButton onDisAppear'; + }) + } + Text(this.message) + } + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0230.ets + + +@Component +struct UIAttributesImageEffectProjection0230 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: true} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface087.ets + + +@Component +struct UIAttributesBackgroundInterface087 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: -434, height: "280px" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0250_822.ets + + +@Component +struct UIComponentListandgridXommonScrollto0250_822 { + @State numbers: Array = new Array() + @State text: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0; i < 50; i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string,index: number) => day) + } + .id('0') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .edgeEffect(EdgeEffect.Spring) + .width('90%') + .backgroundColor(0xFAEEE0) + .height('60%') + .onReachStart(() => { + this.text.push('ReachStart') + }) + .onReachEnd(() => { + this.text.push('ReachEnd') + }) + Text(`触顶/底回调:${this.text}`) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0160.ets + + +@Component +struct ActionEventCommoneventDragdefault0160 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + .margin({top:30} as Margin) + .border({ width: 1 }) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0490.ets + + +@Component +struct ActionEventCommoneventDragdefault0490 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽 文字' + @State font_weight:number = 0 + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/homePage.ets + +@Entry({routeName:'TestHSPHome'}) +@Component +export struct IndexYtu5h { + @State message: string = ''; + aboutToAppear(): void { + const fontTTF = $rawfile('iconfont.ttf') + let font = new Font() + font.registerFont({ familyName: "testIconFont", familySrc: fontTTF }) + } + build() { + Row() { + Column() { + Text('label') + .fontFamily("testIconFont") + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_315: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets new file mode 100644 index 000000000..e053b3cbf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets @@ -0,0 +1,430 @@ +import { Entry, Component, Column,ResourceStr,$r,Builder,Menu,ColumnOptions,MenuItem, + MenuItemGroup,Margin,FontWeight,MenuItemGroupOptions,MenuItemOptions,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ColumnOptions,MouseEvent, + Rect,Padding, + MouseButton,MouseAction +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0180.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0180 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr) + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + } + .justifyContent(FlexAlign.Center) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible10.ets + + +@Component +struct UIComponentGridAccessible10 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_036.ets + +@Component +struct Grid_036 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12','13','14','15') + scroller1: Scroller = new Scroller() + @State columnsTemplate: string = '1fr 1fr 2fr' + @State rowsTemplate: string = '1fr 1fr 2fr' + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(60) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .columnsTemplate(this.columnsTemplate) + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width(300) .height(300) + .backgroundColor(0xFAEEE0) + .border({width:1} as BorderOptions) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("Both1") + .id('Both1') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr 2fr 1fr'; + this.rowsTemplate='1fr 1fr 1fr' + }) + } + ListItem(){ + Button("Both2") + .id('Both2') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr a 1fr'; + this.rowsTemplate='1fr 1fr 1fr' + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0360.ets + + +@Component +struct UIAttributesImageeffectInterface0360 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes220.ets + + +@Component +struct UIAttributesTouchableInteraction220 { + @State hoverText: string = 'no hover'; + @State mouseText: string = ''; + @State action: string = ''; + @State mouseBtn: string = ''; + @State color: Color = Color.Blue; + build() { + Column({ space: 20 } as ColumnOptions) { + Rect() + .width(180).height(80) + .id('UIAttributesTouchableInteraction220') + .hitTestBehavior(HitTestMode.None) + .onMouse((event: MouseEvent):void => { + if(event){ + switch (event.button) { + case MouseButton.None: + this.mouseBtn = 'None'; + break; + case MouseButton.Left: + this.mouseBtn = 'Left'; + break; + case MouseButton.Right: + this.mouseBtn = 'Right'; + break; + case MouseButton.Back: + this.mouseBtn = 'Back'; + break; + case MouseButton.Forward: + this.mouseBtn = 'Forward'; + break; + case MouseButton.Middle: + this.mouseBtn = 'Middle'; + break; + } + switch (event.action) { + case MouseAction.Hover: + this.action = 'Hover'; + break; + case MouseAction.Press: + this.action = 'Press'; + break; + case MouseAction.Move: + this.action = 'Move'; + break; + case MouseAction.Release: + this.action = 'Release'; + break; + } + this.mouseText = 'onMouse:\nButton = ' + this.mouseBtn + + '\nAction = ' + this.action + '\nXY=(' + event.x + ',' + event.y + ')' + + '\nwindowXY=(' + event.windowX + ',' + event.windowY + ')'; + } + }) + Text(this.mouseText) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0470.ets + + +@Component +struct UIAttributesImageeffectInterface0470 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend(Color.Blue) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0230.ets + + +@Component +struct UIAttributesBcakgroundSeriable0230 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0340.ets + + +@Component +struct ActionEventControlCallback0340 { + @State context: string = "" + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + MenuItemGroup({ header: '小标题' } as MenuItemGroupOptions) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions).id('MenuItem') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('MenuItem'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + MenuItem({ + startIcon: $r('app.media.startIcon'), + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + } + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + } as MenuItemOptions) + } + } + build() { + Column({space: 20} as ColumnOptions) { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .id('Column') + .bindMenu(this.MyMenu) + .width('100%') + Text(this.context).margin({ top: 20 } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_316: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets new file mode 100644 index 000000000..48b98a694 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets @@ -0,0 +1,393 @@ +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, ClickEvent, Button, + Margin, NavigationTitleMode, NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import inspector from '@ohos.arkui.inspector' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface080.ets + + +@Component +struct UIAttributesBackgroundInterface080 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: -100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0180.ets + + +@Component +struct ActionEventCommoneventDragInput0180 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0850.ets + + +@Component +struct UIAttributesColorrampInterface0850 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0], [Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0090.ets + + +@Component +struct UIAttributesBackgroundInterface0090 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0080.ets + + +@Component +struct UIComponentCommonattrGrayscale0080 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [-10, -10] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0170.ets + + +@Component +struct UIAttributesBackgroundInterface0170 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0070.ets + + +@Component +struct UIActtonEventComdneventDracForeground0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0070_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0070_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0090.ets + + +@Component +struct ActionGestureRegister0090 { + @State isActiveWLAN: boolean = false + @State isActiveBluetooth: boolean = false + @State context: string = ""; + build() { + Navigation(new NavPathStack()) { + Text(this.context).margin({ top: 20 } as Margin); + } + .height('100%') + .width('100%') + .title('设置') + .backgroundColor("#F2F3F5") + .titleMode(NavigationTitleMode.Free) + .mode(NavigationMode.Auto) + } +} + + +export const FLAG_OF_FILE_317: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets new file mode 100644 index 000000000..45c3b5d19 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets @@ -0,0 +1,413 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Grid, Edge, Margin, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import image from '@ohos.multimedia.image'; + +import { Entry, Component, Column,Button,Row,ButtonType,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Color, + FlexAlign,Builder,ClickEvent +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, Row, ObscuredReasons} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Toggle, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + ColumnOptions,ToggleType +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0120.ets + + +@Component +struct UIAttributesSelectedStyle0120 { + @State isOn: boolean = true; + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: this.isOn }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean):void => { + console.info('Component status:' + isOn) + } ) + Button('Click') + .id('UIAttributesSelectedStyle0120') + .onClick((e:ClickEvent) => { + this.isOn = false; + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0230.ets + + +@Component +struct UIAttributesColorrampInterface0230 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + angle:180, + direction:GradientDirection.Bottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/obscured.ets + +@Component +struct ObscuredExample { + build() { + Row() { + Column({space:20} as ColumnOptions) { + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .textIndent(5) + .fontSize(20).fontColor(Color.Black) + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .margin(5) + .fontSize(20).fontColor(Color.Black) + Text('This is "遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .padding(5) + .fontSize(30).fontColor(Color.Black) + } + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton141.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton141 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((e:ClickEvent): void => { + this.button1BC = Color.Green + }) + Button("Set Illegal height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent): void => { + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("button2") + .id('button2ID') + .backgroundColor(this.button2BC) + .onClick((): void => { + this.button2BC = Color.Green; + }) + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0080.ets + + +@Component +struct UIAttributesRenderFit0080 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM_LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0060.ets + + +@Component +struct ActionEventCommoneventDragInterface0060 { + build() { + Row() { + Column() { + Button('/resource/image.jpeg',{ type: ButtonType.Normal, stateEffect: true }) + .width(200) + .height(50) + .borderRadius(100) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .id('dragInterface0060') + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0010.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0010 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .id('ScrollScrollbarScrolledge0010_002') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Start) + }).id('ScrollScrollbarScrolledge0010_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0140.ets + + +@Component +struct ActionEventCommoneventDragdefault0140 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column() { + Flex() { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left:30} as Margin) + } + Row() { + Column(){ + Text('B位置') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_318: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets new file mode 100644 index 000000000..5b31bc7ab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets @@ -0,0 +1,429 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,Button,ClickEvent,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import router from '@ohos.router'; + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,DragEvent,Button, + TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0080.ets + + +@Component +struct UIAttributesColorRampBlurGradient0080 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.RightTop} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0010.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_019.ets + +@Component +struct Grid09 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置minCount属性值为-3').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .layoutDirection(GridDirection.Column) + .minCount(-3) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ShowDragBarChange.ets + +@Component +struct ShowDragBarChange { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ShowDragBarChange1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 dragBar flase").fontSize(11).id('ShowDragBarChange2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: false,backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ShowDragBarChange3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 dragBar ture").fontSize(11).id('ShowDragBarChange4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0270.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0270 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + Button('MarginChange').onClick((e:ClickEvent)=>{ + this.mar = 10; + }).id('margin') + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0170.ets + + +@Component +struct UIActtonEventComdneventDracInterface0170 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0170_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0170_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest6.ets + +@Component +struct ZIndexDynamicModificationTest6 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex: number = 0 + @State zIndexValue: Array> = + new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], + [999999, 9999, 9]) + @State zIndexValueIndex: number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex: number = 0 //组件的宽高的初始值 + @State isImage: boolean = false + @State isVideo: boolean = false + onPageShow() { + this.textValueIndex = 2 //text的value: 'CBA设置zIndex: 0 0 0' + this.whValueIndex = 1 //组件顺序设置为CBA + this.zIndexValueIndex = 1 //ABC设置zIndex: 0 0 0 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if (this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + } + .width('90%') + .height('30%') + .border({ width: 1, color: Color.Red } as BorderOptions) + .alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({ width: 1, color: Color.Red }).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]) + .height(this.whValue[this.whValueIndex][1]) + .backgroundColor(0xFFCCCC) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]) + .height(this.whValue[this.whValueIndex][3]) + .backgroundColor(0xCCFFFF) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]) + .height(this.whValue[this.whValueIndex][5]) + .backgroundColor(0xFFFACD) + .align(Alignment.TopStart) + }.width('90%').height('18%').border({ width: 1, color: Color.Red } as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_319: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets new file mode 100644 index 000000000..68faeb34c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets @@ -0,0 +1,393 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + QRCode,HorizontalAlign,ScrollDirection,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + HorizontalAlign,ScrollDirection,Counter,TextAlign,Button,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization128.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization128 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0090 { + @State radiusValue: number = 0; + @State value1: number = 0; + @State value2: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Counter() { + Text(this.value1.toString()) + } + .onInc(():void => { + this.value1++ + }) + .onDec(():void => { + this.value1-- + }) + Counter() { + Text(this.value2.toString()) + } + .foregroundEffect( + { radius: this.radiusValue } + ) + .onInc(():void => { + this.value2++ + }) + .onDec(():void => { + this.value2-- + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.ets + + +@Component +struct UIAttributesImageeffectInterface0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(-5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0030 { + @State group: boolean | undefined = false; + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(this.group) + .justifyContent(FlexAlign.Center) + Button('Switch') + .onClick((e:ClickEvent) => { + this.group = undefined; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0120.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0120 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0390 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + QRCode('我是二维码').width(140).height(140) + QRCode('我是二维码').width(140).height(140) + .margin({ top: 30 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_32: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets new file mode 100644 index 000000000..e58c36d58 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets @@ -0,0 +1,368 @@ +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import curves from '@ohos.curves' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,DragResult,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0040.ets + + +@Component +struct UIAttributesModaltransitionInteration0040 { + @State isShow: boolean = false + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:300, + preferType: SheetType.CENTER + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0020.ets + + +@Component +struct UIActtonEventComdneventDracForeground0020 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State widthSize: number = 200 + @State heightSize: number = 200 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + let curve = curves.cubicBezierCurve(0.2, 0, 0, 1.0); + this.widthSize = curve.interpolate(0.5) * this.widthSize; + this.heightSize = curve.interpolate(0.5) * this.heightSize; + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0020_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Image(this.targetImage) + .id("UIActtonEventComdneventDracForeground0020_02") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent?: DragEvent) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + event.useCustomDropAnimation = false; + this.imgState = Visibility.None; + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0020_03") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_020.ets + +@Component +struct Grid10 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置minCount属性值为50').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .layoutDirection(GridDirection.Row) + .minCount(50) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0210322.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0210322 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + this.msgInfo= "trigger Grid onScrollStop" + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0210322'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0560.ets + + +@Component +struct UIAttributesBackgroundInterface0560 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: -90, + end: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_320: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets new file mode 100644 index 000000000..7b53cc322 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets @@ -0,0 +1,417 @@ +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0230.ets + + +@Component +struct ActionEventCommonEventMouseStyle0230 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_WEST_SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0230_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0230" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0230_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0030.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0030 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(null) + .id('UIAttributesClivkreboundeffectInterface0030_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0690.ets + + +@Component +struct ActionEventCommoneventDragdefault0690 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0590.ets + + +@Component +struct UIAttributesModaltransitionVision0590 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: { + title: '测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_010.ets + +@Component +struct onlyRowColumnsGap { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGapValue: number = 1 + onPageShow() { + console.info('onlyRowColumnsGap onPageShow') + this.columnsGapValue = 20 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('40%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .columnsGap(this.columnsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number-.ets + +@Component +struct Number_fu { + build() { + Column() { + Text('扩展尺寸: -20').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: -20, bottom: -20, left: -20, right: -20 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface113.ets + + +@Component +struct UIAttributesBackgroundInterface113 { + build() { + Column() { + Row() + .backgroundColor(Color.Gray) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface072.ets + + +@Component +struct UIAttributesBackgroundInterface072 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.Top) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0050.ets + + +@Component +struct ActionEventCommoneventDragText0050 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void=> { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .draggable(true) + .fontSize(30) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_321: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets new file mode 100644 index 000000000..84a3ce00d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets @@ -0,0 +1,403 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0700.ets + + +@Component +struct ActionEventCommoneventDragdefault0700 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(200) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(200) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0730.ets + + +@Component +struct UIActionEventCommonEventDragInterface0700 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((event as DragEvent), (event: DragEvent) => { + this.abstractContent = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0210.ets + + +@Component +struct UIAttributesColorrampInterface0210 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Top, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0770.ets + + +@Component +struct UIAttributesColorrampInterface0770 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:380 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_008.ets + +@Component +struct onlyRowBarState { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State BarValue: BarState = BarState.Off + onPageShow() { + console.info('onlyRowBarState onPageShow') + this.BarValue = BarState.On + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('60%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .scrollBar(this.BarValue) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0690.ets + + +@Component +struct UIActionEventCommonEventDragInterface0690 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent) => { + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_322: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets new file mode 100644 index 000000000..e8e82027b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets @@ -0,0 +1,389 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + Visibility,ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0260164.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0260164 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0260164_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 100 + }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0260164_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundEffect1.ets + +@Component +struct TextBackgroundEffect1 { + build() { + Column() { + Text('radius:0').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0 + }) + Text('radius:100 ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + Text('radius:100 ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100 ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0060.ets + + +@Component +struct UIAttributesImageeffectInterface0060 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0180.ets + + +@Component +struct ActionEventCommoneventDragdefault0180 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({top:250} as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0010.ets + + +@Component +struct UIAttributesModaltransitionSafearea0010 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({top: 20} as Margin) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/MatrixTransformIndex.ets + +@Component +struct TransformExample { + build() { + Column() { + Text('组件设置矩阵变换transform,设置translate、scale、rotate组合').width('90%').fontColor(0xCCCCCC).padding(15).fontSize(14) + Row() + .width(100).height(100).backgroundColor(0xAFEEEE) + .transform(matrix4.identity().translate({ x: 50, y: 50 }).scale({ x: 1.5, y: 1 }).rotate({ + x: 0, + y: 0, + z: 1, + angle: 60 + })) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0220.ets + + +@Component +struct UIAttributesColorrampInterface0220 { + @State btnShow: Visibility = Visibility.Visible; + @State angleR:number=0; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:this.angleR + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.btnShow = Visibility.Hidden + this.angleR=90 + } else { + this.btnShow = Visibility.Visible + this.angleR=0 + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface124.ets + + +@Component +struct UIAttributesBackgroundInterface124 { + build() { + Column() { + Row() + .backgroundColor('rgba(0,0,255,1.000)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_323: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets new file mode 100644 index 000000000..7e22c488d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets @@ -0,0 +1,408 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,BuilderParam,Builder,Color,DragEvent,Text, + Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Span,Text,Stack,Alignment, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0390.ets + + +@Component +struct UIAttributesImageeffectInterface0390 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: Color.Black } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0080.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0080 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0250.ets + + +@Component +struct ActionEventCommonEventMouseStyle0250 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_COPY; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0250_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0250" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0250_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0530.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0530 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0530_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0530_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0530_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Stack({ alignContent: Alignment.Bottom }) { + Text('First child, show in bottom') + .width('90%') + .height('100%') + .backgroundColor(0xd2cab3) + .align(Alignment.Top) + Text('Second child, show in top') + .width('70%') + .height('60%') + .backgroundColor(0xc1cbac) + .align(Alignment.Top) + } + .width('100%') + .height(150) + .backgroundColor(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0530_004') + .layoutWeight(1) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface1060.ets + + +@Component +struct Child { + label: string = `Child`; + @BuilderParam customBuilderParam: () => void = this.customBuilder; + @BuilderParam customChangeThisBuilderParam: () => void = this.customChangeThisBuilder; + @Builder + customBuilder() { + }; + @Builder + customChangeThisBuilder() { + }; + build() { + Column() { + this.customBuilderParam() + this.customChangeThisBuilderParam() + }.draggable(true) + .backgroundColor(Color.Pink) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + } +} +@Component +struct ActionEventCommoneventDragInterface1060 { + label: string = `Parent`; + @Builder + componentBuilder() { + Text(`${this.label}`) + } + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Text('drag in') + } + .id('dragin') + .height(100) + .width(100) + .backgroundColor(Color.Yellow) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0180.ets + + +@Component +struct UIActtonEventComdneventDracInterface0180 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_18_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_18_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_324: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets new file mode 100644 index 000000000..6a156c656 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets @@ -0,0 +1,394 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + $r,MenuItem,MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,Row, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Navigation,NavDestination,Text,FlexAlign,HorizontalAlign,ScrollDirection,NavPathStack, + Flex,FlexDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0320.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0320 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Navigation(new NavPathStack()) { + } + .height(200) + .width('100%') + .title('设置') + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface130.ets + + +@Component +struct UIAttributesBackgroundInterface130 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]] + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0030.ets + + +@Component +struct ActionEventCommoneventClickDfx0030 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0030") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0060.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0060 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest04.ets + +@Component +struct ZIndexTest04 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(3) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(2) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(-1) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions ).alignContent(Alignment.BottomEnd) + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(3) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(2) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(1) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + Stack() { + Text() + .zIndex(2) + .zIndex(200000000000) + .zIndex(0) + .zIndex(-2) + .zIndex(1) + .zIndex(-199999999999) + .zIndex(99) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('20%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0260.ets + + +@Component +struct UIAttributesFocuscontrolInterface0260 { +@State enabledValue :boolean = true + build() { + Column({ space: 20 } as ColumnOptions) { + Row(){ + Button("enable:false") + .id('UIAttributesFocuscontrolInterface0260_001') + .width(200) + .height(70) + .onClick((e: ClickEvent) => { + this.enabledValue = false + }) + } + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + .enabled(this.enabledValue) + }.width('100%') + } + } + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface077.ets + + +@Component +struct UIAttributesBackgroundInterface077 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: 200, y: 100 } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0450.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0450 { + @State hei:number = 120; + @State mar:number = 20; + @State cl:boolean = true; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).id('text').clip(this.cl) + .onClick((e:ClickEvent)=>{ + this.cl = false; + }) + } + .height(500) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton165.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton165 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions).focusable(false) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions).focusable(false) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_165') + .bindMenu(this.MyMenu) + } +} + + +export const FLAG_OF_FILE_325: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets new file mode 100644 index 000000000..76e81c56a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets @@ -0,0 +1,446 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,DragEvent, + RectOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + MenuItem, + FontWeight, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + Menu, + Menu, + Builder, + MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Row +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,EdgeEffect, ComputedBarAttribute, + Scroll, ScrollState, ForEach, Color, ColumnOptions, TextAlign, Margin, Row, RowOptions, Grid, Edge, BarState, GridItem, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0350.ets + + +@Component +struct UIAttributesModaltransitionVision0350 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 420, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0420.ets + + +@Component +struct UIAttributesColorrampInterface0420 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + radius: "20px" + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0100.ets + + +@Component +struct UIAttributesImageeffectInterface0100 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0280.ets + + +@Component +struct UIAttributesBcakgroundSeriable0280 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0110.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0110 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Row({ space: 10 } as RowOptions) { + Button('velocity null').onClick((event:ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { velocity:0.01}) + }).id('UIComponentScrollScrollbarScrolledge0110_001') + } + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } as ComputedBarAttribute + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0010.ets + + +@Component +struct UIAttributesBackgroundInterface0010 { + build() { + Row() { + } + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0050.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0050 { + build() { + Column({ space: 5 }as ColumnOptions) { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .onClick((e: ClickEvent) => { + }) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0150.ets + + +@Component +struct UIAttributesSelectedStyle0150 { + @State select: boolean = true; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + } as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0150_1') + Button('Click') + .id('UIAttributesSelectedStyle0150_2') + .onClick((e: ClickEvent) => { + this.select = false; + }) + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0090.ets + + +@Component +struct UIAttributesTouchableInteraction0090 { + @State message: string = 'ROW1'; + @State message2: string = 'ROW2'; + build() { + Column(){ + Row(){ + Text(this.message) + } + .id('UIAttributesTouchableInteraction0090_001') + .hitTestBehavior(HitTestMode.None) + .onDragEnter((dragEnter:DragEvent):void=>{ + }) + .onDrop((): void=>{ + }) + Row(){ + Text(this.message2) + } + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0250.ets + + +@Component +struct ActionEventCommoneventDragdefault0250 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_326: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets new file mode 100644 index 000000000..2962614b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets @@ -0,0 +1,415 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Area +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0700.ets + + +@Component +struct UIActionEventCommonEventDragInterface0700 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((event as DragEvent), (event: DragEvent) => { + this.abstractContent = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0040_534.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0040_534 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0030.ets + + +@Component +struct UIAttributesColorRampBlurGradient0030 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes180.ets + + +@Component +struct UIAttributesTouchableInteraction180 { + @State value: string = 'Text' + @State sizeValue: string = '' + build() { + Column() { + Text(this.value) + .id('UIAttributesTouchableInteraction180') + .hitTestBehavior(HitTestMode.None) + .backgroundColor(Color.Green) + .margin(30) + .fontSize(20) + .onClick((): void => { + this.value = this.value + 'Text' + }) + .onAreaChange((oldValue: Area, newValue: Area): void => { + console.info(`Ace: on area change, oldValue is ${String(oldValue)} value is ${String(newValue)}`) + this.sizeValue = String(newValue) + }) + Text('new area is: \n' + this.sizeValue).margin({ right: 30, left: 30 } as Margin) + } + .width('100%').height('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0100.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0100 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 } as matrix4.ScaleOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('scale:x*0.5') + .id('UIAttributesGraphicTransformationSkew0100_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('scale:y*0.5') + .id('UIAttributesGraphicTransformationSkew0100_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('translate:z*0.5') + .id('UIAttributesGraphicTransformationSkew0100_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('translate:x*2') + .id('UIAttributesGraphicTransformationSkew0100_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('rotate:x+∠+45') + .id('UIAttributesGraphicTransformationSkew0100_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('rotate:y+∠+45') + .id('UIAttributesGraphicTransformationSkew0100_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('skew:x+1') + .id('UIAttributesGraphicTransformationSkew0100_007') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(1, 0); + }) + Button('skew:y+1') + .id('UIAttributesGraphicTransformationSkew0100_008') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, 1); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0090.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0090 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: undefined }) + .id('UIAttributesClivkreboundeffectInterface0090_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0150.ets + + +@Component +struct UIActtonEventComdneventDracInterface0150 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_02") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_327: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets new file mode 100644 index 000000000..7419ac73b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets @@ -0,0 +1,435 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Scroll,ScrollDirection,BarState,EdgeEffect,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,ColumnOptions, + EdgeEffect,HorizontalAlign,FlexAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0200.ets + + +@Component +struct UIAttributesBcakgroundSeriable0200 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.XY) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0500.ets + + +@Component +struct UIAttributesColorrampInterface0500 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_overflow.ets + +@Component +struct ButtonOverflow { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Row(){ + Button('To start preview in the stage model, select a UI file under src/main/ets.',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button('To start preview in the stage model, select a UI file under src/main/ets.To start preview in the stage model, select a UI file under src/main/ets.',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button('button',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: 800, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button('button',{ type: ButtonType.Normal }) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.MARQUEE, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: '500', + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .borderRadius(-30) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .borderRadius(50) + }.width('80%') + Row(){ + Button($r('app.media.startIcon')) + .width(100) + .height(80) + Button('字符串') + .width(100) + .height(80) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0030.ets + + +@Component +struct UIAttributesFocuscontrolInterface0030 { + @State str: string = 'aa' + @State strError: string = '' + fun(): boolean { + this.strError = "error" + return true + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("DefaultFocus(a)") + .defaultFocus(this.fun()) + Text(this.strError) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0130.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0130 { + @State isDialogVisible: boolean = false; + onButtonClick(){ + this.isDialogVisible = true + if (this.isDialogVisible == true) { + } + } + build() { + Column(){ + Scroll(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isDialogVisible == true ? Color.Green :Color.White).margin({left:100,top:-100} as Margin) + }.width('100%').height(400).backgroundColor(Color.Green) + } + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .friction(0.6) + .edgeEffect(EdgeEffect.None) + Button("scroll") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0130.ets + + +@Component +struct UiAttributesFloatingLayerInterface0130 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0680.ets + + +@Component +struct UIAttributesBackgroundInterface0680 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomStart) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0050.ets + + +@Component +struct UIAttributesModaltransitionInteration0050 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor: '#88888888', + preferType: SheetType.CENTER, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest5.ets + +@Component +struct ZIndexDynamicModificationTest5 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex: number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex: number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex: number = 0 //组件的宽高的初始值 + @State isImage: boolean = false + @State isVideo: boolean = false + onPageShow() { + this.textValueIndex = 1 //text的value: 'ABC设置zIndex: 0 0 0' + this.zIndexValueIndex = 1 //ABC设置zIndex: 0 0 0 + } + build() { + Column({ space: 5 } as ColumnOptions as ColumnOptions) { + Row(){ + Text('Z序控制动态修改').fontSize(22).fontColor(0x000000).fontWeight(FontWeight.Bold) + }.backgroundColor(0xE6E6FA).borderRadius(20).height('6%').width('100%').justifyContent(FlexAlign.Center) + if (this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({ width: 1, color: Color.Red }).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + } + .width('90%') + .height('30%') + .border({ width: 1, color: Color.Red } as BorderOptions) + .alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]) + .height(this.whValue[this.whValueIndex][1]) + .backgroundColor(0xFFCCCC) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]) + .height(this.whValue[this.whValueIndex][3]) + .backgroundColor(0xCCFFFF) + .align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]) + .height(this.whValue[this.whValueIndex][5]) + .backgroundColor(0xFFFACD) + .align(Alignment.TopStart) + }.width('90%').height('18%').border({ width: 1, color: Color.Red } as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_328: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets new file mode 100644 index 000000000..295cec040 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets @@ -0,0 +1,312 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin, + Button,DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Button, + Builder, + ClickEvent +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Flex,FlexOptions,EdgeEffect,FlexWrap,Alignment,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridDirection, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Color,Hyperlink,Text,Image,FlexAlign,Margin,ImageFit, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Color, + Row, + AttributeModifier, +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/Statestyles/entry/src/main/ets/testability/pages/Statestyles/Test_2_1.ets + +@Component +struct Test21 { + @State focused: boolean = true + build() { + Row() { + Column() { + Button("pressed and focused") + .margin(50).id("pre1") + } + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0650.ets + + +@Component +struct UIAttributesImageeffectInterface0650 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0190.ets + + +@Component +struct UIComponentCommonattrForegroundEffect190 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0190_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0190_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0190_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Image('2.png') + .objectFit(ImageFit.Contain) + .margin({ top: 68 } as Margin) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0190_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_040.ets + +@Component +struct Grid_040 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = Infinity + @State minCount: number = 1 + @State cellLength: number = 0 + @State mTemplate: string = '1fr 1fr 1fr 1fr 1fr' + @State layoutDirection: GridDirection = GridDirection.Column + scroller1: Scroller = new Scroller() + @State layoutOptions: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('0330_117') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + this.cellLength = 0 + }) + Text() + .width(10) + .height(10) + .key('0340_844') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + this.cellLength = 70 + }) + Text() + .width(10) + .height(10) + .key('0230_611') + .onClick((event:ClickEvent) => { + this.cellLength = 0 + }) + Text() + .width(10) + .height(10) + .key('0240_477') + .onClick((event:ClickEvent) => { + this.cellLength = 140 + }) + Text() + .width(10) + .height(10) + .key('0250_011') + .onClick((event:ClickEvent) => { + this.cellLength = -140 + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(90) + .height(50) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .width(300) + .height(170) + .columnsGap(10) + .rowsGap(10) + .minCount(this.minCount) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCount) + .cellLength(this.cellLength) + .layoutDirection(this.layoutDirection) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0080.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0080 { + @State text: string = '点击'; + @Builder BackgroundBuilder() { + Column(){ + Button(this.text) + .onClick((e: ClickEvent) => { + this.text = '已点击'; + }) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + .id('UIAttributesBackgroundSelfDrawing0080') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0020.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0020 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart') + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_329: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets new file mode 100644 index 000000000..f53a6f021 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets @@ -0,0 +1,415 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnWillScrollCallback,OnScrollCallback,ComputedBarAttribute,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,HorizontalAlign,animateTo,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0390.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0390 { + @State toggle: boolean = true + build() { + Column() { + Button('').margin(50) + .renderFit(RenderFit.TOP_RIGHT) + .id('buttonId') + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + .onClick((e:ClickEvent) => { + animateTo({ duration: 2000, curve: Curve.Linear }, () => { + this.toggle = !this.toggle + }) + }) + }.width('100%').height('100%').alignItems(this.toggle ? HorizontalAlign.Start : HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0100.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0100 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets + + +@Component +struct UIAttributesBackgroundInterface0600 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "3.14rad", + end: "6.28rad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0040 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0040_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0040_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0260.ets + + +@Component +struct ActionEventCommonEventMouseStyle0260 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_FORBID; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0260_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0260" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0260_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0210.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0210 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(5) + .borderWidth(5) + .borderColor(Color.Yellow) + .borderRadius(10) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.ets + + +@Component +struct UIAttributesModaltransitionInteration0060 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.CENTER, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXonhofOnscroll/UIComponentListandgridXonhofOnscroll0220134528.ets + + +@Component +struct UIComponentListandgridXonhofOnscroll0220134528 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State msgInfo1: string = 'inital value'; + @State msgInfo2: string = 'inital value'; + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.msgInfo2); + Text(this.msgInfo1); + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.msgInfo1 = '2.trigger onDidScroll' + } as OnScrollCallback | undefined) + .onWillScroll((scrollOffset: number, scrollState: ScrollState): ScrollResult => { + this.msgInfo2 = '1.trigger onWillScroll' + } as OnWillScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + .id('UIComponentListandgridXonhofOnscroll0220134528'); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('UIComponentListandgridXonhofOnscroll0220134528_001'); + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_33: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets new file mode 100644 index 000000000..2de8d5f3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets @@ -0,0 +1,417 @@ +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Gauge, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Span,Text,TextDecorationType,TextDecorationStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Progress,HorizontalAlign,ScrollDirection,Color,FlexAlign,ProgressType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0640.ets + + +@Component +struct UIAttributesImageeffectInterface0640 { + build() { + Column() { + Row() { + Text('test') + .blur(6.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0380.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0380 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Progress({ value: 10, type: ProgressType.Linear }).width(200) + Progress({ value: 10, type: ProgressType.Linear }).width(200) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_4.ets + + +@Component +struct UIAttributesModaltransitionVision0070_4 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface121.ets + + +@Component +struct UIAttributesBackgroundInterface121 { + build() { + Column() { + Row() + .backgroundColor(Color.Yellow) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0630.ets + + +@Component +struct UIAttributesColorrampInterface0630 { + @State colors:Array<[ResourceColor, number]> = [[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] as Array<[ResourceColor, number]>; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: this.colors, + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 1000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.colors=[[Color.Blue,0.0],[Color.Brown,0.3],[Color.Red,1.0]] + this.btnShow = Visibility.None + } else { + this.colors=[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0010.ets + + +@Component +struct UIAttributesImageeffectInvert0010 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse001.ets + + +@Component +struct UIComponentCommonattrClearfocuse001 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0520.ets + + +@Component +struct UIComponentCommonattrForegroundEffect520 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0520_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0520_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0520_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text() { + Span('I am Underline-WAVY-span') + .decoration({ + type: TextDecorationType.Underline, + color: Color.Red, + style: TextDecorationStyle.WAVY + }) + .fontSize(28) + .foregroundEffect({ radius: this.radius }) + } + .backgroundColor(Color.Pink) + } + } + .id('UIComponentCommonattrForegroundEffect0520_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0040.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0040 { + build() { + Column({ space: 5 }as ColumnOptions) { + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent-.ets + +@Component +struct Percent_fu { + build() { + Column() { + Text('扩展尺寸: -20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '-20%', bottom: '-20%', left: '-20%', right: '-20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + + +export const FLAG_OF_FILE_330: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets new file mode 100644 index 000000000..72cfe7581 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets @@ -0,0 +1,402 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Stack, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,List,ListItem,Text,ClickEvent,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0120.ets + + +@Component +struct ActionEventControlCallback0120 { + @State context: string = "" + build() { + Column(){ + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0160.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0160 { + @State color: Color = Color.Blue; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .defaultFocus(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0160_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0110.ets + + +@Component +struct ActionEventCommoneventDragImage0110 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_CANCELED) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_CANCELED) { + this.result = '成功获取拖拽取消状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0600.ets + + +@Component +struct UIAttributesImageeffectInterface0600 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(2) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface103.ets + + +@Component +struct UIAttributesBackgroundInterface103 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0660.ets + + +@Component +struct ActionEventCommoneventDragdefault0660 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '.(&%&%$^&(&^$@!#%^.,<>:+_(*' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0060_990.ets + + +@Component +struct UIComponentListandgridGridEvents_0060_990 { + @State numbers: Array = new Array() + @State numbers2: Array = new Array() + scroller1: Scroller = new Scroller() + @State text: string = 'drag' + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex] + return this.pixelMapBuilder() + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return + } + console.info('beixiang' + itemIndex + '', insertIndex + '') + this.changeIndex(itemIndex, insertIndex) + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex] + return this.pixelMapBuilder() + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return + } + console.info('beixiang' + itemIndex + '', insertIndex + '') + this.changeIndex(itemIndex, insertIndex) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_331: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets new file mode 100644 index 000000000..fd6bc88cb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets @@ -0,0 +1,483 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, + Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0080.ets + + +@Component +struct ActionEventCommoneventDragdefault0080 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(20) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest15.ets + +@Component +struct ZIndexDynamicModificationTest15 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.isVideo = true // Video 123设置zIndex: 3 2 1 + this.zIndexValueIndex = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0110.ets + + +@Component +struct UIAttributesModaltransitionInteration0110 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.POPUP, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0540.ets + + +@Component +struct ActionEventCommoneventDragdefault0540 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State text_align:TextAlign = TextAlign.Start + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .textAlign(this.text_align) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + this.text_align = TextAlign.Start + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .textAlign(TextAlign.Start) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur2.ets + +@Component +struct linearGradientBlur2 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(0, { fractionStops: [[0,0]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0540.ets + + +@Component +struct UIAttributesImageeffectInterface0540 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0040.ets + + +@Component +struct ActionEventCommoneventDragImage0040 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0060.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0060 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=null') + .id('UIAttributesGraphicTransformationSkew0060_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + }) + Button('y=null') + .id('UIAttributesGraphicTransformationSkew0060_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0390.ets + + +@Component +struct ActionEventCommonEventMouseStyle0390 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.ZOOM_OUT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0390_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0390" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0390_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_332: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets new file mode 100644 index 000000000..96b04cbf4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets @@ -0,0 +1,390 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + HorizontalAlign,ScrollDirection,ColumnSplit,TextAlign,Button,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + TextAlign, + Margin, + Color, + $r +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0150.ets + + +@Component +struct UIAttributesColorrampInterface0150 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.LeftTop, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1330.ets + + +@Component +struct UIAttributesBackgroundInterface1330 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[$r('app.media.startIcon'),0.4],["rgb(255,200,255)",0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0080.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0080 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + ColumnSplit() { + Text('1').width('100%').height(50).textAlign(TextAlign.Center) + Text('2').width('100%').height(50).textAlign(TextAlign.Center) + } + .borderWidth(1) + ColumnSplit() { + Text('1').width('100%').height(50).textAlign(TextAlign.Center) + Text('2').width('100%').height(50).textAlign(TextAlign.Center) + } + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0070.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0070 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(2, 2); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=undefined') + .id('UIAttributesGraphicTransformationSkew0070_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + }) + Button('y=undefined') + .id('UIAttributesGraphicTransformationSkew0070_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0180.ets + + +@Component +struct UIAttributesColorrampInterface0180 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.RightBottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0060.ets + + +@Component +struct UIAttributesModaltransitionAnimator0060 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0090.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0090 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + } + .width(180) + .height(180) + .alignItems(HorizontalAlign.Center) + .backgroundColor(Color.Red) + .id('UIAttributesFloatingLayerOverlay0090_001') + .onClick((e: ClickEvent) => { + }) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0050_700.ets + + +@Component +struct UIComponentListandgridGridEvents_0050_700 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + this.text1 = 'onItemDrop'; + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_333: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets new file mode 100644 index 000000000..35a03a938 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets @@ -0,0 +1,328 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,TextAlign, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + TouchEvent +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, Text, Image } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0130.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0130 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0380.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0380 { + @State count: string = "鼠标点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("鼠标点击") + .id("shubiaoButton") + .fontSize(30) + .onClick((e: ClickEvent): void => { + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0130.ets + + +@Component +struct UIAttributesColorRampBlurGradient0130 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/touchObjectActionEventCommon.ets + + +@Component +struct touchObjectActionEventCommon { + @State positionStr: string = 'x:0,y:0' + build() { + Column() { + Text(this.positionStr) + Button('touchObject') + .id('touch_object_button') + .onTouch((event: TouchEvent) => { + this.positionStr = 'x:' + event.touches[0].displayX + ',y:' + event.touches[0].displayY; + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0050.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0050 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin).offset({x:30,y:10} as Position) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0310.ets + + +@Builder +function builder10310(text: string) { + builder20310(text) +} +@Builder +function builder20310(text: string) { + Text(text) + .fontSize(50) +} +@Component +struct SubAceActionWindowWindowCustom0310 { + @State statel: string = 'text1'; + @Builder + builder1(text: string) { + builder20310(text) + } + build() { + Column() { + builder10310(this.statel) + this.builder1(this.statel) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0130.ets + + +@Component +struct ActionEventCommoneventDragdefault0130 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + Text('Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Flex() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .margin({left:30} as Margin) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0480.ets + + +@Component +struct ActionEventCommoneventDragdefault0480 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State font_weight:number = 0 + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .backgroundColor(Color.Red) + .textAlign(TextAlign.End) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .backgroundColor(Color.Red) + .textAlign(TextAlign.End) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_334: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets new file mode 100644 index 000000000..b9227ba51 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets @@ -0,0 +1,405 @@ +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import systemDateTime from '@ohos.systemDateTime' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TouchType +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface30.ets + + +@Component +struct AceActionEventCommoneventClickInterface30 { + @State text: string = 'x = '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface30') + .onClick((event: ClickEvent) => { + this.number1 = event.x; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0170.ets + + +@Component +struct ActionEventCommoneventDragdefault0170 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0020.ets + + +@Component +struct UIAttributesOutlinewidth0020 { + build() { + Column() { + Text('outlineWidth测试') + .outlineWidth({ + left: 20, + right: 30, + top: 35, + bottom: 25 + } as EdgeOutlineWidths) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0420.ets + + +@Component +struct ActionEventCommonEventMouseStyle0420 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0420_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0420" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0420_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0220.ets + + +@Component +struct ActionEventCommoneventDragImage0220 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let video = arr[0] as unifiedDataChannel.Video; + this.uri = video.videoUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let video: unifiedDataChannel.Video = new unifiedDataChannel.Video(); + video.videoUri = '这是一个video资源路径'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(video); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/CommonEventTouchDfx/commonEventTouchDfx0010.ets + + +@Component +struct commonEventTouchDfx0010 { + @State eventType: string = '' + @State text: string = 'none' + @State touchDown: number = 0 + @State touchUp: number = 0 + build() { + Stack() { + Column() { + Text('目标元素') + } + .id('touch_view') + .width(100) + .height(150) + .position({ x: 0 } as Position) + .backgroundColor(Color.Orange) + .onTouch((event?: TouchEvent) => { + this.text = 'onTouch' + if (event) { + if (event.type === TouchType.Down) { + this.touchDown = systemDateTime.getTime(); + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.touchUp = systemDateTime.getTime(); + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + } + }) + Column() { + Text(`type ${this.eventType}`) + .id('event_type') + Text(this.touchDown + '') + .id('touch_down') + .fontColor(Color.Transparent) + Text(this.touchUp + '') + .id('touch_up') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic5.ets + +@Component +struct buttonDynamicExample5 { + @State buttonType: ButtonType | undefined = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonType_非法值_undefined' + this.buttonType = undefined + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_335: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets new file mode 100644 index 000000000..306dbaba8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets @@ -0,0 +1,461 @@ +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Component, Column,ColumnOptions,Text,DragEvent,Row,RowOptions,Image,$r,Color,Margin, + DragBehavior,DragResult,Rectangle +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridItemAlignment,BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign, + TextInput, + RelativeContainer, + VerticalAlign, + HorizontalAlign, + Axis, + ChainStyle, + Margin, + XComponent +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextDecorationType, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0160.ets + + +@Component +struct UIAttributesImageeffectInterface0160 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0390.ets + + +@Component +struct ActionEventCommoneventDragdefault0390 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State underline:TextDecorationType = TextDecorationType.None + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .decoration({ + type: this.underline + }) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .decoration({ + type: TextDecorationType.Underline + }) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.underline = TextDecorationType.Underline + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0010.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0010 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .stateEffect(true) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 }) + .id('UIAttributesClivkreboundeffectInterface0010_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/CAPI_NEW4/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 }as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignitems/UIComponentGridAlignitems0250.ets + + +@Component +struct UIComponentGridAlignitems0250 { + @State data: Array = new Array(); + @State items: Array = new Array(); + aboutToAppear(): void { + for (let i = 0; i < 10; i++) { + this.data.push(String(i)) + this.items.push(String(1 + i)) + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Text('Grid alignItems示例代码') + Grid() { + ForEach(this.data, (item: string, index:number) => { + GridItem() { + Column() { + Column().height(100).backgroundColor('#D5D5D5').width('100%') + Text('这是一段文字'); + Column().height(50).backgroundColor('#FF0000').width('100%') + } + } + .border({ color: Color.Black, width: 1 } as BorderOptions) + }) + } + .columnsGap(10) + .rowsGap(5) + .columnsTemplate('1fr 1fr') + .width('80%') + .height('100%') + .alignItems(GridItemAlignment.STRETCH) + .scrollBar(BarState.Off) + .id('UIComponentGridAlignItems0250'); + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0760.ets + + +@Component +struct ActionEventCommoneventDragdefault0760 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = 'This is draggable text' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0440.ets + + +@Component +struct UIAttributesBackgroundInterface0440 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90grad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundThin.ets + +@Component +struct BlurStyle_BackgroundThin { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0610.ets + + +@Component +struct ActionEventCommoneventDragInterface0610 { + @State uri: string = "" + @State targetImage1: string = ''; + @State targetImage2: string = ''; + @State targetImage3: string = ''; + @State targetImage4: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State BblockArr: string[] = [] as string[] + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column() { + Text('拖拽控制-allowDrop属性测试').fontSize(9).fontColor(0xCCCCCC).width('100%') + Row({ space: 10 } as RowOptions) { + Column() { + Row() { + Image($r('app.media.startIcon')).width(100).height(100) + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + let data: UDC.Image = new UDC.Image(); + data.imageUri = "pages/file/640.jpg" + event.setData(new UDC.UnifiedData(data)); + let unifiedData: UDC.UnifiedData = new UDC.UnifiedData(data); + let data2: UDC.Image = new UDC.Image(); + data.imageUri = "pages/file/1.jpg" + unifiedData.addRecord(data2); + (event as DragEvent).setData(unifiedData); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + console.log('DragBehavior is: ' + event.dragBehavior.toString()); + }) + }.height(100) + Column() { + Text("enable+move") + .fontSize(16) + Image(this.targetImage1) + .id('image') + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + event.dragBehavior = DragBehavior.COPY + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.MOVE + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + this.targetImage1 = (records[0] as UDC.Image).imageUri; + event1.useCustomDropAnimation = false; + event1.setResult(DragResult.DRAG_SUCCESSFUL); + event1.dragBehavior = DragBehavior.COPY + }) + }) + } + } + }.height(300).margin({ top: 50 } as Margin) + }.width("100%").height("100%") + } +} + + +export const FLAG_OF_FILE_336: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets new file mode 100644 index 000000000..8b714903c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets @@ -0,0 +1,343 @@ +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, + PanDirection,PanGestureHandlerOptions,TranslateOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0060_704.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0060_704 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0060.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0060 { + @Builder + OverlayNode() { + Column() { + Image($r('app.media.startIcon')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode1() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode2() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode2() { + Column() { + Image($r('app.media.startIcon')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode3() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode3() { + Column() { + Image($r('app.media.startIcon')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0080.ets + + +@Component +struct ActionEventCommoneventDragInterface0080 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0320.ets + + +@Component +struct ActionEventCommonEventMouseStyle0320 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MOVE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0320_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0320" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0320_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragWay/ActionEventCommoneventDragWay0010.ets + + +@Component +struct ActionEventCommoneventDragWay0010 { + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + build() { + Column({ space: 5 } as ColumnOptions) { + Button('0010') + .height("50") + .id('button') + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(():void => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0180.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0180 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .borderWidth(5) + .borderColor(Color.Yellow) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_337: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets new file mode 100644 index 000000000..a21edd42e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets @@ -0,0 +1,394 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0230_102.ets + + +@Component +struct UIComponentListandgridGridInterface_0230_102 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1]; + else if(index==1) + return [0, 1, 2, 2]; + else if(index==2) + return [0 ,3 ,3 ,3]; + else if(index==3) + return [3, 0, 3, 3]; + else if(index==4) + return [4, 3, 2, 2]; + else + return [5, 5, 1, 1]; + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(-1) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0550.ets + + +@Component +struct UIAttributesModaltransitionVision0550 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, undefined) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0200.ets + + +@Component +struct UIAttributesImageeffectInterface0200 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(-45) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0380.ets + + +@Component +struct ActionEventCommonEventMouseStyle0380 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.ZOOM_IN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0380_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0380" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0380_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0120.ets + + +@Component +struct UIAttributesColorrampInterface0120 { + @State repeat:boolean=false + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + repeating:this.repeat + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.repeat=!this.repeat + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0080.ets + + +@Component +struct UIAttributesModaltransitionSafearea0080 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0010.ets + + +@Component +struct UIAttributesTransparencyInterface0010 { + @State opacityValue: Resource | number = 1.0; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0.5') + .onClick((e:ClickEvent) => { + this.opacityValue = $r('app.media.startIcon'); + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0670.ets + + +@Component +struct UIAttributesModaltransitionVision0670 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_338: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets new file mode 100644 index 000000000..5dc4fb499 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets @@ -0,0 +1,417 @@ +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { promptAction } from '@kit.ArkUI'; + +import { BusinessError } from '@ohos.base'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Color,PreDragStatus,Text, + ColumnOptions,Margin,Builder,Image,Row,DragResult, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image, + SwipeGesture, + SwipeDirection +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Marquee,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ListOptions, BorderOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding, FlexOptions,GridLayoutOptions, Flex,FlexWrap,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface131.ets + + +@Component +struct UIAttributesBackgroundInterface131 { + build() { + Column() { + Text("text") + .linearGradient({ + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + repeating: true + }) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_032.ets + +@Component +struct Grid_032 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4') + @State numbers2: Array = new Array('0', '1','2','3','4','5') + @State isEnabled:boolean = true + @State mOpacity:number = 1 + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Button('WATERFLOW_GRIDITEM_0080') + .id('WATERFLOW_GRIDITEM_0080') + .fontSize(8) + .height(20) + .padding({ left: 5, right: 5 } as Padding) + .onClick((event:ClickEvent) => { + this.isEnabled = false + this.mOpacity = 0.6 + }) + } + Grid() { + ForEach(this.numbers1, (day: string, index:number) => { + ForEach(this.numbers1, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + }.enabled(this.isEnabled).opacity(this.mOpacity) + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({top: 50} as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0250.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0250 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Marquee({ src: "this is the running text", start: false }) + .width(100) + .height(30) + .borderWidth(1) + Marquee({ src: "this is the running text", start: false }) + .width(100) + .height(30) + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0110.ets + + +@Component +struct UIAttributesColorRampBlurGradient0110 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0340.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0340 { + @State rotateAngle: number = 0; + @State speed: number = 1; + @Builder + overlayBuilder(){ + Button("按键") + .onClick((e: ClickEvent) => { + this.rotateAngle=80 + }) + .id("huadongButton") + .fontSize(100) + .border({ width: 3 }) + .width(300) + .height(200) + .margin(100) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.All }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => { this.overlayBuilder() }).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0030.ets + +@Component +struct ActionEventCommonEventDragListItem0030 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @State dragState: string = ''; + @State dragStateSuccess: string = ''; + @Builder + pixelMapBuilder() { + Column() { + Image('2.png') + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column({ space: 30 } as ColumnOptions) { + Image('2.png') + .width(150) + .height(150) + .draggable(true) + .margin({ left: 15 } as Margin) + .visibility(this.imgState) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.backGroundColor = Color.Transparent; + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .id('DragListItem0030Image') + .onDragEnd((event: DragEvent, extraParams?: string):void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + } else if (event.getResult() === DragResult.DRAG_FAILED) { + } + }) + .draggable(true) + Text(`1`).fontSize(1).id('text1').margin(40).id("DragListItem0030Text") + Column() { + Text(this.targetText) + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 }) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event as DragEvent), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.targetText = plainText.textContent; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0090.ets + + +@Component +struct ActionEventCommoneventDragInterface0090 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本') + .id('0') + .fontSize(30) + .selection(0, 100) + .copyOption(CopyOptions.InApp) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + + +export const FLAG_OF_FILE_339: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets new file mode 100644 index 000000000..52fe7d1e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets @@ -0,0 +1,403 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,DragPreviewMode,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderStyle, + GestureGroup, + GestureMode, + LongPressGesture, + PanGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { PromptAction } from '@ohos.arkui.UIContext' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + FontWeight +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes140.ets + + +@Component +struct UIAttributesTouchableInteraction140 { + @State isShow: boolean = true + @State changeAppear: string = '点我卸载挂载组件' + private myText: string = 'Text for onAppear' + build() { + Column() { + Button(this.changeAppear) + .id('UIAttributesTouchableInteraction140') + .hitTestBehavior(HitTestMode.None) + .onClick((): void => { + this.isShow = !this.isShow + }).margin(15) + if (this.isShow) { + Text(this.myText).fontSize(26).fontWeight(FontWeight.Bold) + .onAttach((): void => { + new PromptAction().showToast({ + message: 'The text is shown', + duration: 2000, + bottom: 500 + }) + }) + .onAppear(() =>{ + this.myText = 'Text for onAppear'; + }) + .onDetach((): void => { + new PromptAction().showToast({ + message: 'The text is hidden', + duration: 2000, + bottom: 500 + }) + }) + .onDisAppear(() =>{ + this.myText = 'Text for DisAppear'; + }) + } + }.padding(30).width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0020 { + @State hei:number = 150; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .clip(true) + .height(100) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes70.ets + + +@Component +struct UIAttributesTouchableInteraction70 { + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction70') + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++; + } + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + }) + ) + .onCancel(() => { + }) + ) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0290.ets + + +@Component +struct UIActionEventCommonEventDragInterface0290 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('./cat.jpg') + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO,numberBadge:2}) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + event.setResult(DragResult.DROP_ENABLED); + }) + .onDragEnd((event: DragEvent) => { + console.log("onDragEnd event.getResult()"+event.getResult()) + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + console.log("ondrop udmf data"); + event?.setResult(DragResult.DROP_ENABLED); + this.dragSuccess = true + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0100.ets + + +@Component +struct UIComponentBackgroundimage0100 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0230.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0230 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse002.ets + + +@Component +struct UIComponentCommonattrClearfocuse002 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + + +export const FLAG_OF_FILE_34: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets new file mode 100644 index 000000000..a049ae776 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets @@ -0,0 +1,406 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,FlexAlign} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0050.ets + + +@Component +struct UIAttributesImageeffectInterface0050 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0440.ets + + +@Component +struct UIAttributesImageeffectInterface0440 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: 'rgb(0,255,0)' } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0050.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0050 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0170.ets + + +@Component +struct ActionEventCommoneventDragInput0170 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ComponentOpacitySetIndex.ets + +@Component +struct ComponentOpacitySetIndex { + build() { + Scroll() { + Column() { + Column() { + Text('父组件设置透明度0.4,子组件设置透明度0.5') + .opacity(0.5) + .backgroundColor(0xAFEEEE) + .width('100%') + .textAlign(TextAlign.Start) + } + .opacity(0.4) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0030.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0030 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: -20 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0010.ets + + +@Component +struct UIAttributesFocuscontrolInterface0010 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + @Builder + tabBuilder(index: number, name: string) { + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + } + Column({ space: 20 } as ColumnOptions) { + Row({ space: 5 } as RowOptions) { + Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { + TabContent() { + Column().width('100%').height('50%').backgroundColor('#00CB87') + }.tabBar(():void =>{this.tabBuilder(0, 'green')}) + TabContent() { + Column().width('100%').height('50%').backgroundColor('#007DFF') + }.tabBar(():void =>{this.tabBuilder(1, 'blue')}).id('focus') + }.defaultFocus(false) + } + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface108.ets + + +@Component +struct UIAttributesBackgroundInterface108 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0270.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0270 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0270_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0270_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_340: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets new file mode 100644 index 000000000..fdab25d6d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets @@ -0,0 +1,451 @@ +import { Driver } from '@kit.TestKit'; + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Search,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import pasteboard from '@ohos.pasteboard'; + +import { BusinessError } from '@ohos.base'; + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TextInput +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Text,Toggle,ToggleType,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0030.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0030 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0010.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0010 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0230.ets + + +@Component +struct ActionEventCommoneventDragdefault0230 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0450.ets + + +@Component +struct ActionEventControlCallback0450 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0070.ets + + +@Component +struct UiAttributesFloatingLayerInterface0070 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{offset:{x:-50,y:100}}) + } + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/keyboardShortcut/buttonEvent26.ets + + +@Component +struct buttonEvent26 { + @State onFoucusMessage: string = ''; + @State foucusStatus: boolean = true; + onPageShow(): void { + let systemPasteboard: pasteboard.SystemPasteboard = pasteboard.getSystemPasteboard(); + systemPasteboard.clearData((err: BusinessError | null, data?: undefined) => { + if (err) { + return; + } + }); + } + build() { + Row() { + Column() { + TextInput() + .id('main_textInput') + .width(100) + .height(40) + .onFocus(() => { + this.onFoucusMessage = 'onFocus'; + }) + Button('button1') + .id('main_button') + .width(100) + .height(40) + .onClick((e: ClickEvent) => { + this.foucusStatus = !this.foucusStatus; + console.log('buttonEvent26 this.foucusStatue: ' + this.foucusStatus); + }) + } + .width('100%') + .height('100%') + }.id('main_page') + .focusable(this.foucusStatus) + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0030.ets + + +@Component +struct ActionEventCommonEventMouseStyle0030 { + build() { + Column({ space: 50 } as ColumnOptions) { + Search({ value: "Search1" }) + .id("ActionEventCommonEventMouseStyle0030_01") + Search({ value: "Search2" }) + .id("ActionEventCommonEventMouseStyle0030_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HELP); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0360.ets + + +@Component +struct UIAttributesGraphictransformationInterface0360 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1.2,centerY:"20px"}') + Image('cat.jpg') + .width(100) + .scale({x:1.2,centerY:"20px"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0010.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0010 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0030.ets + + +@Component +struct UIAttributesImageEffectProjection0030 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0390.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0390 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Text() + .id("sonButton") + .fontSize(20) + .width('100%') + .height(50) + .backgroundColor(Color.Red) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + build() { + Column() { + Text("2").margin({top:0} as Margin).fontSize(1).id("moveText1") + Text() + .id("fatherButton") + .fontSize(40) + .width('100%') + .height(150) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .backgroundColor(Color.Green) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ).overlay((): void =>{this.overlayBuilder()},{offset:{x:0,y:0}}) + Text("1").margin({ top: 50 } as Margin).fontSize(1).id("moveText") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_341: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets new file mode 100644 index 000000000..13368be9f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets @@ -0,0 +1,410 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + ScrollState, + Edge,ForEach,ScrollDirection,BarState,TextAlign,OffsetResult,ScrollSource,OnWillScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Grid,GridItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row,Text,Color,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0090.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0090 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth({left: 1, right: 0, top: 4, bottom: 1} as EdgeOutlineWidths) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0070.ets + + +@Component +struct ActionEventControlCallback0070 { + @State context: string = "" + build() { + Column(){ + Text(this.context) + Grid(){ + GridItem() + .backgroundColor(Color.Pink) + .width(200) + .height(200) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0280_006.ets + + +@Component +struct UIComponentListandgridGridInterface_0280_006 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .constraintSize({ maxWidth: 200 }) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0230.ets + + +@Component +struct UIAttributesGraphictransformationInterface0230 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('translate({x:0,y:0,z:0})') + Image('cat.jpg') + .width(400) + .translate({x:0,y:0,z:0} as TranslateOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0370.ets + + +@Component +struct ActionEventCommonEventMouseStyle0370 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.TEXT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0370_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0370" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0370_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0390.ets + + +@Component +struct UIAttributesBackgroundInterface0390 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0450.ets + + +@Component +struct UIAttributesImageeffectInterface0450 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend($r('app.media.startIcon')) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes400.ets + + +@Component +struct UIAttributesTouchableInteraction400 { + scroller: Scroller = new Scroller() + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State testTextStr: string = 'test' + @State testRowStr: string = 'test' + build() { + Column() { + Column() { + Text(this.testTextStr) + .fontSize(20) + Text(this.testRowStr) + .fontSize(20) + } + .height(100) + .backgroundColor(Color.Gray) + .opacity(0.3) + Scroll(this.scroller) { + Column() { + Text("Test Text Visible Change") + .fontSize(20) + .height(200) + .margin({ top: 50, bottom: 20 } as Margin) + .backgroundColor(Color.Green) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number):void => { + console.info('Test Text isVisible: ' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Text is fully visible. currentRatio:' + currentRatio) + this.testTextStr = 'Test Text is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Text is completely invisible.') + this.testTextStr = 'Test Text is completely invisible' + } + }) + Row() { + Text('Test Row Visible Change') + .fontSize(20) + .margin({ bottom: 20 } as Margin) + } + .height(200) + .backgroundColor(Color.Yellow) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number):void => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Row is fully visible.') + this.testRowStr = 'Test Row is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Row is completely invisible.') + this.testRowStr = 'Test Row is completely invisible' + } + }) + ForEach(this.arr, (item:number) => { + Text(item.toString()) + .width('90%') + .height(150) + .backgroundColor(0xFFFFFF) + .borderRadius(15) + .fontSize(16) + .textAlign(TextAlign.Center) + .margin({ top: 10 } as Margin) + }, (item:number) => (item.toString())) + }.width('100%') + } + .id('UIAttributesTouchableInteraction400') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(0x317aff) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onWillScroll((xOffset: number, yOffset: number, scrollState: ScrollState,scrollSource:ScrollSource): OffsetResult => { + console.info(xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge):void => { + console.info('To the edge') + }) + .onScrollStop(() => { + console.info('Scroll Stop') + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} + + +export const FLAG_OF_FILE_342: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets new file mode 100644 index 000000000..fd59d0f66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets @@ -0,0 +1,326 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions,TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,PanGestureOptions,PanGesture, + BorderOptions,PanDirection +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes20.ets + + +@Component +struct UIAttributesTouchableInteraction20 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State Text: string = 'Text PanGesture'; + private panOption: PanGestureOptions = new PanGestureOptions(); + build() { + Column() { + Text(this.Text) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(50) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction20') + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.Text = 'PanGesture success'; + }) + ) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0220.ets + + +@Component +struct UIAttributesBackgroundInterface0220 { + build() { + Column() { + Row() { + Text("Thin") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thin) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0060.ets + + +@Component +struct UIAttributesFocuscontrolInterface0060 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller } as TextInputOptions) + .width(380) + .height(60) + .focusable(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0140.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0140 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Thin.ets + +@Component +struct BlurStyle_Thin { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0130.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0130 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0130_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0130_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0130_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0510.ets + + +@Component +struct UIAttributesModaltransitionVision0510 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: true, + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_343: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets new file mode 100644 index 000000000..575fe7587 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets @@ -0,0 +1,503 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,Resource, + ColumnOptions,$r,$$ +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0190.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0190 { + @State opacity1:number = 1.0 + onButtonClick(){ + this.opacity1 = 0.5 + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/showClose.ets + +@Component +struct showClose { + @State isShow: boolean = false + @State isShow1: boolean = false + @State sheetHeight: number = 300; + @State mStatus: boolean | Resource = true + @Builder + myBuilder() { + Column() { + Button("change height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.sheetHeight = 500; + }) + Button("close modal 1") + .id('close') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + @Builder + myBuilder1() { + Column() { + Button("change height") + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.sheetHeight = 500; + }) + Button("close modal 2") + .id('close1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow1 = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column({ space: 10 } as ColumnOptions) { + Button('this.showClose ' + this.mStatus) + .id('mStatus') + .onClick((event: ClickEvent) => { + this.mStatus = false + }) + Button('this.showClose ' + this.mStatus) + .id('mStatus1') + .onClick((event: ClickEvent) => { + this.mStatus = true + }) + Button('this.showClose ' + this.mStatus) + .id('resource_true') + .onClick((event: ClickEvent) => { + this.mStatus = $r('app.media.startIcon') + }) + Button('this.showClose' + this.mStatus) + .id('resource_false') + .onClick((event: ClickEvent) => { + this.mStatus = $r('app.media.startIcon') + }) + Button("bindSheet 设置showClose" + JSON.stringify(this.mStatus)) + .id('bindSheet') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: this.mStatus, + height: this.sheetHeight, + backgroundColor: Color.Green, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + } as SheetOptions) + Button("bindSheet 不设置") + .id('bindSheet1') + .onClick((e:ClickEvent) => { + this.isShow1 = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow1), this.myBuilder1, { + height: this.sheetHeight, + backgroundColor: Color.Green, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + } as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid001.ets + +@Component +struct UIComponentGrid { + @State numbers: Array = new Array('0', '1', '2', '3') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('100%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to -1') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(-1, false) + }).id('btn01') + Button('scrollToIndex equal to 0') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(0, false) + }).id('btn02') + Button('scrollToIndex equal to 3') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, false) + }).id('btn03') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0120_874.ets + + +@Component +struct UIComponentListandgridGridInterface_0120_874 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .constraintSize({ maxWidth: 200 }) + .columnsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0100.ets + + +@Component +struct UIAttributesImageEffectProjection0100 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .foregroundColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0040.ets + + +@Component +struct UIAttributesBackgroundInterface0040 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0030_823.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0030_823 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0170.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0170 { + @State Fontsize: number = 50 + @State isAnimation:boolean = false + build() { + Column(){ + Row(){ + Text('Text子组件') + .fontSize(this.Fontsize) + .margin({left:100,top:50} as Margin) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.Fontsize = 30; + this.isAnimation = true + }) + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightResource.ets + +@Component +struct HightResource { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightResource1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height:$r('app.media.startIcon') , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightResource2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition ALPHA").fontSize(11).id('HightResource3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height:$r('app.media.startIcon'), dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close DEFAULT").fontSize(11).id('HightResource4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightResource5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:$r('app.media.startIcon') , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightResource6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightResource7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:$r('app.media.startIcon') , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_344: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets new file mode 100644 index 000000000..4dda61ca3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets @@ -0,0 +1,347 @@ +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + ColumnOptions, + KeyEvent, + FunctionKey, + ModifierKey, + TouchType +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions, + TextInputController, + TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentResource.ets + +@Component +struct ContentResource { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('ContentResource1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 3").fontSize(11).id('ContentResource2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition modal 3").fontSize(11).id('ContentResource3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: $r('app.media.startIcon'), + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + }) + Button("close modal 2").fontSize(11).id('ContentResource4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentResource5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: $r('app.media.startIcon'), onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentResource6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentResource7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: $r('app.media.startIcon'), onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0100.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0100 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0140.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0140 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.8 }) + .id('UIAttributesClivkreboundeffectInterface0140_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0080.ets + + +@Component +struct UIAttributesFocuscontrolInterface0080 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .fontColor(Color.White) + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .focusOnTouch(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0050.ets + + +@Component +struct UIAttributesImageeffectInvert0050 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 0.1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Number.ets + +@Component +struct Number1 { + build() { + Column() { + Text('上下50,左右-30').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: 50, bottom: 50, left: -30, right: -30 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/CommonEventTouchDfx/commonEventTouchDfx0030.ets + + +@Component +struct commonEventTouchDfx003 { + @State text: string = 'none' + @State touchNumber: number = 0 + @State eventType: string = 'none' + build() { + Stack() { + Column() { + Text('目标元素') + } + .id('touch_view') + .width(100) + .height(150) + .position({ x: 0 } as Position) + .backgroundColor(Color.Orange) + .onTouch((event?: TouchEvent) => { + this.text = 'onTouch' + if (event) { + if (event.type === TouchType.Down) { + this.touchNumber++; + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + } + }) + Text(this.text + '-' + this.touchNumber) + .id('touch_text') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_345: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets new file mode 100644 index 000000000..cf5cdf472 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets @@ -0,0 +1,363 @@ +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridItemOptions,GridDirection,GridItemStyle} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack,BlendApplyType} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, $r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface127.ets + + +@Component +struct UIAttributesBackgroundInterface127 { + build() { + Column() { + Row() + .backgroundColor($r('app.media.startIcon')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType2.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Text('🙂 🛒 🌞 TEST FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Button('🙂 🛒 🌞 TEST OFFSCREEN') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.OFFSCREEN) + Text('🙂 🛒 🌞 TEST OFFSCREEN') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.OFFSCREEN) + Column() { + Text('Column TEST FAST').fontSize(20).margin(10) + } + .width(300) + .height(200) + .margin(10) + .borderWidth(1) + .advancedBlendMode(blender2, BlendApplyType.FAST) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0260.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0260 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItem({ content: "菜单选项a" } as MenuItemOptions) + MenuItem({ content: "菜单选项b" } as MenuItemOptions) + } + Menu() { + MenuItem({ content: "菜单选项a" } as MenuItemOptions) + MenuItem({ content: "菜单选项b" } as MenuItemOptions) + } + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0460.ets + + +@Component +struct UIAttributesImageeffectInterface0460 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend("#CCCCCC") + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0250.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0250 { + @State hei:number = 10; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + }.height(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0080.ets + + +@Component +struct UIAttributesBackgroundInterface0080 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0180.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0180 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .backgroundImage($r('app.media.startIcon')) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridHouse/UIComponentListandgridGridHouse_0070_630.ets + + +@Component +struct UIComponentListandgridGridHouse_0070_630 { + @State numbers: Array = new Array('1', '2'); + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day) + }, (day: string,index: number) => day) + } + .focusScopeId('Scope1') + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + Button('增加').onClick((event: ClickEvent) => { + this.numbers.push('3') + this.numbers.push('4') + }).id('btn') + } + .width(400).margin(10) + .align(Alignment.Center) + .margin(30) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0680.ets + + +@Component +struct UIAttributesColorrampInterface0680 { + @State repaet:boolean=false; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + start:0, + end:90, + repeating:this.repaet + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.repaet=true + this.btnShow = Visibility.Hidden + } else { + this.repaet=false + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0140.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0140 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_346: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets new file mode 100644 index 000000000..cb978bc6e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets @@ -0,0 +1,403 @@ +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + DragPreviewMode +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,DataChangeListener, IDataSource} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding,GradientDirection} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Text, Image, Builder, Button, GestureEvent, TapGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,AttributeModifier,GridAttribute, + GridItemAlignment,GridLayoutOptions,ListOptions, BorderOptions,EdgeEffect,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_033.ets + +@Component +struct Grid_033 { + scroller1: Scroller = new Scroller() + private arr:Array = new Array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17) + private itemWidthArray: Array = new Array() + private itemHeightArray: Array = new Array() + @State alignItems:GridItemAlignment = GridItemAlignment.STRETCH + @State colors: Array = new Array(0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F) + @State options:GridLayoutOptions={ + regularSize:[1,1], + irregularIndexes:[0,7,10,12], + onGetIrregularSizeByIndex: (index: number):[number,number] => { + if (index === 7) { + return [1, index % 6 + 1] + } + return [1, 5] + } + } as GridLayoutOptions + getSize() { + let ret = Math.floor(Math.random() * 120) + return (ret > 50 ? ret : 50) + } + getItemSizeArray() { + for (let i = 0; i < 30; i++) { + this.itemWidthArray.push(String(this.getSize())) + this.itemHeightArray.push(String(this.getSize())) + } + } + getItemSize(index: number) { + return this.itemHeightArray[index%20]; + } + aboutToAppear() { + this.getItemSizeArray() + } + build() { + Row() { + Column() { + Grid( this.scroller1) { + ForEach(this.arr, (item: number, index:number) => { + GridItem() { + Column() { + Text("N" + item).fontSize(12).height(this.itemHeightArray[item % 20]) + } + }.key('') + .onClick((event:ClickEvent)=>{ + console.log("item index: " + index) + }) + .width('100%') + .backgroundColor(this.colors[item % 5]) + }, (item: number, index:number) => String(item)) + } + .height('40%') + .border({width:1} as BorderOptions) + .rowsGap(10) + .columnsGap(20) + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + } + .width('100%') + } + .height('90%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0350.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0350 { + @State value: string = "初始值"; + @Builder + overlayBuilder(){ + Button("按键") + .id("dianjiButton") + .fontSize(30) + .size({ width:100,height:40 }) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.value = JSON.stringify(event.fingerList[0]); + } + })) + } + build() { + Column() { + Text('onAction回调:{id:0,hand:0,displayX:206.23,displayY:254.33}').fontSize(40) + Image("2.png").overlay((): void => {this.overlayBuilder()},{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0470.ets + + +@Component +struct UIAttributesBackgroundInterface0470 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnColorGradient.ets + +@Component +struct ColorGradientExample { + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .width('90%') + .height(50) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 359, + rotation: 45, // 旋转角度 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + .linearGradient({ + direction: GradientDirection.Left, // 渐变方向 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + Column() + .width('90%') + .height(50) + .margin({ top: 10 } as Margin) + .linearGradient({ + direction: GradientDirection.Left, // 渐变方向 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 359, + rotation: 45, // 旋转角度 + repeating: true, // 渐变颜色是否重复 + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] // 数组末尾元素占比小于1时满足重复着色效果 + }) + } + .width('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface112.ets + + +@Component +struct UIAttributesBackgroundInterface112 { + build() { + Column() { + Row() + .backgroundColor(Color.Brown) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/BasicDataSource.ets + +abstract class BasicDataSource implements IDataSource { + private listeners: Array = new Array() + abstract totalCount(): number + abstract getData(index: number): T + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener') + this.listeners.push(listener) + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener') + this.listeners.splice(pos, 1) + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded() + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index) + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index) + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index) + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to) + }) + } +} +export class MyDataSource extends BasicDataSource { + private dataArray: T[] = [] + public totalCount(): number { + return this.dataArray.length + } + public getData(index: number):string { + console.log("zxy List cacheCountTest3 getData = " + index) + return (this.dataArray[index]) as string + } + public addData(index: number, data: T): void { + this.dataArray.splice(index, 0, data) // 在index位置增加data + this.notifyDataAdd(index) + } + public dataReload(): void { + this.notifyDataReload() + } + public pushData(data: T): void { + this.dataArray.push(data) + this.notifyDataAdd(this.dataArray.length - 1) + } + public deleteIndex(index: number): void { + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public deleteData(data: T): void { + let index = this.dataArray.indexOf(data) + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public moveData(from: number, to: number) { + this.notifyDataMove(from, to) + } + public changeData(index: number, data: T) { + this.dataArray[index] = data + this.notifyDataChange(index) + } + public indexOf(data: T): number { + return this.dataArray.indexOf(data) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0090.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0090 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Button('Button') + .id('SubAceActionEventCommoneventDragImprove0090_btn') + .width('100%') + .height('100%') + .backgroundColor(Color.Pink) + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0090_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0070.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0070 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0070_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0070_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_347: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets new file mode 100644 index 000000000..63687da92 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets @@ -0,0 +1,530 @@ +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, + TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,Divider,Gauge,DataPanel,DataPanelType, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Column, + Color, + Builder, + Button +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent,$r,Column, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Image, Alignment, Margin, Builder, Text } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,Image,Position,Placement,$r,PopupStateChangeParam, + Color,Padding,RowOptions,Flex,FlexDirection,CustomBuilder,ResourceColor,CustomPopupOptions,EdgeEffect,ScrollSnapAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton167.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton167 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + Image($r('app.media.startIcon')).width(24).height(24).margin({ left: -5 } as Margin) + Text('Custom Popup').fontSize(10) + }.width(100).height(50).padding(5) + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_167_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0550.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0550 { + @Builder + overlayBuilder(){ + Image('2.png').height(300).width(300) + } + build() { + Column() { + Text("父控件为文本") + .fontSize(40) + .overlay((): void => {this.overlayBuilder()},{offset:{x:-30,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0190.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0190 { + @State showOutlineWidth: boolean = true; + build() { + Column() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(this.showOutlineWidth ? 5 : 0) + .outlineColor(Color.Red) + .borderWidth(this.showOutlineWidth ? 0 : 5) + .borderColor(Color.Yellow) + Button('Switch') + .onClick((e:ClickEvent) => { + this.showOutlineWidth = !this.showOutlineWidth; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0060.ets + + +@Component +struct ActionEventCommoneventDragdefault0060 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0060.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0060 { + @Builder BackgroundBuilder() { + Button('123') { + }.width(400).height(400) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0190.ets + + +@Component +struct ActionEventCommoneventDragdefault0190 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left: 50} as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0070.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0070 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + @State focusableValue: boolean = false + build() { + Column({ space: 5 }as ColumnOptions) { + Text('你好').focusable(this.focusableValue) + Image(this.iconStr).width(68).height(68).focusable(this.focusableValue) + .onClick((e: ClickEvent) => { + }) + Divider() + .focusable(this.focusableValue) + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + Gauge({ value: 5, min: 1, max: 10 }).width(68).height(68) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + .focusable(this.focusableValue) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0250.ets + + +@Component +struct UIAttributesFocuscontrolInterface0250 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好") + .id('UIAttributesFocuscontrolInterface0250_001') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0740.ets + + +@Component +struct ActionEventCommoneventDragInterface0740 { + @State arr: string[] = [] as string[] + @State arr2: string[] = [] as string[] + private mIndex: number = -1 + private startIndex: number = -1 + @State text: string = 'drag' + @State msgInfo: string = '' + private listType: number = -1 + aboutToAppear(): void { + for (let i = 0; i < 5; i++) { + this.arr.push(i+"") + } + for (let i = 0; i < 5; i++) { + this.arr2.push(i+"") + } + } + @Builder + pixelMapBuilder() { //拖拽过程样式 + Column() { + Text(this.text) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xF5F5F5) + } + } + changeIndex(type: number, itemIndex: number, insertIndex: number) { //交换数组位置 + let temp: string; + if (this.listType == type && type == 1) { + temp = this.arr[itemIndex]; + this.arr[itemIndex] = this.arr[insertIndex]; + this.arr[insertIndex] = temp; + } else if (this.listType == type && type == 2) { + temp = this.arr2[itemIndex]; + this.arr2[itemIndex] = this.arr2[insertIndex]; + this.arr2[insertIndex] = temp; + } else if (this.listType != type && type == 1) { + temp = this.arr2[insertIndex]; + this.arr.splice(insertIndex, 1, this.text); + this.arr2.splice(this.startIndex, 1, temp); + } else if (this.listType != type && type == 2) { + temp = this.arr[insertIndex]; + this.arr2.splice(insertIndex, 1, this.text); + this.arr.splice(this.startIndex, 1, temp); + } + } + build() { + Column() { + Text(this.msgInfo); + List({ space: 10 } as ListOptions) { + ForEach(this.arr, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list1"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onItemMove((from: number, to: number):boolean => { + console.info('pkgg 1 onItemMove 列表元素发生移动时触发,from:' + from + ' to:' + to) + this.mIndex = -1 + if (from == to) { + return false + } else { + return true + } + }) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder => { + console.info('pkgg 1 onItemDragStart 开始拖拽列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + this.text = this.arr[itemIndex] + "" + this.startIndex = itemIndex + this.listType = 1 + return ()=>{this.pixelMapBuilder()} + }) + .onItemDragEnter((event: ItemDragInfo):void => { + console.info('pkgg 1 onItemDragEnter 拖拽进入列表元素范围内时触发,x:' + event.x + ' y:' + event.y) + }) + .onItemDragMove((event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + if (this.mIndex != itemIndex) { + this.mIndex = itemIndex + console.info('pkgg 1 onItemDragMove 拖拽在列表元素范围内移动时触发,x:' + event.x + ' y:' + event.y + + ' itemIndex:' + + itemIndex + ' insertIndex:' + insertIndex) + } + }) + .onItemDragLeave((event: ItemDragInfo, itemIndex: number):void => { + console.info('pkgg 1 onItemDragLeave 拖拽离开列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + if (!isSuccess || insertIndex >= this.arr.length) { + return + } + if (insertIndex == -1) { + return + } + console.info('pkgg 1 onItemDrop 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发 ,x:' + + event.x + ' y:' + + event.y + ' itemIndex:' + itemIndex + ' insertIndex:' + insertIndex + ' isSuccess:' + isSuccess) + this.changeIndex(1, itemIndex, insertIndex) + }) + Column().width('100%').height('2%').backgroundColor(Color.Blue) + List({ space: 10 } as ListOptions) { + ForEach(this.arr2, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list2"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let numberObj = JSON.parseJsonElement(extraParams!,(key: string, value: jsonx.JsonElement): jsonx.JsonElement => { + if(key === "insertIndex") return value; + return value; + }) as Object; + console.info('call onDragStart' + numberObj) + }) + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_348: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets new file mode 100644 index 000000000..c7468d9a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets @@ -0,0 +1,295 @@ +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,DragEvent, + Callback,DragResult +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0670.ets + + +@Component +struct UIAttributesColorrampInterface0670 { + @State colors:Array<[ResourceColor, number]> = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:this.colors, + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.colors = [[Color.Blue, 0.0], [Color.Red, 0.3], [Color.Brown, 1]]; + this.btnShow = Visibility.Hidden + } else { + this.colors = [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]]; + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_018.ets + +@Component +struct Grid08 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置maxCount属性值为undefined').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .maxCount(undefined) + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0250.ets + + +@Component +struct UIActionEventCommonEventDragInterface0250{ + @State text:string ="拖拽状态:" + @Builder dragPreviewBuilder() { + Column() { + Text("dragPreview") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Row() { + Column() { + Button('拖拽') + .id("dragButton") + .width("30%") + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text += "Drag Success" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text += "Drag failed"; + }else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text += "Drag CANCELED"; + } + } as Callback) + .dragPreview(this.dragPreviewBuilder) + Text(this.text) + } + .width("100%") + } + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0090.ets + + +@Component +struct UIAttributesRenderFit0090 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM_RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0820.ets + + +@Component +struct UIAttributesColorrampInterface0820 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + rotation:0 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0060.ets + + +@Component +struct ActionEventCommoneventDragText0060 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(1, 4) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_349: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets new file mode 100644 index 000000000..ca8686f56 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets @@ -0,0 +1,401 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,PageTransitionEnter,RouteType,PageTransitionExit,Image,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0420.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0420 { + @State scale1: number = 1 + @State opacity1: number = 1 + pageTransition() { + PageTransitionEnter({ duration: 1200, curve: Curve.Linear }) + .onEnter((type: RouteType, progress: number):void => { + if (type == RouteType.Push||type == RouteType.Pop) { + this.scale1 = progress + this.opacity1 = progress + } + }) + PageTransitionExit({ duration: 1200, curve: Curve.Ease }) + .onExit((type: RouteType, progress: number):void => { + if (type == RouteType.Push) { + this.scale1 = 1 - progress + this.opacity1 = 1 - progress + } + }) + } + build() { + Column() { + Image('icon.png').width(200) + .id('imageId') + .onClick((e:ClickEvent)=>{ + const routerInstance = AppStorage.get("router", Type.of(new Router())) as Router + routerInstance.pushUrl({url:'testability/pages/UIAttributesComponentContentFillingModeInterface/0410'}) + }) + }.width('100%').renderFit(RenderFit.BOTTOM) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080.ets + + +@Component +struct UIAttributesColorRampAny0080 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .radialGradient({ + center:[50,50], + radius:60, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0150.ets + + +@Component +struct ActionEventCommoneventDragInput0150 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0510 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("string:“!@#3%^&*()_+”",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets + + +@Component +struct UiAttributesFloatingLayerInterface0180 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur15.ets + +@Component +struct linearGradientBlur15 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[-1, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0190.ets + + +@Component +struct UIActtonEventComdneventDracInterface0190 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0190_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0190_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets + + +@Component +struct UIAttributesBackgroundInterface1470 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.ets + + +@Component +struct UIAttributesColorRampBlurGradient0150 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(60, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0020.ets + + +@Component +struct UIAttributesFocuscontrolInterface0020 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("DefaultFocus(true)").defaultFocus(true) + Column({ space: 20 } as ColumnOptions) { + Button("你好") + } + Column({ space: 20 } as ColumnOptions) { + Button("你好啊") + } + } + } +} + + +export const FLAG_OF_FILE_35: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets new file mode 100644 index 000000000..890bca59c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets @@ -0,0 +1,439 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin,TextInputController,Divider, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0120.ets + + +@Component +struct UIAttributesModaltransitionInteration0120 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor:'#88000000', + enableOutsideInteractive: false, + preferType: SheetType.POPUP, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_1.ets + + +@Component +struct UIAttributesModaltransitionVision0150_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet: 居中") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:50, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0030.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0030 { + @State text: string = '' + controller: TextInputController = new TextInputController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + Divider() + .vertical(true) + .height(22) + .color('#ff3982d0') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .onClick((e: ClickEvent) => { + }) + Divider() + .vertical(true) + .height(22) + .color('#ff5aa02c') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ff0b4e96') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ff75064d') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Divider() + .vertical(true) + .height(22) + .color('#ffef0d5e') + .opacity(0.6) + .margin({ left: 8, right: 8 } as Margin) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0040.ets + + +@Component +struct UIAttributesRenderFit0040 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0720.ets + + +@Component +struct UIAttributesColorrampInterface0720 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [["rgb(0,0,255)", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0010.ets + + +@Component +struct ActionEventCommoneventDragText0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0260.ets + + +@Component +struct ActionEventCommoneventDragInput0260 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_037.ets + +@Component +struct Grid_037 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12','13','14','15') + scroller1: Scroller = new Scroller() + @State columnsTemplate: string = '1fr 1fr 2fr' + @State rowsTemplate: string = '1fr 1fr 2fr' + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplate) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') .height(300) + .backgroundColor(0xFAEEE0) + .border({width:1} as BorderOptions) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("repeat(auto-fit, 10%)") + .id('repeat(auto-fit, 10%)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, 10%)' + }) + } + ListItem(){ + Button("repeat(auto-fit, 90px)") + .id('repeat(auto-fit, 90px)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, 90px)' + }) + } + ListItem(){ + Button("repeat(auto-fit, -1)") + .id('repeat(auto-fit, -1)_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='repeat(auto-fit, -1)' + }) + } + ListItem(){ + Button("1fr 0 1fr") + .id('101fr_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='1fr 0 1fr' + }) + } + ListItem(){ + Button("1fr a 1fr") + .id('1a1fr_037') + .width(150) + .onClick((event:ClickEvent) => { + this.rowsTemplate='1fr a 1fr' + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_350: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets new file mode 100644 index 000000000..d26854561 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets @@ -0,0 +1,402 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller, + Alignment,List,ListItem,ForEach,BarState,Padding,FlexDirection,ItemAlign, + Stack,ClickEvent,Button,Flex,cursorControl,Text,TextAlign, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0280.ets + + +@Component +struct ActionEventCommonEventMouseStyle0280 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_GRABBING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0280_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0280" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0280_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracUnitymode0050.ets + + +@Component +struct UIActtonEventComdneventDracUnitymode0050 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracUnitymode0050_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracUnitymode0050_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0620.ets + + +@Component +struct ActionEventCommoneventDragdefault0620 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(200) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(200) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0210.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0210 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 60; + }).id('padding') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(100) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0250533.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0250533 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0250533_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollTo({ + xOffset: 0, + yOffset: 100, + animation: { duration: 1000, curve: Curve.Ease, canOverScroll: true } + }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0250533_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_351: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets new file mode 100644 index 000000000..8263ddc17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets @@ -0,0 +1,365 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Rect, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0030.ets + + +@Component +struct UIAttributesGraphictransformationInterface0030 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate:{angle:90}') + Image('cat.jpg') + .width(100) + .rotate({angle:90} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0200.ets + + +@Component +struct UIAttributesColorrampInterface0200 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Right, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0170.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0170 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.TopStart}) + .backgroundColor(Color.Gray) + .linearGradient({ + angle: 90, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + }) + .backgroundImage($r('app.media.startIcon')) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0050.ets + + +@Component +struct ActionGestureRegister0050 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0400.ets + + +@Component +struct ActionEventCommoneventDragdefault0400 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes420.ets + + +@Component +struct UIAttributesTouchableInteraction420 { + @State value: string = ''; + build() { + Column() { + Rect() + .width(180).height(80) + .id('UIAttributesTouchableInteraction420') + .hitTestBehavior(HitTestMode.Transparent) + .enabled(false) + .backgroundColor(Color.Black) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'Rect Clicked'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0120.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0120 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0120_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0120_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .gesture( + LongPressGesture({ repeat: true })// 由于repeat设置为true,长按动作存在时会连续触发,触发间隔为duration(默认值500ms) + .onAction((event: GestureEvent) => { + })// 长按动作一结束触发 + .onActionEnd((event: GestureEvent) => { + this.isClick = true; + }) + ) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0120_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0290.ets + + +@Component +struct UIAttributesBcakgroundSeriable0290 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.NoRepeat) + .width('100%') + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_352: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets new file mode 100644 index 000000000..4d68c711d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets @@ -0,0 +1,419 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0170.ets + + +@Component +struct UIAttributesColorrampInterface0170 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.None + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0070.ets + + +@Component +struct UIAttributesImageeffectInterface0070 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0150.ets + + +@Component +struct ActionEventCommoneventDragText0150 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0530.ets + + +@Component +struct UIAttributesImageeffectInterface0530 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0610.ets + + +@Component +struct UIAttributesImageeffectInterface0610 { + build() { + Column() { + Row() { + Text('test') + .blur(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/textinput1_rh/entry/src/main/ets/testability/pages/UIAttributeBackgroundSeriableReplacement/UIAttributeBackgroundSeriableReplacement0040.ets + + +@Component +struct UIAttributeBackgroundSeriableReplacement0040 { + @State msg: string = + "OpenHarmony是由开放原子开源基金会(OpenAtom Foundation)孵化及运营的开源项目, 目标是面向全场景、全连" + + "接、全智能时代、基于开源的方式,搭建一个智能终端设备操作系统的框架和平台" + @State dataArray: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State isShow: boolean = false + build() { + Column({ space: 10 } as ColumnOptions) { + if (this.isShow) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.dataArray, (item: number,index:number) => { + ListItem() { + Text('Text:' + item) + .width('90%') + .height(42) + .backgroundColor('#FFFFFF') + .borderRadius(24) + .fontSize(16) + .fontWeight(500) + .textAlign(TextAlign.Center).borderWidth(1) + } + }, (item: number,index:number) => String(item)) + } + .height('90%') + .width('100%') + .margin({ top: 12, left: '10%' } as Margin) + } + Row({ space: 10 } as RowOptions) { + Button('deleteCount=-5').id('SeriableReplacement0040_1').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -5); + this.isShow = true; + }) + Button('deleteCount=-10').id('SeriableReplacement0040_2').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -10); + this.isShow = true; + }) + Button('deleteCount=-20').id('SeriableReplacement0040_3').stateEffect(true).onClick((event:ClickEvent) => { + this.dataArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; + this.dataArray.splice(Number(3), -20); + this.isShow = true; + }) + }.borderWidth(3).borderColor(Color.Blue) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0160.ets + + +@Component +struct UIAttributesBackgroundInterface0160 { + build() { + Column() { + Row() { + Text("BACKGROUND_REGULAR") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface20.ets + + +@Component +struct AceActionEventCommoneventClickInterface20 { + @State text: string = 'screen.y = '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface20') + .onClick((event: ClickEvent) => { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0560.ets + + +@Component +struct UIAttributesColorrampInterface0560 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_014.ets + +@Component +struct Grid04 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为500').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(500) + .rowsGap(0) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0730.ets + + +@Component +struct UIAttributesModaltransitionVision0730 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[300] as [SheetSize|String|Double|Resource], + title: { + title: "超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试超长标题测试" + }, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_353: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets new file mode 100644 index 000000000..2114cf071 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets @@ -0,0 +1,384 @@ +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Row, Column, Color, $r } from '@ohos.arkui.component'; + +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions,Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface106.ets + + +@Component +struct UIAttributesBackgroundInterface106 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.XY) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0190.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0190 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0190_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0190_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.position.x; + this.y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${x}, positionY: ${this.y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_1.ets + + +@Component +struct UIAttributesModaltransitionVision0080_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0010.ets + + +@Component +struct ActionEventCommoneventDragdefault0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface123.ets + + +@Component +struct UIAttributesBackgroundInterface123 { + build() { + Column() { + Row() + .backgroundColor($r('app.media.startIcon')) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0130.ets + + +@Component +struct ActionEventCommoneventDragInput0130 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0600.ets + + +interface Params060 { + text: string +} +@Component +struct SubAceActionWindowWindowCustom0600 { + @State statel: string = 'text1'; + @Builder + builder1(params: Params060) { + Text(params.text).fontSize(50) + } + build() { + Column() { + this.builder1({ text: this.statel }) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_110.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_110 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(0) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0050.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0050 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(undefined) + .id('UIAttributesClivkreboundeffectInterface0050_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0550.ets + + +@Component +struct UIAttributesBackgroundInterface0550 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_354: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets new file mode 100644 index 000000000..841f81bb6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets @@ -0,0 +1,422 @@ +import { Entry, Component,Column,ColumnOptions,Scroll,Row,ForEach,GridRow,GridCol, + Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + Radio, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ItemAlign, + FlexDirection, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundRegular.ets + +@Component +struct BlurStyle_BackgroundRegular { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0100.ets + + +@Component +struct UIAttributesBcakgroundSeriable0100 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 220 + @State right: number = 20 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:220,bottom:0,right:20}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0620.ets + + +@Component +struct UIAttributesColorrampInterface0620 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center:[this.centerX,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 0 + this.btnShow = Visibility.None + } else { + this.centerX = 50 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0070.ets + + +@Component +struct UIAttributesSelectedStyle0070 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + .onChange((isChecked: boolean) :void=> { + console.log('Radio status is ' + isChecked) + } ) + } + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur17.ets + +@Component +struct linearGradientBlur17 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(60, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0030.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0030 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Green :Color.White) + .margin({left:50,top:50} as Margin).padding(10).backgroundColor('red') + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0010.ets + + +@Component +struct UIAttributesColorRampAny0010 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .linearGradient({ + direction:GradientDirection.Left, + repeating:true, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0030.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0030 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(2) + Button("你好呀").tabIndex(0) + Button("你好哈").tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0070.ets + + +@Component +struct UIAttributesImageEffectProjection0070 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .linearGradient({colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0480.ets + + +@Component +struct UIAttributesColorrampInterface0480 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0260.ets + + +@Component +struct UIAttributesBcakgroundSeriable0260 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0210.ets + + +@Component +struct UIAttributesBackgroundInterface0210 { + build() { + Column() { + Row() { + Text("Thick") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Thick) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0150.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0150 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridCol') + } + .height(20) + .width(200) + .borderWidth(1) + } + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridCol') + } + .height(20) + .width(200) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_355: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets new file mode 100644 index 000000000..559f3001d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets @@ -0,0 +1,384 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0450_917.ets + + +@Component +struct UIComponentListandgridGridInterface_0450_917 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth('20px') + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur16.ets + +@Component +struct linearGradientBlur16 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0, 0], [2, 2]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton137.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton137 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((): void => { + this.button1BC = Color.Green + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0010.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0010 { + build() { + Column({ space: 5 }as ColumnOptions) { + Text("你好").width(68).height(68) + .onClick((e: ClickEvent) => { + }) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 2 }) + ) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 2, fingers: 1 }) + ) + Text("你好").width(68).height(68) + .gesture( + TapGesture({ count: 1, fingers: 1 }) + ) + Text("你好").width(68).height(68) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest02.ets + +@Component +struct ZIndexTest02 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .zIndex(1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(3) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(3) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(2) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(3) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(-3) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest7.ets + +@Component +struct ZIndexDynamicModificationTest7 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 3 //text的value: 'ABC设置zIndex: 1 2 3' + this.zIndexValueIndex = 2 //ABC设置zIndex: 1 2 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_356: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets new file mode 100644 index 000000000..bf3f1fe7c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets @@ -0,0 +1,392 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Stack,List,ListItem,ForEach,Flex,ClickEvent,FlexDirection, + ItemAlign,TextAlign,Padding,ListScroller,Alignment,Button,Text,cursorControl,BarState, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,Margin +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization146.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization146 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + .defaultFocus(true) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + .defaultFocus(true) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + .defaultFocus(true) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('Back') + .id('SubaceUlComponentCommonAttRlfocusOptimization146_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0220.ets + + +@Component +struct UIAttributesGraphictransformationInterface0220 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('不设置scale') + Image('cat.jpg') + .width(100) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0110.ets + + +@Component +struct UIComponentCommonattrGrayscale0110 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [-10, -10] + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0100.ets + + +@Component +struct UiAttributesFloatingLayerInterface0100 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Start}) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0150.ets + + +@Component +struct ActionEventCommonEventMouseStyle0150 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0150_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0150" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0150_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0130.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0130 { + build() { + Column({ space: 5 }as ColumnOptions) { + Text("你好").width(68).height(68) + .tabIndex(1) + Text("你好").width(68).height(68) + .tabIndex(3) + Text("你好").width(68).height(68) + .tabIndex(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_357: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets new file mode 100644 index 000000000..d25cb3e8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets @@ -0,0 +1,427 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder, ProgressMask,$r,Curve,PlayMode} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0500.ets + + +@Component +struct UIAttributesBackgroundInterface0500 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Pink, 0.0], [0xD3E0DC, 0.3], [Color.Red, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0130_440.ets + + +@Component +struct UIComponentListandgridGridInterface_0130_440 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .constraintSize({ maxWidth: 200 }) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0580.ets + + +@Component +struct UIAttributesBackgroundInterface0580 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 480, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0420_773.ets + + +@Component +struct UIComponentListandgridGridInterface_0420_773 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(0) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0520.ets + + +@Component +struct UIAttributesModaltransitionVision0520 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + title: { + title: 'Main Title', + subtitle: 'Sub Title' + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic10.ets + +@Component +struct buttonDynamicExample10 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button10') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1390.ets + + +@Component +struct UIAttributesBackgroundInterface1390 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0.5, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0070_077.ets + + +@Component +struct UIComponentListandgridGridEvents_0070_077 { + @State numbers: Array = new Array('0', '1', '2', '3'); + @State numbers2: Array = new Array('0', '1', '2'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + @State Text: string = 'Log'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridGridEvents_0070_077') + .columnsTemplate('1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(50) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Off) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + this.Text= 'Index:'+this.numbers[0]; + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + Text(this.Text) + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0410.ets + + +@Component +struct UIAttributesColorrampInterface0410 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Button') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: 0, + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ProgressMaskIndex.ets + +@Component +struct ProgressMaskExample { + @State progressflag1: boolean = true; + @State color: Color|string = '#01006CDE'; + @State value: number = 10.0; + @State enableBreathingAnimation: boolean = false; + @State progress: ProgressMask = new ProgressMask(10.0, 100.0, Color.Gray); + build() { + Column({ space: 15 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('500px').height('280px') + .mask(this.progress) + .animation({ + duration: 2000, // 动画时长 + curve: Curve.Linear, // 动画曲线 + delay: 0, // 动画延迟 + iterations: 1, // 播放次数 + playMode: PlayMode.Normal // 动画模式 + }) // 对Button组件的宽高属性进行动画配置 + Button('updateProgress +++') + .onClick((event?: ClickEvent) => { + this.value += 10; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + Button('updateProgress ---') + .id('button_auto_updateProgress') + .onClick((event?: ClickEvent) => { + this.value -= 10; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + Button('updateColor') + .id('button_auto_updateColor') + .onClick((event?: ClickEvent) => { + if (this.progressflag1) { + this.progress.updateColor(0x9fff0000); + } else { + this.progress.updateColor(0x9f0000ff); + } + this.progressflag1 = !this.progressflag1 + }).width(200).height(50).margin(20) + Button('enableBreathingAnimation:' + this.enableBreathingAnimation) + .id('button_auto_enableBreathingAnimation') + .onClick((event?: ClickEvent) => { + this.enableBreathingAnimation = !this.enableBreathingAnimation + this.progress.enableBreathingAnimation(this.enableBreathingAnimation); + }).width(200).height(50).margin(20) + Button('click reset!') + .onClick((event?: ClickEvent) => { + this.value = 0; + this.progress.updateProgress(this.value); + }).width(200).height(50).margin(20) + } + .width('100%') + .margin({ top: 15 } as Margin) + } +} + + +export const FLAG_OF_FILE_358: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets new file mode 100644 index 000000000..5a8718d38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets @@ -0,0 +1,372 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage,Link, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType,TextInputController, + ScrollDirection, Margin,TextInput,Flex,TextInputOptions,MenuItem, + BarState,CustomDialog,CustomDialogController,Menu,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Text,VerticalAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Color, + Entry, + Component, + ObscuredReasons, + ClickEvent, + Row, + Column, + Text, + Image, + Image, + FlexAlign, + Button +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,List,$$, + ListItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0100.ets + + +@Component +struct UIComponentCommonattrGrayscale0100 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [48, 58] + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic.ets + +@Component +struct buttonDynamicExample { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Capsule' + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0010.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0010 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(0) + Button("你好呀").tabIndex(0) + Button("你好哈").tabIndex(0) + }.tabIndex(0) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0690.ets + + +@Component +struct UIAttributesModaltransitionVision0690 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + List() { + ForEach([1,2,3,4,5,6,7,8,9,10], (item: Int,index:Double) => { + ListItem() { + Text(`List Item ${item}`).height(40) + } + }) + } + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0260.ets + + +@Component +struct UIComponentMediaImageMask0260 { + @State widthSize: number = 100; + @State heightSize: number = 100; + @State reasons: Array | undefined = [ObscuredReasons.PLACEHOLDER]; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .obscured(this.reasons) + Button('change Size').onClick((e: ClickEvent) => { + if (this.reasons == null) { + this.reasons = [ObscuredReasons.PLACEHOLDER]; + } else { + this.reasons = undefined; + } + }).id('mask0260_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_090_321.ets + + +@Component +struct UIComponentListandgridGridInterface_090_321 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + .padding(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0110.ets + + +@Component +struct UIAttributesColorrampInterface0110 { + @State directionY:GradientDirection= GradientDirection.Bottom + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:this.directionY, + } as LinearGradientOptions) + .animation({ + duration: 1000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.directionY=GradientDirection.Right + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0010.ets + +@Component +struct ActionEventCommonEventDragListItem0010 { + @State message: string = '拖动我'; + build() { + Column() { + Button(this.message) + .id('ActionEventCommonEventDragListItem0010') + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + }) + .margin({ top: 100 } as Margin) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + Text('1').fontSize(1).id("ActionEventCommonEventDragListItem0010Text").margin({ top: 200 } as Margin) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0070_335.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0070_335 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrResult/UIComponentCommonattrResult0160.ets + + +@Component +struct UIComponentCommonattrResult0160 { + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + Button('调用requestFocus传入page页textInput') + .id('UIComponentCommonattrResult0160_001') + .onClick((e: ClickEvent) => { + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_359: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets new file mode 100644 index 000000000..92cf29d0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets @@ -0,0 +1,394 @@ +import { Entry, Component, Row, Column, Color, Builder, Image } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + px2vp,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,Callback,DragResult,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0270.ets + + +@Component +struct UIActionEventCommonEventDragInterface0270 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image("./cat.jpg") + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0010.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0010 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0010_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('点击:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0010_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0010_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0300_345.ets + + +@Component +struct UIComponentListandgridGridInterface_0300_345 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(undefined) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0040.ets + + +@Component +struct ActionEventCommoneventDragText0040 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(1, 4) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.ets + + +@Component +struct UIAttributesModaltransitionVision0030 { + @State isShow: boolean = false + @State detents: number = 0; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`当前挡位:${this.detents}`) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[400, 500, 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + onDetentsDidChange: (detents:number):void => { + this.detents = Math.floor(px2vp(detents)); + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets + + +@Component +struct UIAttributesBackgroundInterface0480 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0480 { + @Builder + overlayBuilder(){ + Image('icon.png') + .height("50%") + .width("50%") + } + build() { + Column() { + Image("2.png") + .height("100vp") + .width("100vp") + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_36: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets new file mode 100644 index 000000000..98582f75f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets @@ -0,0 +1,475 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,List, + ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection,BarState,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,Callback,DragResult,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color,ScaleOptions,TranslateOptions,RotateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0080.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0080 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=-inf') + .id('UIAttributesGraphicTransformationSkew0080_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(Infinity, 0); + }) + Button('y=-inf') + .id('UIAttributesGraphicTransformationSkew0080_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, Infinity); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0260.ets + + +@Component +struct UIActionEventCommonEventDragInterface0260 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image("./cat.jpg") + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + this.dragSuccess = true + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0060.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0060 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 内侧-5px') + .focusBox({ + margin: LengthMetrics.px(-5), + }) + Button('button margin 内侧-5vp') + .focusBox({ + margin: LengthMetrics.vp(-5), + }) + Button('button margin 内侧-5fp') + .focusBox({ + margin: LengthMetrics.fp(-5), + }) + Button('button margin 内侧5') + .focusBox({ + margin: LengthMetrics.vp(5), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0130.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0130 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0130_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0310.ets + + +@Component +struct UIAttributesImageeffectInterface0310 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0220.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0220 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List() { + ListItem() { + Text('alist') + } + } + .borderWidth(1) + List() { + ListItem() { + Text('alist') + } + } + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0340.ets + + +@Component +struct ActionEventCommonEventMouseStyle0340 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RESIZE_UP_DOWN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0340_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0340" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0340_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_360: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets new file mode 100644 index 000000000..55f122e8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets @@ -0,0 +1,343 @@ +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,TextAlign, + Scroll, ForEach, Color, ColumnOptions, EdgeEffect, BarState, Margin,Grid, GridItem, Blank, GridDirection, ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Stack,List,ListItem,ForEach,ClickEvent,TextAlign,Text, + BarState,Padding,FlexDirection,ItemAlign,ListScroller,Alignment,Button,Flex,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_Light.ets + +@Component +struct ThemeColorMode_Light { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0100.ets + + +@Component +struct UIAttributesModaltransitionInteration0100 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20] as number[]; + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: 300, + preferType: SheetType.POPUP + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0140.ets + + +@Component +struct ActionEventCommonEventMouseStyle0140 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0140_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0140" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0140_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/rowsGap.ets + +@Component +struct rowsGapExample { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State rowsGapNumber: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(this.rowsGapNumber) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('next page') + .onClick((event:ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + Button('rowsGap + 10') + .id("rowsGapAdd") + .onClick((event:ClickEvent) => { // 点击后滑到下一页 + this.rowsGapNumber = this.rowsGapNumber + 10; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0070.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0070 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Image($r('app.media.startIcon')) + .id('SubAceActionEventCommoneventDragImprove0070_btn') + .width('16.67%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0070_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_361: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets new file mode 100644 index 000000000..707770b55 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets @@ -0,0 +1,469 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,ClickEvent,Span +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + Blank,Divider,BarState,ScrollDirection, + DatePicker,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, ImageSize } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + MenuItemOptions, + $r, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0020.ets + + +@Component +struct UIAttributesGraphictransformationInterface0020 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate({angle:-90})') + Image('cat.jpg') + .width(100) + .rotate({angle:-90} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton157.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton157 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_157_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_157_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1410.ets + + +@Component +struct UIAttributesBackgroundInterface1410 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + angle:90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface095.ets + + +@Component +struct UIAttributesBackgroundInterface095 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Contain) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0030.ets + + +@Component +struct UIAttributesModaltransitionInteration0030 { + @State isShow: boolean = false + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.********.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @Builder + myBuilder() { + Text('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime) + .id("sheet_text") + .width('100%') + .height(500) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:300 + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0120.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0120 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Divider() + .strokeWidth(8) + Blank() + Divider() + .strokeWidth(8) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0030.ets + + +@Component +struct ActionEventControlCallback0030 { + @State context: string = "" + build() { + Column(){ + Text() { + Span('I am Upper-span') + .fontSize(32) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0430.ets + + +@Component +struct ActionEventCommoneventDragdefault0430 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字abcd' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0310.ets + + +@Component +struct ActionEventCommonEventMouseStyle0310 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HELP; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0310_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0310" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0310_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_362: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets new file mode 100644 index 000000000..97096e600 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets @@ -0,0 +1,349 @@ +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput,TextInputOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, CustomBuilder, PanGestureOptions,PanDirection, + CustomDialogController,CustomDialogControllerOptions,DialogAlignment,ColumnOptions, + Button,ClickEvent,PanGesture,GestureEvent,TranslateOptions,PanGestureHandlerOptions, + DragItemInfo, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0070.ets + + +@Component +struct UIComponentCommonattrGrayscale0070 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [45, 85] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0350.ets + + +@Component +struct ActionEventCommoneventDragdefault0350 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({top:150} as Margin) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0210.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0210 { + @State opacity1:number = 1.0 + @State isClick:boolean = false + onButtonClick(){ + this.opacity1 = 0.5 + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Black : Color.Red) + .margin({left:50,top:50} as Margin).padding(10) + .blendMode(this.isClick == true ? BlendMode.SRC_IN : BlendMode.SRC) + }.width('100%').height(200).backgroundColor(Color.Green).opacity(this.opacity1) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + }) + .id('buttonId1') + Button("padding设置BlendMode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId2') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInteraction/ActionEventCommoneventDragInteraction0060.ets + + +@Component +struct ActionEventCommoneventDragInteraction0060 { + @State info: string[] = [] as string[]; + @State numbers: number[] = [0, 1, 2, 3, 4 , 5, 6, 7, 8] as number[]; + private dragAction: dragController.DragAction | null = null; + customBuilders: Array = new Array(); + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + @State radioIndex:number = 2; + build() { + Column({ space: 5} as ColumnOptions) { + Button('0060') + .height("50") + .id('button') + .onClick((e: ClickEvent) => { + }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0660.ets + + +@Component +struct UIAttributesModaltransitionVision0660 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0010.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0010 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeWidth -20px') + .focusBox({ + strokeWidth: LengthMetrics.px(-20) + }) + Button('button strokeWidth -20vp') + .focusBox({ + strokeWidth: LengthMetrics.vp(-20), + }) + Button('button strokeWidth -20lpx') + .focusBox({ + strokeWidth: LengthMetrics.lpx(-20), + }) + Button('button strokeWidth -20fp') + .focusBox({ + strokeWidth: LengthMetrics.fp(-20), + }) + Button('button strokeWidth 30%') + .focusBox({ + strokeWidth: LengthMetrics.percent(30), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0160.ets + + +@Component +struct UIAttributesFocuscontrolInterface0160 { + controller: TextInputController = new TextInputController() + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .tabIndex(1) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0030.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0030 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + + +export const FLAG_OF_FILE_363: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets new file mode 100644 index 000000000..3b0fef603 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets @@ -0,0 +1,391 @@ +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Flex,FlexOptions,EdgeEffect,FlexWrap,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridDirection, GridLayoutOptions,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0200.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0200 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_039.ets + +@Component +struct Grid_039 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = Infinity + @State minCount: number = 1 + @State mWidth: number = 90 + @State mHeight: number = 50 + @State mTemplate: string = '1fr 1fr 1fr 1fr 1fr' + @State layoutDirection: GridDirection = GridDirection.Column + scroller1: Scroller = new Scroller() + @State layoutOptions: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('maxCount=0') + .onClick((event:ClickEvent) => { + this.maxCount = 0 + }) + Text() + .width(10) + .height(10) + .key('maxCount=2') + .onClick((event:ClickEvent) => { + this.maxCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0290_608') + .onClick((event:ClickEvent) => { + this.mHeight = 100 + this.minCount = 0 + }) + Text() + .width(10) + .height(10) + .key('0300_178') + .onClick((event:ClickEvent) => { + this.mHeight = 100 + this.minCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0400_276') + .onClick((event:ClickEvent) => { + this.mWidth = 150 + this.minCount = 2 + }) + Text() + .width(10) + .height(10) + .key('0410_660') + .onClick((event:ClickEvent) => { + this.mWidth = 150 + this.minCount = -2 + }) + Text() + .width(10) + .height(10) + .key('0320_750') + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(this.mWidth) + .height(this.mHeight) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .width(300) + .height(170) + .columnsGap(10) + .rowsGap(10) + .minCount(this.minCount) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCount) + .layoutDirection(this.layoutDirection) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0570.ets + + +@Component +struct ActionEventCommoneventDragdefault0570 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '123456789' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0180.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0180 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Pink : Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(this.isClick == true ? Color.Pink : Color.Green) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0250_798.ets + + +@Component +struct UIComponentListandgridGridInterface_0250_798 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(2) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0480.ets + + +@Component +struct UIAttributesImageeffectInterface0480 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .colorBlend('rgb(255,200,255)') + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0020.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0020 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .stateEffect(false) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.9 }) + .id('UIAttributesClivkreboundeffectInterface0020_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0100.ets + + +@Component +struct UIAttributesColorRampBlurGradient0100 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.Top} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_364: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets new file mode 100644 index 000000000..423665b30 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets @@ -0,0 +1,408 @@ +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,Button,Row,ButtonType,DragEvent,Margin,Color,Padding,DragEvent,$r,ColumnOptions, + Image,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,DragPreviewMode,Callback +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Color,$r,Margin,Row +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0120.ets + + +@Component +struct UIAttributesModaltransitionSafearea0120 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0580.ets + + +@Component +struct UIAttributesImageeffectInterface0580 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0020.ets + + +@Component +struct ActionEventCommoneventDragdefault0020 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0060.ets + + +@Component +struct UIAttributesBcakgroundSeriable0060 { + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:0,right:10}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:0,right:10} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:10,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:10,right:0} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + Column({ space: 10 } as ColumnOptions) { + Text('{top:20,left:20,bottom:0,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: {top:20,left:20,bottom:0,right:0} + }) + .width(200).height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0280.ets + + +@Component +struct ActionEventCommoneventDragImage0280 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image($r('app.media.startIcon')) + .border({ color: Color.Black, width: 1 }) + .id('img1') + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image(this.targetImage) + .id('img2') + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event1: DragEvent) => { + event1.useCustomDropAnimation = false; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0710.ets + + +@Component +struct UIActionEventCommonEventDragInterface0710 { + build() { + Row() { + Column() { + Image("./cat.jpg") + .id("dragButton") + .margin({ top: 10 } as Margin) + .width("80%") + .draggable(true) + .onDragStart((event: DragEvent):() => void =>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0070.ets + + +@Component +struct ActionEventCommoneventDragInterface0070 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .margin({ top: 20 } as Margin) + .width(100) + .height(100) + .backgroundColor(Color.Blue) + .id('0') + Text(`回调触发:${Array.from(new Set(this.text))}`) + Column().width(200).height(200) + .id('1') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.text.push('Drop'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.text.push('DragMove'); + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.text.push('DragLeave'); + }) + .border({ + width: 2 + }) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + + +export const FLAG_OF_FILE_365: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets new file mode 100644 index 000000000..aa06f253e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets @@ -0,0 +1,412 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import {Entry,Component,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign,Image,Row,List,ForEach,ListItem, + Margin,BorderOptions,DragEvent,Visibility,$r,Color +} from '@ohos.arkui.component' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { IDataSource, DataChangeListener } from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/common/BasicDataSource.ets + +abstract class BasicDataSource implements IDataSource { + private listeners: Array = new Array() + abstract totalCount(): number + abstract getData(index: number): T + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener') + this.listeners.push(listener) + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener') + this.listeners.splice(pos, 1) + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded() + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index) + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index) + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index) + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to) + }) + } +} +export class MyDataSource extends BasicDataSource { + private dataArray: T[] = [] + public totalCount(): number { + return this.dataArray.length + } + public getData(index: number):T { + return this.dataArray[index] + } + public addData(index: number, data: T): void { + this.dataArray.splice(index, 0, data) // 在index位置增加data + this.notifyDataAdd(index) + } + public dataReload(): void { + this.notifyDataReload() + } + public pushData(data: T): void { + this.dataArray.push(data) + this.notifyDataAdd(this.dataArray.length - 1) + } + public deleteIndex(index: number): void { + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public deleteData(data: T): void { + let index = this.dataArray.indexOf(data) + this.dataArray.splice(index, 1) // 在index位置删除1个数据 + this.notifyDataDelete(index) + } + public moveData(from: number, to: number) { + this.notifyDataMove(from, to) + } + public changeData(index: number, data: T) { + this.dataArray[index] = data + this.notifyDataChange(index) + } + public indexOf(data: T): number { + return this.dataArray.indexOf(data) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0120.ets + + +@Component +struct ActionEventCommoneventDragImage0120 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_FAILED) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_FAILED) { + this.result = '成功获取拖拽失败状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0200.ets + + +@Component +struct ActionEventCommoneventDragImage0200 { + @State uri: string|undefined = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri!)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let txt = arr[0] as unifiedDataChannel.Text; + this.uri = txt.details?.['content']; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let txt: unifiedDataChannel.Text = new unifiedDataChannel.Text(); + txt.details = { + 'content': '这是一个文本' + } as Record + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(txt); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SampleMultipleSelectionDrag/SampleMultipleSelectionDrag0010.ets + + +@Component +struct SampleMultipleSelectionDrag0010 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('0') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .onDragStart(undefined) + .draggable(true) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('1') + .height('90%') + .width('100%') + .backgroundColor(Color.Red) + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('2') + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .backgroundColor(Color.Green) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0120.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0120 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.MIDDLE }) + .id('UIAttributesClivkreboundeffectInterface0120_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0050.ets + + +@Component +struct ActionEventCommoneventDragImage0050 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image("icon.png") + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_366: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets new file mode 100644 index 000000000..f3edcf4d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets @@ -0,0 +1,388 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Row,$r, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { BusinessError } from '@ohos.base'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Rect, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextInputController, + Button, + TextInput, + ClickEvent, + MenuPolicy +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage,Link, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, Margin,TextInput,Flex,TextInputOptions,MenuItem, + BarState,CustomDialog,CustomDialogController,Menu,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column1.ets + +@Component +struct Column1Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(5) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_013.ets + +@Component +struct Grid03 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为5').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0220.ets + + +@Component +struct CustomDialogUser { + @State textValue: string = '' + @State inputValue: string = 'click me' + aboutToDisappear() { + } + onCancel() { + console.info('Callback when the first button is clicked') + } + onAccept() { + console.info('Callback when the second button is clicked') + } + exitApp() { + console.info('Click the callback in the blank area') + } + build() { + Column() { + Button(this.inputValue) + .id('UIComponentCommonattrDrawingoptimization0220_001') + .onClick((e: ClickEvent) => { + }).backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface128.ets + + +@Component +struct UIAttributesBackgroundInterface128 { + build() { + Column() { + Row() + .backgroundColor("dsfsdfsf") + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0350.ets + + +@Component +struct SubAceActionWindowWindowCustom0350 { + controller: TextInputController = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextInput({ text: "123456", controller: this.controller }) + .id('input') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0350.ets + + +@Component +struct UIAttributesBackgroundInterface0350 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes380.ets + + +@Component +struct UIAttributesTouchableInteraction380 { + @State value: string = ''; + build() { + Column() { + Rect() + .width(180) + .height(80) + .id('UIAttributesTouchableInteraction380') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(Color.Black) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'Rect Clicked'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0130.ets + + +@Component +struct ActionEventCommoneventDragImage0130 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + event?.setResult(DragResult.DRAG_SUCCESSFUL) + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?: string):void => { + if(event.getResult() == DragResult.DRAG_SUCCESSFUL) { + this.result = '成功获取拖拽成功状态' + } + }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface097.ets + + +@Component +struct UIAttributesBackgroundInterface097 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_367: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets new file mode 100644 index 000000000..125f0c658 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets @@ -0,0 +1,426 @@ +import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions, + $$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,GradientDirection,Color, + RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,SwiperController,Text,Swiper,TextAlign, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + LongPressGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0140.ets + + +@Component +struct UIComponentBackgroundimage0140 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface109.ets + + +@Component +struct UIAttributesBackgroundInterface109 { + build() { + Column() { + Row() + .backgroundImage('fly.svg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes10.ets + + +@Component +struct UIAttributesTouchableInteraction10 { + @State count: number = 0 + build() { + Column() { + Text('LongPress onAction:' + this.count) + .fontSize(28) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction10') + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent) => { + if (event && event.repeat) { + this.count++ + } + }) + .onActionEnd((event: GestureEvent) => { + this.count = 0 + }) + ) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0480.ets + + +@Component +struct ActionEventControlCallback0480 { + @State context: string = "hello" + private swiperController: SwiperController = new SwiperController() + build() { + Column() { + Text(this.context) + Swiper(this.swiperController) { + Text('0') + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + Text('1') + .width('90%') + .height(160) + .backgroundColor(0xAFEEEE) + .textAlign(TextAlign.Center) + .fontSize(30) + } + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0020_204.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0020_204 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.PLAIN} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0190.ets + + +@Component +struct ActionEventCommonEventMouseStyle0190 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0190_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0190" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0190_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic6.ets + +@Component +struct buttonDynamicExample6 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button6') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0100.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0100{ + build() { + Column({ space: 5 }as ColumnOptions) { + Text("disable") + }.width('100%').margin({ top: 5 } as Margin) + .tabIndex(1) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0460.ets + + +@Component +struct UIAttributesColorrampInterface0460 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[['rgb(0,0,255)',0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxModalTransition/ComponentPopupBoxModalTransitionHover0010.ets + + +@Component +struct ComponentPopupBoxModalTransitionHover0010 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @Builder + myBuilder() { + Column() { + Text('半模态 enableHoverMode不设置').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + build() { + Column() { + Button("show transition modal") + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + height: this.sheetHeight, + backgroundColor: Color.Pink, + enableHoverMode: undefined + } as SheetOptions).id('ComponentPopupBoxModalTransitionHover0010_button_01') + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_368: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets new file mode 100644 index 000000000..9a545b344 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets @@ -0,0 +1,395 @@ +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, TapGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Text, + Image, + Margin, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Color, + Alignment, + PopupOptions, + PopupButton, + PopupStateChangeParam, + PopupStateChangeCallback +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,TextAlign, + BarState,TapGesture,Margin,ListScroller,List,ListItem, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Blank,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0020.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0020 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Blank() + .height(30) + .borderWidth(1) + Blank() + .borderWidth(1) + .height(30) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0020.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0020 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollTo({xOffset: 0, yOffset: 20} as ScrollOptions) + this.scroller1.scrollEdge(Edge.Top, { + velocity: 10.01 + } as ScrollEdgeOptions) + }).id('ScrollScrollbarScrolledge0020_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0090.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0090 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + private listScroller: ListScroller = new ListScroller(); + @State flag: boolean = false; + build() { + Column() { + List({ space: 10, scroller: this.listScroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('item_' + item) + .width('100%') + .height(100) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFFFFF) + } + }, (item: number) => String(item)) + }.focusable(true) + .padding(10) + .height(500) + Row({ space: 20 } as RowOptions) { + Button('focusable true') + }.height('50%') + }.onClick((e: ClickEvent)=>{}) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur7.ets + +@Component +struct linearGradientBlur7 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Left } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0230.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0230 { + @State handlePopup: boolean = false; + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode") + .margin({ right: 50 } as Margin) + .fontSize(20) + .fontColor(Color.Black) + }.width('100%').height(180).alignItems(HorizontalAlign.Center).margin({ top: 50 } as Margin) + } + build() { + Column() { + Button('show dialog') + .id('overlay0230_button_01') + .onClick((e: ClickEvent) => { + this.handlePopup = !this.handlePopup; + }) + .bindPopup(this.handlePopup, { + message: 'Options1', + showInSubWindow: true, + primaryButton: { + value: 'confirm', + action: () => { + this.handlePopup = !this.handlePopup + console.info('confirm Button click') + } + } as PopupButton, + secondaryButton: { + value: 'cancel', + action: () => { + this.handlePopup = !this.handlePopup + console.info('cancel Button click') + } + } as PopupButton, + onStateChange: (e: PopupStateChangeParam) => { + console.info(String(e.isVisible)) + if (!e.isVisible) { + this.handlePopup = false + } + } as PopupStateChangeCallback + } as PopupOptions).overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { align: Alignment.Start }) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0430.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0430 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .gesture( + TapGesture({ count: 1}) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.sonValue = "子按键触发"; + } + })) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父按键") + .id("fatherButton") + .fontSize(50) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + this.fatherValue = "父按键触发"; + } + })) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void =>{this.overlayBuilder()},{offset:{x:50,y:100}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0240.ets + + +@Component +struct ActionEventCommoneventDragImage0240 { + @State uri: string = "" + @State intr: string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let sum = '' + event?.getSummary().summary; + this.intr = sum ; + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let img = arr[0] as unifiedDataChannel.Image; + this.uri = img.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + Text("获取简介成功:"+this.intr).fontSize(20) + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_369: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets new file mode 100644 index 000000000..f36de39a1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets @@ -0,0 +1,497 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,TextInput,Button,Column,Margin +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets + + +@Component +struct UIAttributesBackgroundInterface0610 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "90deg", + end: "270deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0150 { + @State rotateAngle: number = 0 + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.rotateAngle = 90 + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .fontSize(50) + .margin({left:100,top:50} as Margin) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .rotate({ angle: this.rotateAngle }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.ets + + +@Component +struct UIAttributesColorrampInterface0700 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[-10,-10], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic7.ets + +@Component +struct buttonDynamicExample7 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button7') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0010.ets + + +@Component +struct ActionEventCommoneventClickDfx0010 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0010") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0100.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0100 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('zIndex(1)') + .visibility(Visibility.Visible) + .zIndex(1) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(2)') + .visibility(Visibility.Visible) + .zIndex(2) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(3)') + .visibility(Visibility.Visible) + .zIndex(3) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterWebsearchEventCallback/ActionEventRegisterWebsearchEventCallback010.ets + + +@Component +struct ActionEventRegisterWebsearchEventCallback010 { + build(){ + Column(){ + TextInput().width(300).height(50).margin({top:30} as Margin) + .id("websearchEventCallback010") + Button("获焦").margin({top:30} as Margin) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.ets + + +@Component +struct UIAttributesModaltransitionVision0280 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets + + +@Component +struct UIAttributesImageEffectProjection0200 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:-50, y:-50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0060 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0060_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0060_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.ets + + +@Component +struct UIAttributesColorrampInterface0380 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + radius: 20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_035.ets + +@Component +struct Grid_035 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12') + scroller1: Scroller = new Scroller() + @State scrollbar:BarState=BarState.Off + @State columnsTemplate: string = '1fr 1fr 2fr' + @State columnsTemplateNum: number = 0 + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .columnsTemplate(this.columnsTemplate) + .scrollBar(this.scrollbar) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("repeat(auto-fit, 10%)") + .id('repeat(auto-fit, 10%)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 10%)' + }) + } + ListItem(){ + Button("repeat(auto-fit, 90px)") + .id('repeat(auto-fit, 90px)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 90px)' + }) + } + ListItem(){ + Button("repeat(auto-fit, -1)") + .id('repeat(auto-fit, -1)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, -1)' + }) + } + ListItem(){ + Button("1fr 0fr 1fr") + .id('101fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr 0fr 1fr' + }) + } + ListItem(){ + Button("1fr a 1fr") + .id('1a1fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr a 1fr' + }) + } + ListItem(){ + Button('On') + .id('On') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.On + }) + } + ListItem(){ + Button('Off') + .id('Off') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Off + }) + } + ListItem(){ + Button('Auto') + .id('Auto') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Auto + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_37: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets new file mode 100644 index 000000000..39d546d17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets @@ -0,0 +1,465 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, GestureEvent, LongPressGesture, Text, Image} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ClickEvent,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0070.ets + + +@Component +struct ActionEventCommonEventMouseStyle0070 { + build() { + Column({ space: 50 } as ColumnOptions) { + Button("Button1") + .id("ActionEventCommonEventMouseStyle0070_01") + .onClick((e:ClickEvent) => { + cursorControl.setCursor(pointer.PointerStyle.SCREENSHOT_CURSOR); + }) + Button("Button2") + .id("ActionEventCommonEventMouseStyle0070_02") + .onClick((e:ClickEvent) => { + cursorControl.restoreDefault(); + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest9.ets + +@Component +struct ZIndexDynamicModificationTest9 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 5 //text的value: 'ABC设置zIndex: 2 3 1' + this.zIndexValueIndex = 4 //ABC设置zIndex: 2 3 1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_002.ets + +@Component +struct onlyColumnCellLength { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State cellLengthValue: number = 1 + onPageShow() { + console.info('onlyColumnCellLength onPageShow') + this.cellLengthValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .cellLength(this.cellLengthValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0360.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0360 { + @State count: number = 0; + @Builder + overlayBuilder(){ + Button("长按数字变化") + .id("changanButton") + .fontSize(25) + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + if(event){ + if (event.repeat) { + this.count++; + } + } + }) + .onActionEnd(() => { + this.count = 0; + }) + ) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count.toString()).fontSize(40) + Image("2.png").overlay((): void =>{ this.overlayBuilder() },{offset:{x:100,y:100}}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0220.ets + + +@Component +struct ActionEventCommonEventMouseStyle0220 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_EAST_SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0220_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0220" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0220_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0400.ets + + +@Component +struct ActionEventCommonEventMouseStyle0400 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0400_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0400" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0400_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_370: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets new file mode 100644 index 000000000..d25fc90f8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets @@ -0,0 +1,314 @@ +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,ListScroller,Grid, + GridItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GestureMode, + PanGesture, + Button, + GestureGroup, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0140.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0140 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0140_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('长按:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0140_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(this.isClick ? Color.Yellow : Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0140_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0260.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0260 { + @State backColor: Color = Color.Blue; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State count: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + build() { + Column() { + Column() { + Button('这是一个Button1') + .id('btn') + .backgroundColor(this.backColor) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction(() => { + this.backColor = Color.Red + }) + .onActionEnd(() => { + console.info('LongPress end'); + }), + PanGesture() + .onActionStart(() => { + this.backColor = Color.Pink + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetX = (this.positionX + event.offsetX); + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + ) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0070.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0070 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1.1 }) + .id('UIAttributesClivkreboundeffectInterface0070_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0020.ets + + +@Component +struct UIAttributesColorRampBlurGradient0020 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(0, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_2.ets + + +@Component +struct UIAttributesModaltransitionVision0070_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0430.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0430 { + build() { + Column() { + Grid(){ + GridItem(){ + RowSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + } + .id('button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0030.ets + + +@Component +struct ActionGestureRegister0030 { + private arr: number[] = new Array(0, 1, 2, 3) + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + + +export const FLAG_OF_FILE_371: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets new file mode 100644 index 000000000..00bde2012 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets @@ -0,0 +1,497 @@ +import promptAction from '@ohos.promptAction'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding,$r} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Image,$r,Color,DragEvent,Margin,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent,Visibility,Flex,FlexDirection,ItemAlign,FlexAlign,List,ForEach, + ListItem, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0400.ets + + +@Component +struct UIAttributesGraphictransformationInterface0400 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{z:1}') + Image('cat.jpg') + .width(100) + .scale({z:1} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid008.ets + +@Component +struct UIComponentGrid008 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .width(170) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCountValue) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('Infinity') + .onClick((event: ClickEvent) => { + this.maxCountValue = Infinity + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0090.ets + + +@Component +struct ActionEventCommoneventDragImage0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('view-1') + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .id('view-2') + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop(undefined) + .onDrop((event?: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0690.ets + + +@Component +struct UIAttributesColorrampInterface0690 { + @State startX: number = 0; + @State endX: number = 90; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: this.startX, + end: this.endX, + repeating: false + } as SweepGradientOptions) + .animation({ + duration:1000 + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.startX=20 + this.endX=140 + this.btnShow = Visibility.Hidden + } else { + this.startX=0 + this.endX=90 + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0280.ets + + +@Component +struct ActionEventCommoneventDragdefault0280 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({top:250} as Margin) + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnBackdropBlur.ets + +@Component +struct BackGroundBlur { + private imageSize: number = 150; + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .backgroundImage($r('app.media.startIcon')) + .width(this.imageSize) + .height(this.imageSize) + .backdropBlur(5, { grayscale: [100, 100] }) + } + .width('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentOnAppear.ets + +@Component +struct ContentOnAppear { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State num:number = 0 + @State num2:number = 0 + @State num3:number = 0 + @State num4:number = 0 + @State num5:number = 0 + @State num6:number = 0 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentOnAppear5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Orange, onAppear: () => { + this.num3 = this.num + this.num3+=1 + console.log("BindContentCover onAppear2.") + }, + onDisappear: () => { + this.num4 = this.num2 + this.num4+=1 + console.log("BindContentCover onDisappear2.") + }} as SheetOptions) + Text('2 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('2 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Button("close modal 1").fontSize(11).id('ContentOnAppear6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentOnAppear7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => { + this.num+=1 + console.log("BindContentCover onAppear1.")}, onDisappear: () => { + this.num2+=1 + console.log("BindContentCover onDisappear1.")}} as SheetOptions) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('触发将被覆盖').fontSize(20) + .margin(10) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button.ets + +@Component +struct ButtonExample { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: ButtonType.Capsule, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + Button({ type: ButtonType.Circle, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Circle') + }) + Button({ type: ButtonType.Normal, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Circle') + }) + Text(this.text).width('90%') + Button({ type: ButtonType.Normal, stateEffect: true } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button4') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button({ type: ButtonType.Normal, stateEffect: false } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button5') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button({ type: ButtonType.Normal, stateEffect: false } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button6') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect' + }) + Button('') + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button7') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect6' + }) + Button({type:ButtonType.Capsule} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .key('button8') + .borderRadius(40) + .onClick((e:ClickEvent) => { + this.text = 'stateEffect7' + }) + Button({type:ButtonType.Capsule} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button9') + .onClick((e:ClickEvent) => { + this.text = 'stateEffect7' + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_372: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets new file mode 100644 index 000000000..6443f844b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets @@ -0,0 +1,347 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ClickEvent,Button,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r,ShadowStyle} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ImageShadowIndex.ets + +@Component +struct ImageShadowIndex { + build() { + Column({ space: 5 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_FLOATING_SM) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_SM) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_FLOATING_MD) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_MD) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_XS) + Image($r('app.media.startIcon')) + .width('90%') + .height(30) + .shadow(ShadowStyle.OUTER_DEFAULT_LG) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0110.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0110 { + @State widthValue: number = 200 + @State heightValue: number = 250 + @State str: string = 'await Utils.sleep(3000);' + build() { + Column({ space: 5 }as ColumnOptions) { + Text(this.str).width(this.widthValue).height(this.heightValue) + .id('UIComponentCommonattrFocusenhancement0110_001') + .onFocus(() => { + this.str = "rotateonFocus" + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0720.ets + + +@Component +struct UIAttributesModaltransitionVision0720 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + Text(`Custom Title`).height(40) + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0210.ets + + +@Component +struct ActionEventCommoneventDragInput0210 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0670.ets + + +@Component +struct UIAttributesBackgroundInterface0670 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.BottomEnd) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0090.ets + + +@Component +struct ActionEventControlCallback0090 { + @State context: string = "" + build() { + Column(){ + Button("button") + .backgroundColor(Color.Red) + Text(this.context) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_015.ets + +@Component +struct Grid05 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsTemplate属性值为-1fr').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('-1fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_373: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets new file mode 100644 index 000000000..d1ec26d86 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets @@ -0,0 +1,379 @@ +import image from '@ohos.multimedia.image' + +import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, + Grid,ForEach,ClickEvent,DragPreviewMode,Padding,GridItem,DragEvent,CommonMethod, applyStyles, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + Resource,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,Menu, + $$,SheetSize,MenuItem,Resource,MenuItemOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Image,$r,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + PinchGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach,Visibility, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,ShadowOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0330.ets + + +@Component +struct UIAttributesImageeffectInterface0330 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({radius:$r('app.media.startIcon')} as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0120.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0120 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button Visibility.Visible') + .visibility(Visibility.Visible) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.px(20), + }) + Button('button Visibility.Hidden') + .visibility(Visibility.Hidden) + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + Button('button Visibility.None') + .visibility(Visibility.None) + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes260.ets + + +@Component +struct UIAttributesTouchableInteraction260 { + @State value: string = ''; + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction260') + .hitTestBehavior(HitTestMode.Transparent) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.pinchValue = this.scaleValue; + this.value = 'PinchGesture onActionEnd'; + }) + ) + Text(this.value) + Button('restore') + .id('UIAttributesTouchableInteraction260_1') + .onClick((): void =>{ + this.scaleValue = 1; + this.pinchValue = 1; + }) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0780.ets + + +@Component +struct ActionEventCommoneventDragInterface0780 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0700.ets + + +@Component +struct UIAttributesModaltransitionVision0700 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + @Builder + myTitle() { + Text("Menu Title").id("sheet_title").bindMenu(this.titleMenu) + } + @Builder + titleMenu() { + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + } + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM] as [SheetSize|String|Double|Resource], + preferType: SheetType.BOTTOM, + title: this.myTitle + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_1.ets + + +@Component +struct UIAttributesModaltransitionVision0070_1 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragScenarios/ActionEventCommoneventDragScenarios0060.ets + + +@Component +struct ActionEventCommoneventDragScenarios0070 { + @State pixmap: image.PixelMap | undefined = undefined + @State isEdit: boolean = true + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] as number[] + @State colors: Color[] = + [Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Yellow, Color.Orange, Color.Pink, Color.Yellow, + Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Red, Color.Blue, Color.Brown, Color.Gray, + Color.Green] as Color[] + @State isSelectedItem: boolean[] = [] as boolean[] + @State previewData: DragItemInfo[] = [] as DragItemInfo[] + @State numberBadge: number = 0; + scroller: Scroller = new Scroller() + normalStyles(instance: CommonMethod): void { + instance.opacity(0.3) + } + selectStyles(instance: CommonMethod): void { + instance.opacity(1.0) + } + @Builder + dragStartBuilder() { + Column() { + Text("builder dragStart") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Column() { + Grid(this.scroller) { + ForEach(this.arr, (item: number) => { + GridItem() { + Text('item ' + item) + .width('100%') + .height(100) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + } + .id(`${item}`) + .backgroundColor(this.colors[item]) + .draggable(true) + .selectable(true) + .selected(this.isSelectedItem[item]) + .stateStyles({ + normal: this.normalStyles, + selected: this.selectStyles + }) + .onClick((e:ClickEvent) => { + this.isEdit = false + }) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }, { + isMultiSelectionEnabled: true, + defaultAnimationBeforeLifting: true + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .dragPreview(():void => { + }) + }, (item: number,index:number) => item+'') + } + .editMode(this.isEdit) + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('80%') + .height('80%') + } + .width('100%') + .height('100%') + .backgroundColor(0xDCDCDC) + .padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_374: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets new file mode 100644 index 000000000..88bc7c9bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets @@ -0,0 +1,408 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Stack,Text,ClickEvent,Color,Span, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + ScrollDirection,CalendarAlign,CalendarPicker,Margin,Text,FlexAlign,FontWeight, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0440.ets + + +@Component +struct ActionEventCommoneventDragdefault0440 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '中间可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row(){ + Text('左边text文字') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Text('右边text文字') + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0040.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0040 { + @State selectedDate: Date = new Date('2024-03-05') + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0040_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0040_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0040_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + CalendarPicker({ + hintRadius: 10, + selected: new Date('2024-03-05') + }) + .edgeAlign(CalendarAlign.END) + .textStyle({ + color: "#ff182431", + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0040_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0050.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0050 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x+1') + .id('UIAttributesGraphicTransformationSkew0050_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(1, 0); + }) + Button('y+1') + .id('UIAttributesGraphicTransformationSkew0050_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, 1); + }) + Button('x-1') + .id('UIAttributesGraphicTransformationSkew0050_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(-1, 0); + }) + Button('y-1') + .id('UIAttributesGraphicTransformationSkew0050_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, -1); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0080.ets + + +@Component +struct ActionEventCommoneventDragImage0080 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image("icon.png") + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0050.ets + + +@Component +struct UIAttributesBackgroundInterface0050 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur11.ets + +@Component +struct linearGradientBlur11 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Right } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0170.ets + + +@Component +struct UIAttributesImageeffectInterface0170 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(1.0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0130.ets + + +@Component +struct ActionEventControlCallback0130 { + @State context: string = "" + build() { + Stack(){ + Text() { + Span(this.context) + .fontSize(32) + } + .margin(30) + } + .backgroundColor(Color.Green) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0050.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0050 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightSheetSize.ets + +@Component +struct HightSheetSize { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightSheetSize5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:SheetSize.LARGE , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightSheetSize6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightSheetSize7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:SheetSize.MEDIUM , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_375: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets new file mode 100644 index 000000000..3293ab716 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets @@ -0,0 +1,417 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ColumnOptions,CustomBuilder,PopupStateChangeParam,CustomPopupOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SheetSize,BlurStyle,SheetOptions,SheetTitleOptions,TripleLengthDetents, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent,$$, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + TouchEvent,TouchType +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,Visibility,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0060.ets + + +@Component +struct UIAttributesImageEffectProjection0060 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .colorBlend(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0090.ets + + +@Component +struct UIAttributesColorrampInterface90 { + @State btnShow: Visibility = Visibility.Visible; + @State angleR:number=0 + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:this.angleR + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.btnShow = Visibility.None + this.angleR=30 + } else { + this.btnShow = Visibility.Visible + this.angleR=60 + } + this.flag = !this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0020.ets + + +@Component +struct UIAttributesColorrampInterface0020 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + angle:0 + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0410.ets + + +@Component +struct ActionEventCommonEventMouseStyle0410 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0410_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0410" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0410_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0100.ets + + +@Component +struct UIComponentPreventdefault0100 { + @State text: string = '' + @State eventType: string = '' + build() { + Column() { + Button('Touch').height(40).width(100) + .id('UiComponentPreventdefault0100') + .onTouch((event?: TouchEvent) => { + if(event){ + if (event.type === TouchType.Down) { + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + this.text = 'TouchType:' + this.eventType + ',' + event.target.area.globalPosition.y + ')\nwidth:' + + event.target.area.width + '\nheight:' + event.target.area.height + } + }) + Button('Touch').height(50).width(200).margin(20) + .onTouch((event?: TouchEvent) => { + if(event){ + if (event.type === TouchType.Down) { + this.eventType = 'Down' + } + if (event.type === TouchType.Up) { + this.eventType = 'Up' + } + if (event.type === TouchType.Move) { + this.eventType = 'Move' + } + this.text = 'TouchType:' + this.eventType + '\nComponent globalPos:(' + + event.target.area.globalPosition.x + ',' + event.target.area.globalPosition.y + ')\nwidth:' + + event.target.area.width + '\nheight:' + event.target.area.height + } + }) + Text(this.text) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0230.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0230 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + Button("content1") + .margin(10) + .fontSize(20) + .focusBox({ + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(5) + }) + } + .width('100%') + } + build() { + Column() { + Button("transition modal 1") + .id('UIComponentCommonattrDrawingoptimization0230_001') + .onClick((e: ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), ((): void => {this.myBuilder()}), { + detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200] as TripleLengthDetents, + backgroundColor: Color.Gray, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" } as SheetTitleOptions, + } as SheetOptions) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0610.ets + + +interface Params { + text: string +} +@Component +struct SubAceActionWindowWindowCustom0610 { + @State statel: string = 'text1'; + @Builder + builder1(params: Params) { + Text(params.text).fontSize(50) + } + build() { + Column() { + this.builder1({ text: this.statel }) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton168.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton168 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row() { + TextInput({ placeholder: 'input ...' }) + Button('PopupOptions') + }.height(50).padding(5) + } + build() { + Column({space: 100} as ColumnOptions) { + TextInput({ placeholder: 'input ...' }) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_168') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + targetSpace: 15 as number, + enableArrow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + }.margin(20) + } +} + + +export const FLAG_OF_FILE_376: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets new file mode 100644 index 000000000..c89e0c196 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets @@ -0,0 +1,462 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + ForEach, + EdgeEffect, + ScrollSnapAlign, + TripleLengthDetents +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Search,Margin,Color +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,GradientDirection,FlexAlign,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0060.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0060 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: 0 + }) + }).id('ScrollScrollbarScrolledge0060_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0020.ets + + +@Component +struct UIAttributesColorrampDfx0020 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0840.ets + + +@Component +struct UIAttributesColorrampInterface0840 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: 0, + end: 90, + rotation: -10 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0140.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0140 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr).focusable(true) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + Text('你好').focusable(true) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0490.ets + + +@Component +struct ActionEventControlCallback0490 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content490' }) + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .id("ActionEventControlCallback0490_01") + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Regular.ets + +@Component +struct BlurStyle_Regular { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Regular, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic2.ets + +@Component +struct buttonDynamicExample2 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Circle' + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0260.ets + + +@Component +struct UIAttributesImageeffectInterface0260 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(90) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0270.ets + + +@Component +struct UIAttributesBackgroundInterface0270 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为20vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0630.ets + + +@Component +struct UIAttributesImageeffectInterface0630 { + build() { + Column() { + Row() { + Text('test') + .blur(3) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_006.ets + +@Component +struct onlyColumnMinCount { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State minCountValue: number = 1 + onPageShow() { + console.info('onlyColumnMinCount onPageShow') + this.minCountValue = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .minCount(this.minCountValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton136.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton136 { + @State isShow: boolean = false + scroller: Scroller = new Scroller; + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) + @Builder + myBuilder() { + Column() { + Scroll(this.scroller) { + Column() { + ForEach(this.arr, (item: number) => { + Button("content1") + .margin(10) + .fontSize(20) + }, (item: number,index:number) => String(item)) + }.width('100%').backgroundColor(0xDCDCDC) + } + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({ + snapAlign: ScrollSnapAlign.START, + snapPagination: 400, + enableSnapToStart: true, + enableSnapToEnd: true + }) + } + .width('100%') + } + build() { + Column() { + Button("transition modal 1") + .id('UlComponentCommonattrlfocusoptimizatton_136_1') + .onClick((): void => { + this.isShow = true + }) + .focusable(false) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + detents: [SheetSize.MEDIUM as SheetSize, SheetSize.LARGE as SheetSize, SheetSize.FIT_CONTENT] as TripleLengthDetents, + backgroundColor: Color.Gray, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" }, + preferType: SheetType.CENTER, + shouldDismiss: ((sheetDismiss: SheetDismiss): void => { + console.log("bind sheet shouldDismiss") + sheetDismiss.dismiss() + }) + }) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_377: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets new file mode 100644 index 000000000..da185d54a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets @@ -0,0 +1,323 @@ +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Text, Color, FontWeight, Alignment, Button, ClickEvent, Margin, Builder, Direction } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0160.ets + + +@Component +struct UIAttributesColorrampInterface0160 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Left + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton138.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton138 { + @State isShow: boolean = false + @State isShow2: boolean = false + @State sheetHeight: number = 300; + @State button1BC: Color = Color.Blue; + @State button2BC: Color = Color.Blue; + @Builder + myBuilder() { + Column() { + Button("button1") + .margin(10) + .fontSize(20) + .id('button1ID') + .backgroundColor(this.button1BC) + .onClick((): void => { + }) + Button("close modal 1") + .id('closeID') + .margin(10) + .fontSize(20) + .onClick((): void => { + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("button2") + .id('button2ID') + .onClick((): void => { + }) + Button("bindSheet") + .id('bindSheetButtonID') + .onClick((): void => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()}, { + height: this.sheetHeight, + backgroundColor: Color.Orange, + onWillAppear: () => { + console.log("BindSheet onWillAppear.") + }, + onAppear: () => { + console.log("BindSheet onAppear.") + }, + onWillDisappear: () => { + console.log("BindSheet onWillDisappear.") + }, + onDisappear: () => { + console.log("BindSheet onDisappear.") + } + }) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur9.ets + +@Component +struct linearGradientBlur9 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.RightBottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0330887.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0330887 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0330887_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0330887_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0250.ets + + +@Component +struct UIAttributesBcakgroundSeriable0250 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0470.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0470 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button点击改变图片") + .id("changeTextColor") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + .margin({top:30} as Margin) + }.height(300) + .backgroundColor(Color.Orange) + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0530.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0530 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("\"qwerfdsazxcvbgtyhn'",{align:Alignment.Center}) + } +} + + +export const FLAG_OF_FILE_378: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets new file mode 100644 index 000000000..a3759ee28 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets @@ -0,0 +1,444 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions} from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,List,Text,ListItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0130.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0130 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 30 } as ColumnOptions) { + Image(this.iconStr) + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }).height('50%') + .width('50%') + Text('你好') + .onClick((e: ClickEvent) => { + }) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0110.ets + + +@Component +struct ActionEventControlCallback0110 { + @State context: string = "" + build() { + Column(){ + List(){ + ListItem(){ + Text("ListItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0120.ets + + +@Component +struct UIComponentCommonattrGrayscale0120 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .blur(BlurStyle.Thin, { + grayscale: [128, 128] + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse003.ets + + +@Component +struct UIComponentCommonattrClearfocuse003 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0050.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0050 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: -100 + }) + }).id('ScrollScrollbarScrolledge0050_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0200.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0200 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button one') + .focusBox({ + margin: LengthMetrics.vp(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(200) + }) + Button('button two') + .focusBox({ + margin: LengthMetrics.vp(5), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(10) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0760.ets + + +@Component +struct UIAttributesColorrampInterface0760 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0060.ets + + +@Component +struct UIActtonEventComdneventDracForeground0060 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "linear-out-slow-in", + delay: 300, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0060_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0060_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_379: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets new file mode 100644 index 000000000..b9eaf769a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets @@ -0,0 +1,327 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Blank,GridDirection,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Flex,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, FlexOptions,ListOptions, BorderOptions,ScrollState,FlexWrap} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + ForEach, + EdgeEffect, + ScrollSnapAlign,TripleLengthDetents +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.ets + + +@Component +struct UIAttributesImageeffectInterface0510 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton139.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton139 { + @State isShow:boolean = false + scroller: Scroller = new Scroller; + private arr: Array = new Array(0, 1) + @Builder myBuilder() { + Column() { + Scroll(this.scroller) { + Column() { + ForEach(this.arr, (item: number) => { + Button("content1") + .margin(10) + .fontSize(20) + }, (item: number,index:number) => String(item)) + }.width('100%').backgroundColor(0xDCDCDC) + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + .width('100%') + } + build() { + Column() { + TextInput({ placeholder: 'input ...' }) + .width(380) + .height(60) + Button("transition modal 1") + .id('UlComponentCommonattrlfocusoptimizatton_139_1') + .onClick((): void => { + this.isShow = true + }) + .focusable(false) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()},{ + detents:[SheetSize.MEDIUM as SheetSize, SheetSize.LARGE as SheetSize, SheetSize.FIT_CONTENT] as TripleLengthDetents, + backgroundColor:Color.Gray, + blurStyle:BlurStyle.Thick, + showClose:true, + title:{title:"title", subtitle:"subtitle"}, + preferType: SheetType.CENTER, + shouldDismiss:((sheetDismiss: SheetDismiss): void=> { + console.log("bind sheet shouldDismiss") + sheetDismiss.dismiss() + }) + }) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_038.ets + +@Component +struct Grid_038 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = 0 + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0; i < 100; i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('maxCount=0') + .onClick((event:ClickEvent) => { + this.maxCount = 0 + }) + Text() + .width(10) + .height(10) + .key('maxCount=2') + .onClick((event:ClickEvent) => { + this.maxCount = 2 + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(90) + .height(50) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .scrollBar(BarState.On) + .scrollBarWidth(10) + .scrollBarColor(Color.Red) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0110344.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0110344 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute|undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= "trigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0110344'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0110193.ets + + +@Component +struct UIComponentListandgridXommonScrollto0110193 { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('rowsTemplate、columnsTemplate都不设置layoutDirection、maxcount、minCount、cellLength才生效') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string,index: number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr ') + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: '5%', right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + + +export const FLAG_OF_FILE_38: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets new file mode 100644 index 000000000..8e2d874c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets @@ -0,0 +1,409 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Alignment, + Builder, + PinchGesture, + GestureEvent, + Image, + Direction, + FontWeight +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, LongPressGesture, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0090.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0090 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('zIndex(5)') + .zIndex(5) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(1)') + .zIndex(1) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(20)') + .zIndex(20) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0440.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0440 { + @State fatherValue: string = ""; + @State sonValue: string = ""; + @Builder + overlayBuilder(){ + Button("子长按键") + .id("sonButton") + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.sonValue="子长按键触发"; + }) + ) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.fatherValue).fontSize(50) + Text(this.sonValue).fontSize(40) + Button("父长按键") + .id("fatherButton") + .fontSize(50) + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent|undefined) => { + this.fatherValue="父长按键触发"; + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()},{offset:{x:0,y:120}}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid007.ets + +@Component +struct UIComponentGrid007 { + @State numbers: Array = new Array() + @State rowsTemplateValue: string = "1fr 1fr" + layoutDirectionValue: GridDirection = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplateValue) + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('GridDirection.Column') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.rowsTemplateValue = "repeat(auto-fit, 90px)" + this.layoutDirectionValue = GridDirection.ColumnReverse + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0030.ets + + +@Component +struct ActionEventCommoneventDragImage0030 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column2.ets + +@Component +struct Column2Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(500) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0190.ets + + +@Component +struct UIAttributesColorrampInterface0190 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.RightTop + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0300.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0300 { + @State mainColor:string="#C9F26B"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder).backgroundColor(this.mainColor).height(40) + } + @Builder + privateBuilder() { + Column(){ + Image('2.png').height(500).margin({top:70} as Margin) + .overlay((): void => {this.privateBuilderTwo()},{align:Alignment.Center}) + Button("点击改变文本背景色") + .id("changeTextGroundColor") + .margin({top:30} as Margin) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .onClick((e: ClickEvent) => { + this.mainColor="#F26BD2" + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes0370.ets + + +@Component +struct UIAttributesTouchableInteraction0370 { + @State message: string = ''; + @State show: boolean = true; + build() { + Row() { + Column() { + Button('changeShow') + .id('UIAttributesTouchableInteraction0370_001') + .onClick((): void => { + this.show = !this.show; + }) + if (this.show){ + Button('testButton') + .onAppear(() => { + this.message = 'testButton onAppear'; + }) + .onDisAppear(()=>{ + this.message = 'testButton onDisAppear'; + }) + } + Text(this.message) + } + .width('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_380: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets new file mode 100644 index 000000000..660e9364a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets @@ -0,0 +1,360 @@ +import { Entry, Component, Row, Column, Color, Builder, Button, Margin, TextPicker } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle,EdgeOutlineStyles, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,MenuItem, + BarState,Menu,MenuItemOptions,MenuItemOptions, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component,TapGesture, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,WaterFlow,FlowItem,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0140.ets + + +@Component +struct ActionEventControlCallback0140 { + @State context: string = "" + build() { + Column(){ + Text(this.context) + WaterFlow(){ + FlowItem() + .backgroundColor(Color.Red) + .width(200) + .height(200) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes60.ets + + +@Component +struct UIAttributesTouchableInteraction60 { + @State value: string = '' + build() { + Column() { + Text('Click ') + .fontSize(28) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction60') + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = JSON.stringify(event.fingerList[0]) + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0270.ets + + +@Component +struct UIAttributesColorrampInterface0270 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0240.ets + + +@Component +struct UIAttributesImageEffectProjection0240 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: true} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0420.ets + + +@Component +struct ActionEventCommoneventDragdefault0420 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0160.ets + + +@Component +struct UIAttributesGraphictransformationInterface0160 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('rotate({x:0,y:1,z:0,angle:45})') + Image('cat.jpg') + .width(100) + .rotate({x:0,y:1,z:0,angle:45} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0210.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0210 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + } + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(4), + }) + } + build() { + Row() { + Column() { + Text('click to show menu') + .id('UIComponentCommonattrDrawingoptimization0210_001') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .bindMenu(this.MyMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0130.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0130 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle({top: OutlineStyle.DASHED, right: OutlineStyle.DOTTED, bottom: OutlineStyle.SOLID, left: OutlineStyle.DASHED} as EdgeOutlineStyles) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1490.ets + + +@Component +struct UIAttributesBackgroundInterface1490 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Right, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0250.ets + + +class bottom { + bottom:number = 50 +} +let bott:bottom = new bottom() +@Component +struct UIAttributesFloatingLayerOverlay0250 { + private apfruits: string[] = ['apple1', 'apple2', 'apple3', 'apple4'] + private orfruits: string[] = ['orange1', 'orange2', 'orange3', 'orange4'] + private pefruits: string[] = ['peach1', 'peach2', 'peach3', 'peach4'] + private multi: string[][] = [this.apfruits, this.orfruits, this.pefruits] + @Builder + privateBuilder() { + TextPicker({ range: this.multi }) + .onChange((value: string | string[], index: number | number[]):void => { + console.info('TextPicker 多列:onChange ' + JSON.stringify(value) + ', ' + 'index: ' + JSON.stringify(index)) + }).margin(50).width(550).height(400).margin({ top: 50 } as Margin).backgroundColor(Color.Orange) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_381: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets new file mode 100644 index 000000000..5322e6e6e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets @@ -0,0 +1,454 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Search,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + Flex,$r,ListItem, + DragEvent, + List, + BorderOptions,UniformDataType, + UnifiedData,FlexDirection,ItemAlign,Image,ForEach +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes310.ets + + +@Component +struct UIAttributesTouchableInteraction310 { + @State uri: string = ""; + @State text: string = ""; + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('UIAttributesTouchableInteraction310') + .hitTestBehavior(HitTestMode.Transparent) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart(undefined) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction310_1') + .onDragEnter(():void => { + this.text = 'onDragEnter'; + }) + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0240.ets + + +@Component +struct UIAttributesColorrampInterface0240 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + angle:'50%' + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0470.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0470 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0470_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0470_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0470_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Search({ placeholder: 'Type to search...' }) + .searchButton('Search') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 18, weight: 400 }) + .textFont({ size: 18, weight: 400 }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0470_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0510.ets + + +@Component +struct ActionEventCommonEventMouseStyle0510 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_CROSS; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0510_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0510" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0510_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0640.ets + + +@Component +struct ActionEventCommoneventDragdefault0640 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本可拖拽段落文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_382: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets new file mode 100644 index 000000000..a7b7ac21c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets @@ -0,0 +1,347 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, SizeOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions,ScrollState, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0200765.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0200765 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller() + layoutOptions1: GridLayoutOptions = { + regularSize: [1, 1], // 只支持[1, 1] + irregularIndexes: [0, 6], // 索引为0和6的GridItem占用一行 + } as GridLayoutOptions + layoutOptions2: GridLayoutOptions = { + regularSize: [1, 1], + irregularIndexes: [0, 7], // 索引为0和7的GridItem占用的列数由onGetIrregularSizeByIndex指定 + onGetIrregularSizeByIndex: (index: number): [number,number] => { + if (index === 0) { + return [1, 5] + } + return [1, index % 6 + 1] + } + } as GridLayoutOptions + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0200765_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollPage({ next: true }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0200765_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1, this.layoutOptions1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + }.width('100%').margin({ top: 5 } as Margin) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1480.ets + + +@Component +struct UIAttributesBackgroundInterface1480 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0070.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0070 { + @State isClick:boolean =false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件1').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + Text('Text子组件2').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + Text('Text子组件3').fontSize(20).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:50,top:50} as Margin) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0860.ets + + +@Component +struct UIAttributesColorrampInterface0860 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:true + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic4.ets + +@Component +struct buttonDynamicExample4 { + @State buttonType: ButtonType | undefined = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonType_非法值_NULL' + this.buttonType = undefined + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0410.ets + + +@Component +struct ActionEventCommoneventDragdefault0410 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface088.ets + + +@Component +struct UIAttributesBackgroundInterface088 { + build() { + Column() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 850, height: 1100 } as SizeOptions) + .width(600) + .height(400) + } + .width(800) + .height(1000) + .backgroundColor(Color.Gray) + .alignItems(HorizontalAlign.Center) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0440.ets + + +@Component +struct UIAttributesModaltransitionVision0440 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 100, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_383: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets new file mode 100644 index 000000000..768e18f90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets @@ -0,0 +1,474 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Text,Flex, + FlexDirection,ItemAlign,FlexAlign,Image,$r,DragEvent,Margin,List,Row,ForEach,ListItem, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Stack, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,GridLayoutOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_291.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_291 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1]; + else if(index==1) + return [0, 1, 2, 2]; + else if(index==2) + return [0 ,3 ,3 ,3]; + else if(index==3) + return [3, 0, 3, 3]; + else if(index==4) + return [4, 3, 2, 2]; + else + return [5, 5, 1, 1]; + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsGap(0) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0240.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0240 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("small black focus box") + .clip(true) + .focusBox({ + margin: new LengthMetrics(0), + strokeColor: ColorMetrics.rgba(255, 0, 0), + strokeWidth: LengthMetrics.px(10) + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0190.ets + + +@Component +struct UIAttributesImageeffectInterface0190 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0170.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0170 { + @State color: Color = Color.Red; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0170_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0700.ets + + +@Component +struct UIAttributesBackgroundInterface0700 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.End) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0490.ets + + +@Component +struct ActionEventCommonEventMouseStyle0490 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0490_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0490" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0490_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface104.ets + + +@Component +struct UIAttributesBackgroundInterface104 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.NoRepeat) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommoneventDragListItem0090.ets + + +@Component +struct ActionEventCommoneventDragListItem0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id("img1") + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + let ret = event.getResult(); + if (ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不支持拖拽的位置') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string,index:number) => item) + } + .id("img2") + .height('90%') + .width('100%') + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + }) + .border({ width: 1 }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + Column() { + Text('支持拖拽的位置') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 }) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string,index:number) => item) + } + .id("img3") + .border({ width: 1 }) + .height('90%') + .width('100%') + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + console.log("enter onDrop") + let dragData: UDC.UnifiedData = (event as DragEvent).getData() as UDC.UnifiedData; + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_384: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets new file mode 100644 index 000000000..703b87bff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets @@ -0,0 +1,500 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListOptions, BorderOptions,Position, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Length, ScrollAlign, Direction,Row, Visibility,ScrollState, + OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Stack, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + NavPathStack,Navigation,HorizontalAlign +} from '@ohos.arkui.component' + +import { State,Provide } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0180.ets + + +@Component +struct ActionEventCommonEventMouseStyle0180 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0180_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0180" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0180_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0020.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0020 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton126.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton126 { + @Provide({ alias: 'pageInfos' }) pageInfos: NavPathStack = new NavPathStack() + build() { + Column() { + Navigation(this.pageInfos) { + Column() { + Button('button1') + .id('button1ID') + .onClick((): void => { + }); + Button('button2') + .id('button2ID') + .onClick((): void => { + }); + Button('button3') + .id('button3ID') + .onClick((): void => { + }); + } + .width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } + } + .height('100%') + .width('100%') + .backgroundColor('#F1F3F5') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0180.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0180 { + @State color: Color = Color.Red; + @Builder + OverlayNode() { + Stack() { + Button('1') + .margin({ top: 20 } as Margin) + .backgroundColor(this.color) + .focusable(true) + .focusOnTouch(true) + .onFocus(() => { + this.color = Color.Red + }) + .onBlur(() => { + this.color = Color.Blue + }) + .id('UIAttributesFloatingLayerOverlay0180_001') + }.width(180).height(180).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_030.ets + +@Component +struct Grid7 { + @State numbers: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30) + @State numbers1: Array = new Array(38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67) + scroller1: Scroller = new Scroller() + @State text: string = 'drag' + @State height1: number = 100 + @State num1: number = 100 + @State width1: number = 100 + @State num2: number = 100 + @State string1: string = '1fr 1fr 1fr' + @State num3: number = 20 + @State cgap: number = 10 + @State num4: number = 10 + @State rgap: number = 10 + @State num5: number = 10 + @State bool1: boolean = false + @State bool2: boolean = true + @State align1: ScrollAlign = ScrollAlign.START + @State extraoffset: number = 0 + @State dirction: Direction = Direction.Auto + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){ + Button('高度110').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num1 = 110 + this.height1 = this.num1 + }).id('itemHeight110') + Button('宽度110').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num2 = 110 + this.width1 = this.num2 + }).id('itemWidth110') + }.margin({top:20} as Margin) + Row(){ + Button('列间距15').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num4 = 15 + this.cgap = this.num4 + }).id('columnsGap15') + Button('行间距15').width('25%').height(40).onClick((event:ClickEvent)=>{ + this.num5 =15 + this.rgap = this.num5 + }).id('rowsGap15') + } + Row(){ + Button('加1列').height(40).onClick((event:ClickEvent)=>{ + this.string1 = this.string1 + ' 1fr' + }) + Button('1列').height(40).onClick((event:ClickEvent)=>{ + this.string1 = '1fr' + }) + Button('item+').height(40).onClick((event:ClickEvent)=>{ + let len = this.numbers.length + this.num3 = this.numbers[len-1] + 1 + this.numbers.push(this.num3) + }) + Button('item-').height(40).onClick((event:ClickEvent)=>{ + this.numbers.pop() + }) + } + Row() { + Button("Auto") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Auto; + }).id('DirectionAuto_030') + Button("Ltr") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionLtr_030') + Button("Rtl") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Rtl; + }).id('DirectionRtl_030') + } + Row(){ + Text('对齐:').fontSize(12) + Button('首').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.START + }).id('ScrollAlignSTART') + Button('尾').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.END + }).id('ScrollAlignEND') + Button('中').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.CENTER + }).id('ScrollAlignCENTER') + Button('自动').height('5%').onClick((event:ClickEvent) => { + this.align1 = ScrollAlign.AUTO + }).id('ScrollAlignAUTO') + } + Row(){ + Text('scrollToIndex:').fontSize(12) + Button('1').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(1,this.bool1,this.align1) + }).id('scrollToIndex1') + Button('25').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(25,this.bool1,this.align1) + }).id('scrollToIndex25') + Button('50').height('5%').width("16%").onClick((event:ClickEvent) => { + this.scroller1.scrollToIndex(50,this.bool1,this.align1) + }).id('scrollToIndex50') + } + Grid(this.scroller1) { + ForEach(this.numbers, (item: number, index:number) => { + GridItem() { + Text('' + (item)) + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + }) + GridItem() { + Text('第32个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .padding(20) + .margin(20) + GridItem() { + Text('第33个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .visibility(Visibility.None) + GridItem() { + Text('第34个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + .border({ width: 20, color: 0x317AF7, radius: 10 } as BorderOptions) + GridItem() { + Text('第35个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + GridItem() { + Text('第36个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + GridItem() { + Text('第37个item') + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .position({x:20 ,y:300} as Position) + .width(this.width1) + .height(this.height1) + ForEach(this.numbers1, (item: number, index:number) => { + GridItem() { + Text('' + (item)) + .fontSize(16) + .backgroundColor(Color.White) + .textAlign(TextAlign.Center) + }.backgroundColor(Color.Pink) + .width(this.width1) + .height(this.height1) + }) + }.backgroundColor(Color.Orange) + .enableScrollInteraction(this.bool2) + .columnsTemplate(this.string1) + .multiSelectable(true) + .columnsGap(this.cgap) + .rowsGap(this.rgap) + .width('90%') + .edgeEffect(EdgeEffect.Spring) + .height("50%") + .direction(this.dirction) + .scrollBarColor(Color.Black) + .scrollBar(BarState.On) + .onScrollIndex((firstIndex: number, lastIndex: number) => { + console.info('wff Gridindex first' + firstIndex) + console.info('wff Gridindex last' + lastIndex) + }) + .onReachStart(() => { + console.info('wff Grid ReachStart') + }) + .onReachEnd(() => { + console.info('wff Grid ReachEnd') + }) + .onScrollStart(() => { + console.info('wff Grid ScrollStart') + }) + .onScrollStop(() => { + console.info('wff Grid ScrollStop') + }) + .onScrollFrameBegin((offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + console.log('wff Grid onScrollFrameBegin, offset' + offset + `, state = ` + state ) + return { offsetRemain: offset } + } as OnScrollFrameBeginCallback|undefined) + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_385: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets new file mode 100644 index 000000000..e0d1d907d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets @@ -0,0 +1,256 @@ +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack, + BlendApplyType,$r +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,ImageSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton152.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton152 { + build() { + Column() { + Button("支持自定义内容弹出框") + .id('UlComponentCommonattrlfocusoptimizatton_152_1') + .onClick((): void => { + }) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @Builder + buildContent(): void { + Column() { + TextInput({ placeholder: 'input ...' }) + Button('count is odd').fontSize(30).height(50).margin({ top: 20 } as Margin) + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_012.ets + +@Component +struct Grid02 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为0').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(0) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0340.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0340 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minWidth:20,maxWidth:60}) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0090.ets + + +@Component +struct UIComponentCommonattrGrayscale0090 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Column() + .width(250) + .height(150) + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Cover) + .backgroundEffect({ + radius: 10, + blurOptions: { + grayscale: [128, 128] + } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType1.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Text('🙂 🛒 🌞 TEST BrightnessBlender FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender1, BlendApplyType.FAST) + Text('🙂 🛒 🌞 TEST createBrightnessBlender FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Button('🙂 🛒 🌞 TEST FAST') + .fontSize(20).margin(10) + .advancedBlendMode(blender2, BlendApplyType.FAST) + Image($r('app.media.startIcon')) + .width(300).height(200) + .advancedBlendMode(blender2, BlendApplyType.FAST) + } + } + } + } +} + + +export const FLAG_OF_FILE_386: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets new file mode 100644 index 000000000..50c5655cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets @@ -0,0 +1,479 @@ +import { Entry, Component,Column,ColumnOptions,Builder,Text,FontWeight,TextAlign, + Row,Button,ClickEvent,FlexAlign,Scroll,Gauge,TextOverflow,Margin,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from "@ohos.arkui.dragController" + +import componentSnapshot from '@ohos.arkui.componentSnapshot'; + +import image from '@ohos.multimedia.image'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import prompt from '@system.prompt'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, EdgeEffect,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0370.ets + + +@Component +struct UIAttributesImageeffectInterface0370 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: $r('app.media.startIcon') } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid011.ets + +@Component +struct UIComponentGrid011 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + @State gridWidthStart: number = 300 + @State gridHeightStart: number = 600 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 6; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .width(this.gridWidthStart) + .height(this.gridHeightStart) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .cellLength(0) + Button('Height increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 150 + this.gridWidthStart = 300 + }).id('btn01') + Button('Width increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 600 + this.gridWidthStart = 150 + }).id('btn02') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid002.ets + +@Component +struct UIComponentGrid02 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('100%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(30, false) + }).id('btn01') + Button('scrollToIndex equal to 0') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(0, false) + }).id('btn02') + Button('scrollToIndex equal to 3') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, false) + }).id('btn03') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_028.ets + +@Component +struct Grid_028 { + @State Number: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGap: number = 10 + @State rowsGap: number = 10 + @State scrollBar: BarState = BarState.Off + @State scrollBarWidth: number = 4 + @State scrollBarColor: Color = Color.Red + @State editMode: boolean = true + @State supportAnimation: boolean = false + @State edgeEffect: EdgeEffect = EdgeEffect.None + @State enableScrollInteraction: boolean = true + build() { + Column({ space: 5 } as ColumnOptions) { + Scroll(this.scroller1) { + Grid() { + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }) + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .scrollBar(this.scrollBar) + .scrollBarWidth(this.scrollBarWidth) + .scrollBarColor(this.scrollBarColor) + .editMode(this.editMode) + .width('90%') + .backgroundColor(0xFAEEE0) + .height('45%') + .border({ width: 1 } as BorderOptions) + .enableScrollInteraction(this.enableScrollInteraction) + .edgeEffect(this.edgeEffect) + }.scrollBar(BarState.Off).scrollBarColor(Color.Yellow).scrollBarWidth(10).scrollable(ScrollDirection.Vertical) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0380.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0380 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('buttonId') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponent0310.ets + +@Component +struct SubAceActionEventCommineventDragXcomponent0310 { + @State pixmap: image.PixelMap | undefined = undefined + @State text: string = '' + xComponentController: XComponentController = new XComponentController() + @Builder + DraggingBuilder() { + Column() { + Text("DraggingBuilder") + .fontColor(Color.White) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + @Builder + PixmapBuilder() { + Column() { + Text("PixmapBuilder") + .fontColor(Color.White) + .fontSize(15) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + aboutToAppear() { + componentSnapshot.createFromBuilder((): void => { + this.PixmapBuilder() + }).then((pix: image.PixelMap) => { + this.pixmap = pix; + }) + } + build() { + Column() { + Button('touch to execute drag') + .id('SubAceActionEventCommineventDragXcomponent0310_1') + .margin(10) + .onTouch((event?: TouchEvent) => { + if (event) { + } + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0130.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0130 { + @State radius: number = 0 + @Builder + descriptionBuilder() { + Text('说明文本') + .maxFontSize('30sp') + .minFontSize("10.0vp") + .fontColor("#fffa2a2d") + .fontWeight(FontWeight.Medium) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0130_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0130_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0130_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Gauge({ value: 50, min: 1, max: 100 }) { + Column() { + Text('50') + .fontWeight(FontWeight.Medium) + .width('62%') + .fontColor("#ff182431") + .maxFontSize("60.0vp") + .minFontSize("30.0vp") + .textAlign(TextAlign.Center) + .margin({ top: '35%' } as Margin) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + Text('辅助文本') + .maxFontSize("16.0fp") + .minFontSize("10.0vp") + .fontColor($r('app.media.startIcon')) + .fontColor($r('app.media.startIcon')) + .fontWeight(FontWeight.Regular) + .width('67.4%') + .height('9.5%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height('100%') + } + .value(50) + .startAngle(210) + .endAngle(150) + .width('80%') + .height('80%') + .strokeWidth(18) + .trackShadow(undefined) + .indicator(undefined) + .description(this.descriptionBuilder) + .padding(18) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0130_004') + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_387: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets new file mode 100644 index 000000000..d2ce6796e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets @@ -0,0 +1,327 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, + ClickEvent,Visibility,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Column, + Component, + Builder, + Color, + TextAlign, + FlexAlign, + Scroll, + Divider, + OutlineStyle, + BorderStyle +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,Stack, + Alignment,ClickEvent,List,ListItem,Flex,Text,TextAlign,FlexDirection,ItemAlign, + BarState,Padding,Button,ForEach,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0110.ets + + +@Component +struct ActionEventCommonEventMouseStyle0110 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.DEFAULT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[] ; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0110_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0110" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0110_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/DoubleStrokeInterfaceIndex.ets + +@Component +struct DoubleStrokeInterfaceIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Divider().margin(9) + Column() { + Text('单描边和外描边进行同时设置且显示样式不同').width('100%').textAlign(TextAlign.Start) + } + .border({ + width: 1, + color: Color.Red, + style: 0 as BorderStyle + }) + .outline({ + width: 2, + color: Color.Green, + style: 1 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + Divider().margin(9) + Column() { + Text('单描边和外描边进行同时设置且显示样式相同').width('100%').textAlign(TextAlign.Start) + } + .border({ + width: 1, + color: Color.Red, + style: 0 as BorderStyle + }) + .outline({ + width: 1, + color: Color.Red, + style: 0 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + Divider().margin(9) + Column() { + Text('只设置外描边').width('100%').textAlign(TextAlign.Start) + } + .outline({ + width: 1, + color: Color.Red, + style: 1 as OutlineStyle + }) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + } + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur20.ets + +@Component +struct linearGradientBlur20 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(-60, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0250.ets + + +@Component +struct UIAttributesColorrampInterface0250 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle:180, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0090.ets + + +@Component +struct UIAttributesImageeffectInterface0090 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0590.ets + + +@Component +struct UIAttributesColorrampInterface0590{ + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State repeat:boolean=false; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.repeat=true + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.repeat=false + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_388: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets new file mode 100644 index 000000000..8625cbca0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets @@ -0,0 +1,383 @@ +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import promptAction from '@ohos.promptAction'; + +import { BusinessError } from '@ohos.base'; + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Component, Column, TextController,DragEvent,ColumnOptions, + Text,TextInput,CopyOptions,Color,Margin,DragResult,Rectangle, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0080.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0080 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + .outlineWidth(5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragForeground/ActionEventCommoneventDragForeground0130.ets + + +@Component +struct ActionEventCommoneventDragForeground0130 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + @State wid: number = 100 + @State hei: number = 100 + @State input: string = 'abcabc' + private textController: TextController = new TextController() + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 0, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + this.backAnimator!.onFinish = () => { + _this.flag = true + console.info(_this.TAG, 'backAnimator onfinish') + } + this.backAnimator!.onRepeat = () => { + console.info(_this.TAG, 'backAnimator repeat') + } + this.backAnimator!.onCancel = () => { + console.info(_this.TAG, 'backAnimator cancel') + } + this.backAnimator!.onFrame = (value: number) => { + _this.wid = value + _this.hei = value + } + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag'}`) + TextInput({ placeholder: '请拖入内容', text: this.input }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .foregroundColor(Color.Yellow) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + if (this.backAnimator) { + this.backAnimator?.play() + } + event.useCustomDropAnimation = true; + }) + Text('可拖入文本') + .draggable(true) + .margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .foregroundColor(Color.Yellow) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + event.useCustomDropAnimation = true; + event.setResult(DragResult.DRAG_SUCCESSFUL); + if (this.backAnimator) { + this.backAnimator?.play() + } + }) + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0140.ets + + +@Component +struct ActionEventCommoneventDragText0140 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0150.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0150 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid010.ets + +@Component +struct UIComponentGrid010 { + @State numbers: Array = new Array() + @State maxCountValue: number = -2 + @State gridWidthStart: number = 50 + @State gridHeightStart: number = 90 + layoutDirectionValue: GridDirection = (GridDirection.Column/GridDirection.ColumnReverse) as GridDirection + aboutToAppear() { + for (let i = 1; i <= 6; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + GridItem() { + Text("0") + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.gridHeightStart) + .width(this.gridWidthStart) + }.borderWidth(2).borderColor(Color.Red) + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(90) + .width(50) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .width(300) + .height(600) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .cellLength(0) + Button('Width increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 90 + this.gridWidthStart = 160 + }).id('btn01') + Button('Height increase') + .onClick((event: ClickEvent) => { + this.gridHeightStart = 300 + this.gridWidthStart = 50 + }).id('btn02') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0550.ets + + +@Component +struct UIAttributesColorrampInterface0550 { + @State repeat: boolean = false; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: '20%', + repeating: this.repeat + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd2') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.repeat = true + this.btnShow = Visibility.None + } else { + this.repeat= false + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingInterface/UIAttributesShapecroppingInterface0020.ets + + +@Component +struct UIAttributesShapecroppingInterface0020 { + build() { + Column({ space: 3 } as ColumnOptions) { + Image('cat.jpg') + .width("100%") + Text('不设置clip效果') + Image('cat.jpg') + .width("100%") + .margin({ top: 8 } as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_389: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets new file mode 100644 index 000000000..ee4d2e7ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets @@ -0,0 +1,389 @@ +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.ets + + +@Component +struct UIComponentCommonattrGrayscale0030 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0050.ets + + +@Component +struct ActionEventCommoneventDragdefault0050 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0040 { + @Builder + OverlayNode() { + Column() { + Image($r('app.media.startIcon')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode1() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode2() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode2() { + Column() { + Image($r('app.media.startIcon')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode3() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode3() { + Column() { + Image($r('app.media.startIcon')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode4() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode4() { + Column() { + Image($r('app.media.startIcon')) + .width(270) + .height(270) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode5() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(270).height(270).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode5() { + Column() { + Image($r('app.media.startIcon')) + .width(250) + .height(250) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode6() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(250).height(250).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode6() { + Column() { + Image($r('app.media.startIcon')) + .width(230) + .height(230) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode7() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(230).height(230).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode7() { + Column() { + Image($r('app.media.startIcon')) + .width(210) + .height(210) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode8() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(210).height(210).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode8() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode9() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode9() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentNumber.ets + +@Component +struct ContentNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 Green true").fontSize(11).id('ContentNumber2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0x008000, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentNumber3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 Yellow ture").fontSize(11).id('ContentNumber4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0xffff00, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0140 { + @State isDialogVisible: boolean = false; + onButtonClick(){ + this.isDialogVisible = true + if (this.isDialogVisible == true) { + } + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:-100} as Margin) + }.width('100%').height(400).backgroundColor(Color.Green) + Button("animation") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_39: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets new file mode 100644 index 000000000..a99e159c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets @@ -0,0 +1,397 @@ +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Color,Stack,Text,Alignment,cursorControl,Position +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + ImageSize,$r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { + Color, + Entry, + ObscuredReasons, + Component, + ClickEvent, + Row, + Column, + Text, + Image, + Button, + FlexAlign +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + FontWeight, + MenuItem, + ObscuredReasons, + Menu, + ImageSize, + Menu, + Builder, + MenuItemOptions, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic11.ets + +@Component +struct buttonDynamicExample11 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = true + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button11') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0190.ets + + +@Component +struct ActionEventCommoneventDragInput0190 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface093.ets + + +@Component +struct UIAttributesBackgroundInterface093 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({} as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0140.ets + + +@Component +struct UIAttributesSelectedStyle0140 { + @State select: boolean = false; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + } as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0140') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0020.ets + + +@Component +struct UIComponentMediaImageMask0020 { + @State isShow: boolean = true + @State borderW: number = 1; + @State borderC: number = Color.White; + @State changeAppear: string = '点我卸载挂载组件' + build() { + Row() { + Column() { + if (this.isShow) { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + Button(this.changeAppear).onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + this.isShow = !this.isShow + }).id('mask0020_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0110.ets + + +@Component +struct ActionEventCommoneventDragInterface0110 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0310.ets + + +@Component +struct UIAttributesBcakgroundSeriable0310 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.XY) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1440.ets + + +@Component +struct UIAttributesBackgroundInterface1440 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftTop, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0090.ets + + +@Component +struct ActionEventCommonEventMouseStyle0090 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Text("Text1") + .id("ActionEventCommonEventMouseStyle0090_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + Text("Text2") + .id("ActionEventCommonEventMouseStyle0090_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_390: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets new file mode 100644 index 000000000..a06c8a386 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets @@ -0,0 +1,477 @@ +import { + Entry, + Text, + Component, + Row,Visibility,DragEvent,List,BorderOptions,UnifiedData, + ListItem, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,UniformDataType, + Color,ForEach,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Stack,Alignment, + ScrollDirection,ScrollBar,ScrollBarDirection +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible40.ets + + +@Component +struct UIComponentGridAccessible40 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0060.ets + + +@Component +struct UIActtonEventComdneventDragInput0060 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0060_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("UIActtonEventComdneventDragInput0060_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0060.ets + + +@Component +struct UIAttributesModaltransitionVision0060 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0040.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0040 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("你好").tabIndex(-1) + Column({ space: 20 } as ColumnOptions) { + Button("你好啊").tabIndex(1) + } + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListAndGridGridAutoStretch/UIComponentListAndGridGridAutoStretch0240115.ets + + +@Component +struct UIComponentListAndGridGridAutoStretch0240115 { + private scroller1: Scroller = new Scroller() + @State numbers: Array = new Array('0', '1', '2', '3') + data1: Array = new Array(0, 1, 2, 3, 4, 5,6,7,8,9,10,11,12,13,14,15) + build() { + Column() { + Text('auto-stretch 先根据设定的列宽计算列数,余下的空间会均分到每个列间距中').width('90%'); + Stack({ alignContent: Alignment.End }) { + Scroll(this.scroller1) { + Grid() { + ForEach(this.data1, (item: number) => { + GridItem() { + Text('N' + item).height(80) + } + .backgroundColor(Color.Orange) + }) + } + .width('50%') + .border({ width: 1, color: Color.Black }) + .columnsTemplate('repeat(auto-stretch, 80)') + .columnsGap(10) + .rowsGap(10) + .height(300) + } + .width('90%') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + .id('UIComponentListAndGridGridAutoStretch0240115') + ScrollBar({ scroller: this.scroller1, direction: ScrollBarDirection.Vertical,state: BarState.Auto }) { + Text() + .width(20) + .height(100) + .borderRadius(10) + .backgroundColor('#C0C0C0') + }.width(20).backgroundColor('#ededed').id('UIComponentListAndGridGridAutoStretch0240115_001'); + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0410.ets + + +@Component +struct UIAttributesBackgroundInterface0410 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: '3.14rad', + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0440_612.ets + + +@Component +struct UIComponentListandgridGridInterface_0440_612 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes80.ets + + +@Component +struct ImageExample { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction80') + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction80_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_391: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets new file mode 100644 index 000000000..d5864ff08 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets @@ -0,0 +1,331 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0150.ets + + +@Component +struct UIComponentBackgroundimage0150 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('') + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0470.ets + + +@Component +struct ActionEventCommonEventMouseStyle0470 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0470_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0470" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0470_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0040.ets + + +@Component +struct UIActtonEventComdneventDracForeground0040 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0040_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0040_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.ets + + +@Component +struct UIAttributesModaltransitionVision0400 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_392: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets new file mode 100644 index 000000000..8dd8322ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets @@ -0,0 +1,536 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Column +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import {PanelType} from '@ohos.inputMethod.Panel' + +import inspector from '@ohos.arkui.inspector' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,ClickEvent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest11.ets + +@Component +struct ZIndexDynamicModificationTest11 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 7 //text的value: 'ABC设置zIndex: -3 2 -1' + this.zIndexValueIndex = 6 //ABC设置zIndex: -3 2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0350.ets + + +@Component +struct ActionEventCommonEventMouseStyle0350 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CHOOSE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0350_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0350" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0350_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0220.ets + + +@Component +struct UIAttributesFocuscontrolInterface0220 { + @State focusOnTouchValue: boolean = false + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Button("3") + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0410.ets + + +@Component +struct ActionEventControlCallback0410 { + @State context: string = "hello" + @State show: boolean = true + build() { + Column() { + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets + + +@Component +struct UIAttributesBackgroundInterface0520 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0240.ets + + +@Component +struct UIAttributesFocuscontrolInterface0240 { + @State focusOnTouchValue: boolean = false + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0240_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Image(this.iconStr) + .width(200) + .height(270) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.ets + + +@Component +struct UIAttributesModaltransitionAnimator0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0200.ets + + +@Component +struct CommonEventDragVideo0200 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_FAILED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_393: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets new file mode 100644 index 000000000..9176ce5f3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets @@ -0,0 +1,310 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.ets + + +@Component +struct UIAttributesModaltransitionSafearea0110 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle2.ets + +@Component +struct TextBackgroundBlurStyle2 { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0200.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0200 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.ets + + +@Component +struct UIAttributesImageeffectInterface0300 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.ets + + +@Component +struct UIAttributesColorRampBlurGradient0090 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Right} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.ets + + +@Component +struct UIAttributesImageeffectInterface0130 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0040.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0040 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.ets + + +@Component +struct UIAttributesColorrampInterface0570 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + this.colors =[["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Gray, 1]] + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + this.colors =[["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_394: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets new file mode 100644 index 000000000..b5b1a22e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets @@ -0,0 +1,365 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextAreaController, + Button, + TextArea, + MenuPolicy, + ClickEvent, + TextAreaOptions, + ResourceStr +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection,ListItemGroup,BarState, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0240 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List({ space: 10 }) { + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .borderWidth(1) + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0320.ets + + +@Component +struct SubAceActionWindowWindowCustom0320 { + controller: TextAreaController = new TextAreaController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextArea({ text: 'text', controller: this.controller } as TextAreaOptions) + .id('input') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization125.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization125 { + @State pageInfos: NavPathStack = new NavPathStack() as NavPathStack; + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(new NavPathStack()) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0110.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_395: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets new file mode 100644 index 000000000..6a01d90d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets @@ -0,0 +1,421 @@ +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + FlexAlign +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, + } from '@ohos.arkui.component' + +import { + Entry, + Component, + Column, + Color, + Builder, + Progress +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, CalendarPicker, FontWeight,CalendarAlign } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0050.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0050 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.ets + + +@Component +struct UIAttributesColorrampInterface0470 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0010.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0010 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.ets + + +@Component +struct UIAttributesImageeffectInterface0550 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0260 { + private selectedDate: Date = new Date('2024-03-05') + @Builder + privateBuilder() { + CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) + .id("CalendarPicker") + .edgeAlign(CalendarAlign.END) + .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) + .margin(10) + .onChange((value:Date):void => { + console.info("CalendarPicker onChange:" + JSON.stringify(value)) + }) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0040 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(null) + .id('UIAttributesClivkreboundeffectInterface0040_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0070 { + @Builder BackgroundBuilder() { + Progress({value:0}).width(400).height(400).backgroundColor(Color.Green) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Num_Per.ets + +@Component +struct Num_Per { + build() { + Column() { + Text('上下30%,左右50').fontSize(30).margin(30) + Row(){ + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: 50, right: 50 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxMenuTest/UIApperanceDarkMode0010.ets + + +@Component +struct UIApperanceDarkMode0010 { + @State message: string = 'log:'; + build() { + Column() { + Text(this.message).margin({ top: 20 } as Margin) + Button('setDarkMode is Dark').fontSize(20).margin(20) + Button('setDarkMode is 5').fontSize(20) + }.height('100%').width('100%').justifyContent(FlexAlign.Start) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0270.ets + + +@Component +struct ActionEventCommonEventMouseStyle0270 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.COLOR_SUCKER; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0270_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0270" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0270_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0190 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(100) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + + +export const FLAG_OF_FILE_396: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets new file mode 100644 index 000000000..2f3d5a9fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets @@ -0,0 +1,417 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,Button,ClickEvent, + List,ListItem,ForEach,FlexDirection,ItemAlign,BarState,Padding,Stack,Alignment,Flex,cursorControl, + FlexDirection,ItemAlign,Text,TextAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,Margin,TextInput,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + $r, + DragPreviewMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,DragEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0110 { + @State isDragging: boolean = false; + @State textPosition: Position = { x: 100, y: 100 } as Position; + @State newTextPosition: Position = { x: 200, y: 200 } as Position; + @State textOpacity: number = 1.0; + onDragBegin(event: DragEvent, extraParams?: string) { + this.isDragging = true; + } + onDrag(event: DragEvent, extraParams?: string):void { + this.textPosition = { + x: event.getDisplayX() - 25, + y: event.getDisplayY() - 25 + }; + } + onDragOver(event: DragEvent, extraParams?: string):void { + this.isDragging = false; + } + simulateDrag() { + this.isDragging = true; + this.textPosition = this.newTextPosition; + setTimeout(() => { + this.isDragging = false; + this.textPosition = { x: 100, y: 100 } as Position; + }, 1500); + } + build() { + Column(){ + Row(){ + Text('drag') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isDragging ? Color.Black : Color.White) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{ + this.onDragBegin(event, extraParams) + return ()=>{} + }) + .onDragMove((event: DragEvent, extraParams?: string):void=>{ + this.onDrag(event,extraParams) + }) + .onDragEnd((event: DragEvent, extraParams?: string):void=>{ + this.onDragOver(event,extraParams) + }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + .opacity(this.isDragging ? 0.5 : 1.0) + Button('drag') + .height(50) + .width(100) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.simulateDrag() + }) + .id('buttonId') + } + .opacity(this.textOpacity) + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0100.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0100 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Image($r('app.media.startIcon')) + .id('SubAceActionEventCommoneventDragImprove0100_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0100_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0330.ets + + +@Component +struct ActionEventCommoneventDragdefault0330 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 250 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.ets + + +@Component +struct UIAttributesColorrampInterface0640 { + @State repeat:boolean=false + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0,end:90, + repeating:this.repeat + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.repeat=!this.repeat + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + } else { + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0140.ets + + +@Component +struct UIAttributesFocuscontrolInterface0140 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0120.ets + + +@Component +struct ActionEventCommonEventMouseStyle0120 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0120_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0120" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0120_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_397: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets new file mode 100644 index 000000000..42c32ca52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets @@ -0,0 +1,379 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,Stack,Alignment,ClickEvent, + ForEach,TextAlign,Text,BarState,Padding,Button,Flex,cursorControl,FlexDirection,ItemAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, + Grid,GridItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets + + +@Component +struct UIAttributesBackgroundInterface105 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.X) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0080 { + build() { + Column() { + Grid(){ + GridItem(){ + ColumnSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + } + .id('button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_001.ets + +@Component +struct onlyColumnBarState { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State BarValue: BarState = BarState.Off + onPageShow() { + console.info('onlyColumnBarState onPageShow') + this.BarValue = BarState.On + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .scrollBar(this.BarValue) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0030_237.ets + + +@Component +struct UIComponentListandgridGridEvents_0030_237 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragLeave( (event: ItemDragInfo, itemIndex: number) => { + this.text1 = 'onItemDragLeave'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0130.ets + + +@Component +struct ActionEventCommonEventMouseStyle0130 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0130_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0130" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0130_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0310.ets + + +@Component +struct UIAttributesModaltransitionVision0310 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_398: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets new file mode 100644 index 000000000..10a272b3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets @@ -0,0 +1,418 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState,OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0270047.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0270047 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onScrollFrameBegin((offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + this.msgInfo= "trigger Grid onScrollFrameBegin" + return { offsetRemain: offset } + } as OnScrollFrameBeginCallback|undefined) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0270047'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic8.ets + +@Component +struct buttonDynamicExample8 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Capsule + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button8') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_016.ets + +@Component +struct Grid06 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsTemplate属性值为0fr').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('0fr') + .columnsGap(5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0420.ets + + +@Component +struct UIAttributesBackgroundInterface0420 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: 90, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0100_565.ets + + +@Component +struct UIComponentListandgridGridInterface_0100_565 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0080.ets + + +@Component +struct UIActtonEventComdneventDracForeground0080 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + this.create(); + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0080_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onClick((event:ClickEvent) => { + this.create(); + }) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0080_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_399: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets new file mode 100644 index 000000000..b3320520c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets @@ -0,0 +1,296 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,ClickEvent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0400.ets + + +@Component +struct UIAttributesModaltransitionVision0400 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest11.ets + +@Component +struct ZIndexDynamicModificationTest11 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 7 //text的value: 'ABC设置zIndex: -3 2 -1' + this.zIndexValueIndex = 6 //ABC设置zIndex: -3 2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0350.ets + + +@Component +struct ActionEventCommonEventMouseStyle0350 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CHOOSE; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0350_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0350" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0350_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0220.ets + + +@Component +struct UIAttributesFocuscontrolInterface0220 { + @State focusOnTouchValue: boolean = false + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Button("3") + .focusOnTouch(this.focusOnTouchValue) + } + } +} + + +export const FLAG_OF_FILE_4: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets new file mode 100644 index 000000000..8973adb07 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets @@ -0,0 +1,476 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,AttributeModifier,GridAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment,Row,RowOptions,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,AnimationStatus,ResourceStr,ResourceStr,$r,ImageAnimator,FillMode,Margin, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets + + +@Component +struct UIAttributesBackgroundInterface089 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "280px" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0100 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.HEAVY }) + .id('UIAttributesClivkreboundeffectInterface0100_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0060.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0060 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.ets + + +@Component +struct UIAttributesColorrampInterface0660 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[this.centerX,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.ets + + +@Component +struct UIAttributesColorrampInterface0880 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [["#0000FF", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0190.ets + + +@Component +struct UIAttributesFocuscontrolInterface0190 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 }as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0300.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('切换主轴').id('btn2').onClick((event:ClickEvent) => { + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0020.ets + + +@Component +struct ActionEventCommoneventDragText0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur12.ets + +@Component +struct linearGradientBlur12 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Top } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0190.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0190 { + @State targetText: string = 'Drag Text'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({ space: 20 } as ColumnOptions) { + Column({ space: 15 } as ColumnOptions) { + Text('start Drag') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + }) + } + .width('100%') + .height(300) + Column({ space: 15 } as ColumnOptions) { + Text('Drag Target Area') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn_1') + .width('100%') + .height(100) + .padding({ top: 15, left: 15 } as Padding) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: UDC.PlainText = records[0] as UDC.PlainText; + this.abstractContent = plainText.textAbstract as string; + this.textContent = plainText.textContent; + event.setResult(DragResult.DRAG_CANCELED); + }) + }) + } + .width('100%') + .height(300) + } + .height('100%') + .width('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_40: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets new file mode 100644 index 000000000..2b85501d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets @@ -0,0 +1,375 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,FontStyle, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Padding +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Image,TransitionEffect,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0260.ets + + +@Component +struct UIAttributesBackgroundInterface0260 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row(){ + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + } + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: 0, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0360.ets + + +@Component +struct UIAttributesColorrampInterface0360 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0020.ets + + +@Component +struct ActionEventCommoneventDragImage0020 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0010.ets + + +@Component +struct UiAttributesFloatingLayerInterface0010 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", {}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0410.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0410 { + @State flag: boolean = true; + build() { + Column() { + Button('').width(80).height(30).margin(30) + .id('buttonId') + .onClick((e:ClickEvent) => { + this.flag = !this.flag; + }) + if (this.flag) { + Image('2.png').width(200).height(200) + .transition(TransitionEffect.OPACITY.animation({ duration: 2000, curve: Curve.Ease } as AnimateParam).combine( + TransitionEffect.rotate({ z: 1, angle: 180 }) + )) + } + }.width('100%').renderFit(RenderFit.TOP_RIGHT) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0470.ets + + +@Component +struct UIAttributesModaltransitionVision0470 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundEffect2.ets + +@Component +struct TextBackgroundEffect2 { + build() { + Scroll() { + Column() { + Text('radius:100 ALWAYS_INACTIVE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Green').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor(Color.Green) + .backgroundEffect({ + radius: 100 + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0620.ets + + +@Component +struct ActionEventCommoneventDragInterface0620 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0450.ets + + +@Component +struct ActionEventCommoneventDragdefault0450 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '中间可拖拽文字' + @State font_style:FontStyle = FontStyle.Normal + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontStyle(this.font_style) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontStyle(FontStyle.Italic) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_style = FontStyle.Italic + }) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_400: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets new file mode 100644 index 000000000..6d1c52dd3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets @@ -0,0 +1,423 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Column, + Button, + TextInput +} from '@ohos.arkui.component'; + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0480.ets + + +@Component +struct ActionEventCommonEventMouseStyle0480 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0480_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0480" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0480_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0400.ets + + +@Component +struct UIAttributesBackgroundInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "0.5turn", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0260.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0260 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + Button('MarginChange').onClick((e:ClickEvent)=>{ + this.mar = 50 + }).id('margin') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0300.ets + + +@Component +struct UIAttributesBackgroundInterface0300 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Pink,0.3],[0xD3E0DC,0.4], [Color.Red,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface091.ets + + +@Component +struct UIAttributesBackgroundInterface091 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 200, height: 100 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0310.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0310 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/CommoneventUnifyadd/textInputActionEventCommon.ets + + +@Component +struct textInputActionEventCommon { + build() { + Column() { + TextInput({ text: "白日依山尽,黄河入海流。\n欲穷千里目,更上一层楼。" }) + .width('100%') + .defaultFocus(true) + .key('key_textInput_action_event_common_001') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0240.ets + + +@Component +struct UIAttributesBcakgroundSeriable0240 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur8.ets + +@Component +struct linearGradientBlur8 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0430.ets + + +@Component +struct UIAttributesBackgroundInterface0430 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + rotation: "90deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0270.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0270 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItem({ content: "菜单a" } as MenuItemOptions) + MenuItem({ content: "菜单a" } as MenuItemOptions) + .foregroundEffect({ radius: this.radiusValue }) + }.width(90) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_401: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets new file mode 100644 index 000000000..39dc4f1b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets @@ -0,0 +1,429 @@ +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { IntentionCode } from '@ohos.multimodalInput.intentionCode' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions,KeyEvent,ButtonType,KeyType, +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { sendKeyEvent } from "@internal.full.global" + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0140.ets + + +@Component +struct UIAttributesImageeffectInterface0140 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button06.ets + + +@Component +struct Button06 { + @State isClicked: boolean = false; + @State text: string = ''; + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Button('Button06_btn1') + .id('Button06_btn1') + .width(300) + .height(80) + .fontColor(Color.Black) + .fontSize(25) + .fontWeight(FontWeight.Bold) + .backgroundColor(Color.Pink) + .type(ButtonType.Capsule) + .padding(10) + .onClick((event:ClickEvent) => { + setTimeout(() => { + let keyEvent: KeyEvent = { + type: KeyType.Down, + keyCode: 2049, + keyText: 'tab', + deviceId: 0, + metaKey: 0, + timestamp: 0, + stopPropagation: () => { + }, + intentionCode: IntentionCode.INTENTION_DOWN + } + this.isClicked = sendKeyEvent(keyEvent); // 发送按键事件 + }, 2000) + }) + Row() { + Text('sendKeyEvent: ').fontSize(25) + Text(this.isClicked + '').fontSize(25).id('Button06_Text') + }.margin({ top: 20 } as Margin).padding(15) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1500.ets + + +@Component +struct UIAttributesBackgroundInterface1500 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Top, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0440.ets + + +@Component +struct UIComponentCommonattrForegroundEffect440 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0440_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0440_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0440_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Text('我是 Row') + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width('100%') + .height(120) + .justifyContent(FlexAlign.Center) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0440_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0090.ets + + +@Component +struct UiAttributesFloatingLayerInterface0090 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.End}) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0010.ets + + +@Component +struct ActionEventCommoneventDragImage0010 { + @State isDrag:string = '' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(false) + .id('img1') + .key('img1') + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0210.ets + + +@Component +struct UIActtonEventComdneventDracInterface0210 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0210_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("acttonEvebt_0210_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0250.ets + + +@Component +struct UIAttributesGraphictransformationInterface0250 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('translate{x:-100}') + Image('cat.jpg') + .width(100) + .translate({x:-100} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0230.ets + + +@Component +struct ActionEventCommoneventDragImage0230 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方超链接资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.HYPERLINK]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let link = arr[0] as unifiedDataChannel.Hyperlink; + this.uri = link.url; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let link: unifiedDataChannel.Hyperlink = new unifiedDataChannel.Hyperlink; + link.url = 'www.xxx.com'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(link); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_402: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets new file mode 100644 index 000000000..de109358f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets @@ -0,0 +1,355 @@ +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,Button,ClickEvent,Flex, + FlexDirection,ItemAlign,FlexAlign, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image, + RotationGesture +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Color,FlexAlign,EdgeColors, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import dragController from '@ohos.arkui.dragController'; + +import image from '@ohos.multimedia.image'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,ClickEvent,Text,Button,Color,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragMultievents/ActionEventCommoneventDragMultievents0310.ets + + +@Component +struct ActionEventCommoneventDragMultievents0310 { + @State info: string = ''; + build() { + Column({ space: 5 } as ColumnOptions) { + Column() { + Text('Column') + } + .id('Column') + .height(100) + .width(150) + .backgroundColor(Color.Pink) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Column() { + Text('Column2') + } + .height(100) + .width(150) + .backgroundColor(Color.Yellow) + .id('Column2') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + Button('0310') + .draggable(true) + .onClick((e:ClickEvent) => { + this.info = 'button click'; + }) + Text(this.info) + Column() { + Text('dropin') + } + .height(200) + .width(350) + .backgroundColor(Color.Black) + .id('dropin') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface078.ets + + +@Component +struct UIAttributesBackgroundInterface078 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "33fp" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0020.ets + + +@Component +struct UIAttributesOutlineColor0020 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor({left: 0xFFFF4777, right: 0xFFFF4777, top: 0xFFFF4777, bottom: 0xFFFF4777} as EdgeColors) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0330.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0330 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("xuanzhuanButton") + .fontSize(100) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent) => { + this.angle=75 + }) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0310.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0310 { + @State hei:number = 120; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:80}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0340.ets + + +@Component +struct UIAttributesBackgroundInterface0340 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,无径向渐变效果').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-50, -50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 40, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0460.ets + + +@Component +struct UIAttributesBackgroundInterface0460 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [0, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackActonsheet/010.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackActonsheet010 { + build() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) { + Button('Click to Show ActionSheet') + .id('button') + .onClick((e:ClickEvent) => { + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0010.ets + + +@Component +struct UIAttributesImageeffectInterface0010 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0040.ets + + +@Component +struct UIAttributesTransparencyInterface0040 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:10') + .onClick((e:ClickEvent) => { + this.opacityValue = 10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId1') + Button('opacity:-10') + .onClick((e:ClickEvent) => { + this.opacityValue = -10; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId2') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_403: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets new file mode 100644 index 000000000..61655ea61 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets @@ -0,0 +1,465 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,OnScrollCallback, + ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignitems/UIComponentGridAlignitems0330.ets + + +@Component +struct UIComponentGridAlignitems0330 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentGridAlignItems0330'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0610.ets + + +@Component +struct UIAttributesColorrampInterface0610 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[50,50], + colors:[] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0050.ets + + +@Component +struct UIAttributesImageEffectProjection0050 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .backgroundColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0060.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0060 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 0.5, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0500.ets + + +@Component +struct ActionEventControlCallback0500 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content500' }) + .id("ActionEventControlCallback0500_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0320.ets + + +@Component +struct ActionEventCommoneventDragdefault0320 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentString.ets + +@Component +struct ContentString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('ContentString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 3").fontSize(11).id('ContentString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition modal 3").fontSize(11).id('ContentString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: this.sheetHeight, dragBar: this.showDragBar, + backgroundColor: 'rgba(255, 100, 255, 0.5)', + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close modal 2").fontSize(11).id('ContentString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 'rgb(255, 100, 255)', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: '#ff00ff', onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0030.ets + + +@Component +struct ActionEventCommoneventDragdefault0030 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_404: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets new file mode 100644 index 000000000..6381ac6d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets @@ -0,0 +1,353 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + +import { Entry, Component, Column,Stack,Text,ClickEvent,Color,Alignment, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GestureGroup, + GestureMode, + PanGesture, + Color, + DragEvent, + ClickEvent, + LongPressGesture, + GestureEvent +} from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding,ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0050.ets + + +@Component +struct UIComponentPreventdefault0050 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0050") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0670.ets + + +@Component +struct UIAttributesImageeffectInterface0670 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(100.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectUndefined.ets + +@Component +struct TextLightUpEffectUndefined { + build() { + Column() { + Text(' lightUpEffect undefined ') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(undefined) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0050.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0050 { + @Builder + OverlayNode() { + Column() { + Text('overlay 1') + .width(300) + .height(300) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width(300).height(300).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(150) + .height(150) + .objectFit(ImageFit.Fill) + }.width(150).height(150).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0250.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0250 { + @State backColor: Color = Color.Blue; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State count: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + build() { + Column() { + Column() { + Button('这是一个Button') + .id("btn") + .backgroundColor(this.backColor) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction(() => { + this.backColor = Color.Red + }) + .onActionEnd(() => { + console.info('LongPress end'); + }), + PanGesture() + .onActionStart(() => { + this.backColor = Color.Pink + }) + .onActionUpdate((event: GestureEvent | undefined) => { + if (event) { + this.offsetX = (this.positionX + event.offsetX); + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + ) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0150.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0150 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0 }) + .id('UIAttributesClivkreboundeffectInterface0150_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0010.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0010 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0270.ets + + +@Component +struct ActionEventControlcallback0270 { + @State context: string = "" + build() { + Column(){ + Stack({ alignContent: Alignment.Bottom }){ + Text('First child, show in bottom').width('90%').height('100%').backgroundColor(0xd2cab3).align(Alignment.Top) + Text('Second child, show in top').width('70%').height('60%').backgroundColor(0xc1cbac).align(Alignment.Top) + }.height('80%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0080.ets + + +@Builder +function builder1(text: string) { + Index0080({ link1: text || '' }) +} +@Component +struct SubAceActionWindowWindowCustom0080 { + build() { + Column() { + builder1('text') + } + } +} +@Component +struct Index0080 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0050.ets + + +@Component +struct UIAttributesColorrampInterface0050 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:true + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_405: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets new file mode 100644 index 000000000..460353e78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets @@ -0,0 +1,388 @@ +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Button,ClickEvent,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,VerticalAlign,FocusPriority,GridItemOptions,RowOptions,Row,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,GridRow, + GridCol,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0230.ets + + +@Component +struct CommonEventDragVideo0230 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event: DragEvent): void => { + event.useCustomDropAnimation = true + if (event?.useCustomDropAnimation) { + this.status = "useCustomDropAnimation = true" + } else { + this.status = "useCustomDropAnimation = false" + } + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0170.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0170 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + GridRow({ columns: 1 }) { + GridCol() { + Text('我是GridRow') + } + } + .height(20) + .width(200) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0090_717.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0090_717 { + @State inputValue: string = '' + build() { + Scroll() { + Row({ space: 20 } as RowOptions) { + Grid() { // 标记为Column1 + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green).focusScopePriority('ColumnScope1', FocusPriority.PRIOR) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + GridItem({ style: GridItemStyle.PLAIN } as GridItemOptions) { + Row({ space: 5 } as RowOptions) { + Button('') + .width(80) + .height(40) + .fontColor(Color.White) + } + }.borderColor(Color.Green) + } + .focusScopeId('ColumnScope1') + }.alignItems(VerticalAlign.Top) + }.margin(20) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0040.ets + + +@Component +struct ActionEventControlCallback0040 { + @State context: string = "" + build() { + Column(){ + Button("button") + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0800.ets + + +@Component +struct UIAttributesColorrampInterface0800 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90%" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0490.ets + + +@Component +struct UIAttributesBackgroundInterface0490 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[0xAEE1E1, 0.0], [0xD3E0DC, 0.3], [0xFCD1D1, 0.6]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0050.ets + + +@Component +struct UiAttributesFloatingLayerInterface0050 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.", { align: Alignment.BottomEnd }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0350.ets + + +@Component +struct UIAttributesImageeffectInterface0350 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 0 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_406: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets new file mode 100644 index 000000000..0a23aa6fc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets @@ -0,0 +1,415 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + ImageFit, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + List,ListItem,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rating,FlexAlign,Color,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Menu, + ImageFit, + MenuItem, + MenuItemOptions, + Color +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0020.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0020 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0190.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0190 { + @Builder + OverlayNode() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" }as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }as MenuItemOptions) + }.width(400).height(400).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0410.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0410 { + @State rating: number = 3.5 + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0410_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0410_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0410_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column({ space: 20 } as ColumnOptions) { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column() { + Rating({ rating: this.rating, indicator: false }) + .stars(5) + .stepSize(0.5) + .margin({ top: 24 } as Margin) + .onChange((value: number):void => { + this.rating = value + }) + .foregroundEffect({ radius: this.radius }) + Text('current score is ' + this.rating) + .fontSize(20) + .fontColor('rgba(24,36,49,0.60)') + .margin({ top: 16 } as Margin) + } + .width(360) + .height(113) + .backgroundColor(Color.Pink) + .margin({ top: 68 } as Margin) + } + } + .id('UIComponentCommonattrForegroundEffect0410_004') + .layoutWeight(1) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface100.ets + + +@Component +struct UIAttributesBackgroundInterface100 { + build() { + Column() { + Row() + .backgroundImage('/comment/bddg.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0020.ets + + +@Component +struct UIAttributesModaltransitionInteration0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 100; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myTitle() { + Text("Sheet Title").id('sheet_title') + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [600, 300, 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + title: this.myTitle + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0340.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0340 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button01.ets + + +@Component +struct Button01 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button01_0010') + .id('Button01_0010') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.text = inspector.getInspectorByKey('Button01_0010'); + }) + Row() { + Text(this.text) + .id('Button01_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_3.ets + + +@Component +struct UIAttributesModaltransitionVision0080_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0080.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0080 { + @Builder + OverlayNode() { + Column() { + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + .backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_407: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets new file mode 100644 index 000000000..3af025da6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets @@ -0,0 +1,398 @@ +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TabsController,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Position, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,Offset,ScrollState, + Direction,Alignment,Divider,Edges,LocalizedEdges +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + MenuItem, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + Builder, + Menu, + FontWeight,MenuItem,MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0130.ets + + +@Component +struct UIAttributesSelectedStyle0130 { + @State select: boolean = true; + @Builder + TestMenu() { + Menu() { + MenuItem({ + content: "菜单选项", + }as MenuItemOptions) + .selected(this.select) + .selectIcon(this.select) + } + } + build() { + Row() { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + .id('UIAttributesSelectedStyle0130') + } + .bindMenu(this.TestMenu) + .width('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0070_3.ets + + +@Component +struct UIAttributesModaltransitionVision0070_3 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0180.ets + + +@Component +struct UIAttributesBcakgroundSeriable0180 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.NoRepeat) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_026.ets + +@Component +struct Grid_026 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('100%') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .align(Alignment.Start) + .offset({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Position | Edges | LocalizedEdges | undefined) + .position({ x: 50, y: 50 } as Position) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0170.ets + + +@Component +struct UIAttributesFocuscontrolInterface0170 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + } + Column({ space: 20 } as ColumnOptions) { + Text("第三个column").width(200) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0430.ets + + +@Component +struct UIAttributesModaltransitionVision0430 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 100, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0070.ets + + +@Component +struct ActionEventCommoneventDragText0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0020.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0020 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0200.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0200 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + }.width('100%').height(this.isClick == true ? 300 : 200).backgroundColor(Color.Green) + Button("background") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0280.ets + + +@Component +struct ActionEventCommoneventDragCard0280 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = true; + }) + .border({width:1}) + .id('ActionEventCommoneventDragCard0280') + } + .width("100%") + .height("100%") + } + } +} + + +export const FLAG_OF_FILE_408: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets new file mode 100644 index 000000000..a221516a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets @@ -0,0 +1,409 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Color, + Builder, + PinchGesture, + GestureEvent, + Image +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Image,$r,Color,DragEvent,Margin,Row,RowOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommonEventDragDefault0260.ets + + +@Component +struct ActionEventCommonEventDragDefault0260 { + @State uri: string = "" + @State txt:string = 'A位置Text可拖拽文字' + build() { + Column() { + Text(this.txt) + .id('view-1') + .fontSize(30) + .margin(20) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Row() { + Column(){ + Text('B位置可释放区域') + .fontSize('15dp') + .height('10%') + Text(this.uri) + .id('view-2') + .height("50%") + .width("95%") + .fontSize(30) + .textAlign(TextAlign.Center) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .height("50%") + .width("95%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_two.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button1', { type: ButtonType.Circle }) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(-30) + .margin({top:10} as Margin) + Button('button2', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(30) + .margin({top:10} as Margin) + Button('button3', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(150) + .margin({top:10} as Margin) + Button('button4', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button5', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .borderRadius(50) + .margin({top:10} as Margin) + Button('button6', { type: ButtonType.Circle}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button7') + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button($r('app.media.startIcon')) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0280860.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0280860 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0280860_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0280860_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top); + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0320.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0320 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("nieheButton") + .fontSize(30) + .height(50) + .width(100) + .border({ width: 3 }) + .margin({ top: 100 } as Margin) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500) + Text('').width(100).height(10).id('Overlay0320_text').onClick((e: ClickEvent) => { + this.scaleValue = 1 + }) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0330.ets + + +@Component +struct UIActionEventCommonEventDragInterface0330 { + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State text2: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Text('dragPreviewText') + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragEnd((event: DragEvent, extraParams?: string) => { + console.log("zxx extraParams"+extraParams?.toString()) + } as Callback) + Text(this.text2) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface098.ets + + +@Component +struct UIAttributesBackgroundInterface098 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_409: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets new file mode 100644 index 000000000..051d15580 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets @@ -0,0 +1,362 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu,MenuItemOptions,$r,MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,ToggleType,Toggle,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0040 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0580 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0580_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0580_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0580_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column({ space: 10 } as ColumnOptions) { + Text('type: Toggle Switch') + .fontSize(20) + .textAlign(TextAlign.Center) + .fontColor(Color.Grey) + .width('100%') + Toggle({ + type: ToggleType.Switch, + isOn: true + }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .foregroundEffect({ radius: this.radius }) + } + } + } + .id('UIComponentCommonattrForegroundEffect0580_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets + + +@Component +struct UiAttributesFloatingLayerInterface0060 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton154.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton154 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_154_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_154_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets + + +@Component +struct UIAttributesBackgroundInterface1450 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0240.ets + + +@Component +struct ActionEventCommonEventMouseStyle0240 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CROSS; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0240_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0240" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0240_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_41: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets new file mode 100644 index 000000000..bfc4592c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets @@ -0,0 +1,410 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,BarState,HorizontalAlign,Text,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,UniformDataType, + Builder, + CustomDialogController,FlexDirection,ItemAlign,Image,ForEach, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + Flex, + DragEvent, + List, + BorderOptions, + UnifiedData,$r,ListItem,DragItemInfo +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundThick.ets + +@Component +struct BlurStyle_BackgroundThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0170.ets + + +@Component +struct UiAttributesFloatingLayerInterface0170 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes340.ets + + +@Component +struct UIAttributesTouchableInteraction340 { + @State uri: string = ""; + @State text: string = ""; + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('UIAttributesTouchableInteraction340') + .hitTestBehavior(HitTestMode.Transparent) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event:DragEvent):DragItemInfo =>{ + this.text = 'onDragStart'; + }) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction340_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0460.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0460 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .scrollBar(BarState.On) + Scroll() { + Column() { + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + Text('aaaaaaaaaa') + } + .width(150) + } + .height('80') + .margin({ top: 30 } as Margin) + .scrollBar(BarState.On) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0310.ets + + +@Component +struct UIAttributesColorrampInterface0310 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors: [["rgb(0,0,225)", 0.1], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0040.ets + + +@Component +struct ActionEventCommoneventDragdefault0040 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0110.ets + + +@Component +struct UIAttributesBcakgroundSeriable0110 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 40 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:40}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_410: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets new file mode 100644 index 000000000..01623a55a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets @@ -0,0 +1,413 @@ +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, HorizontalAlign } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,ShadowOptions,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + Navigation,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll,NavPathStack, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, BuilderParam } from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Scroller,Scroll,ScrollState,Edge,ForEach,ScrollDirection,BarState,TextAlign,ScrollSource,OffsetResult,OnScrollEdgeCallback +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes190.ets + + +@Component +struct UIAttributesTouchableInteraction190 { + scroller: Scroller = new Scroller() + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9) + @State testTextStr: string = 'test' + @State testRowStr: string = 'test' + build() { + Column() { + Column() { + Text(this.testTextStr) + .fontSize(20) + Text(this.testRowStr) + .fontSize(20) + } + .height(100) + .backgroundColor(Color.Gray) + .opacity(0.3) + Scroll(this.scroller) { + Column() { + Text("Test Text Visible Change") + .fontSize(20) + .height(200) + .margin({ top: 50, bottom: 20 } as Margin) + .backgroundColor(Color.Green) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Text isVisible: ' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Text is fully visible. currentRatio:' + currentRatio) + this.testTextStr = 'Test Text is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Text is completely invisible.') + this.testTextStr = 'Test Text is completely invisible' + } + }) + Row() { + Text('Test Row Visible Change') + .fontSize(20) + .margin({ bottom: 20 } as Margin) + } + .height(200) + .backgroundColor(Color.Yellow) + .onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number): void => { + console.info('Test Row isVisible:' + isVisible + ', currentRatio:' + currentRatio) + if (isVisible && currentRatio >= 1.0) { + console.info('Test Row is fully visible.') + this.testRowStr = 'Test Row is fully visible' + } + if (!isVisible && currentRatio <= 0.0) { + console.info('Test Row is completely invisible.') + this.testRowStr = 'Test Row is completely invisible' + } + }) + ForEach(this.arr, (item:number):void => { + Text(item.toString()) + .width('90%') + .height(150) + .backgroundColor(0xFFFFFF) + .borderRadius(15) + .fontSize(16) + .textAlign(TextAlign.Center) + .margin({ top: 10 } as Margin) + }, (item:number) => String(item)) + }.width('100%') + } + .id('UIAttributesTouchableInteraction190') + .hitTestBehavior(HitTestMode.None) + .backgroundColor(0x317aff) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .onWillScroll((xOffset: number, yOffset: number, scrollState: ScrollState,scrollSource:ScrollSource): OffsetResult => { + console.info(xOffset + ' ' + yOffset) + }) + .onScrollEdge((side: Edge):void => { + console.info('To the edge') + }) + .onScrollStop(() => { + console.info('Scroll Stop') + }) + }.width('100%').height('100%').backgroundColor(0xDCDCDC) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0290252.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0290252 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0290252_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0290252_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0370.ets + + +@Component +struct SubAceActionWindowWindowCustom0370 { + @Builder + builder1() { + Text('111').fontSize(50) + } + build() { + Column() { + Index0370({ builderParam1: this.builder1 }) + } + } +} +@Component +struct Index0370 { + @BuilderParam builderParam1: () => void = this.builder1 + @BuilderParam builderParam2: () => void = this.builder2 + @Builder + builder1() { + } + @Builder + builder2() { + Text('111').fontSize(50) + } + build() { + Column() { + this.builderParam1() + this.builderParam2() + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0300.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0300 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + Navigation(new NavPathStack()) { + Text('Navigation内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0350.ets + + +@Component +struct UIAttributesColorrampInterface0350 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Botton') + .width(400) + .height(60) + .linearGradient({ + colors:[] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0050.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0050 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface110.ets + + +@Component +struct UIAttributesBackgroundInterface110 { + build() { + Column() { + Row() + .backgroundColor(Color.Black) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0170.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0170 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .visibility(Visibility.Visible) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_411: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets new file mode 100644 index 000000000..d6e0871d6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets @@ -0,0 +1,379 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + Text, + $r, + Builder, + Color +} from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, Text, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0160.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0160 { + @State textPosition: Position = { x: 0, y: 150 } as Position; + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.textPosition = { x: 100, y: 150 } as Position + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .margin({left:100,top:50} as Margin) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .fontSize(15) + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row1.ets + +@Component +struct Row1Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(5) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0450.ets + + +@Component +struct UIAttributesBackgroundInterface0450 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() { + } + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0110.ets + + +@Component +struct UIAttributesBackgroundInterface0110 { + build() { + Column() { + Row() { + Text("DARK") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.DARK}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest03.ets + +@Component +struct ZIndexTest03 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .zIndex(-3) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-1) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(-1) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(-2) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(999999) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9999) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(9) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(10) + .width('15%').height('20%').backgroundColor(0x3300FF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(8) + .width('30%').height('30%').backgroundColor(0xFF1493).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(6) + .width('45%').height('45%').backgroundColor(0x7FFF00).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(4) + .width('60%').height('60%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(2) + .width('75%').height('75%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('90%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.Bottom) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_System.ets + +@Component +struct ThemeColorMode_System { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.SYSTEM, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0130.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0130 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .background(this.BackgroundBuilder) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomEnd}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0030.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0030 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0030_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0030_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0830.ets + + +@Component +struct UIAttributesColorrampInterface0830 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: 0, + end: 90, + rotation: 380 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_412: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets new file mode 100644 index 000000000..6467db28c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets @@ -0,0 +1,437 @@ +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row,DragBehavior, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,TextAreaOptions,TextArea,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import image from '@ohos.multimedia.image'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + PlaybackSpeed,Image,DragBehavior,DragEvent,DragResult,DragItemInfo,CustomBuilder,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl,Button, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text } from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0530.ets + + +@Component +struct SubAceActionWindowWindowCustom0530 { + @State state1: string = '111' + build() { + Column() { + Index0530({ link1: this.state1 }) + } + } +} +@Component +struct Index0530 { + @Prop link1: string; + build() { + Text(this.link1) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0430.ets + + +@Component +struct ActionEventCommonEventMouseStyle0430 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0430_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0430" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0430_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0110.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0110 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0110_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0660.ets + + +@Component +struct UIAttributesImageeffectInterface0660 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0240.ets + + +@Component +struct UIActionEventCommonEventDragInterface0240 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap|undefined = undefined + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image("./cat.jpg") + .id('startDragID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent):() => void => { + }) + .onDragEnd((event:DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + } as Callback) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('dragOnDropID') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .onDragMove((event:DragEvent) => { + event.dragBehavior = DragBehavior.COPY + } as Callback) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event:DragEvent) => { + event.setResult(DragResult.DRAG_CANCELED) + } as Callback) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0020.ets + + +@Component +struct ActionEventCommonEventMouseStyle0020 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextArea({ text: "TextArea1" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_01") + TextArea({ text: "TextArea2" } as TextAreaOptions) + .id("ActionEventCommonEventMouseStyle0020_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_OPEN); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0030.ets + + +@Component +struct UIAttributesColorrampInterface0030 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: GradientDirection.Left, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0180.ets + + +@Component +struct ActionEventCommoneventDragImage0180 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.COPY + event?.setResult(DragResult.DROP_ENABLED) + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_413: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets new file mode 100644 index 000000000..5aaa7d1e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets @@ -0,0 +1,451 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Select,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextInputController, + Button, + TextArea, + MenuPolicy, + $r, + ClickEvent +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0010.ets + + +@Component +struct UIActtonEventComdneventDracForeground0010 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "cubic-bezier(0.2,0,0,1)", + delay: 100, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 200 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0010_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0010_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic3.ets + +@Component +struct buttonDynamicExample3 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.textTest = '按钮类型测试_ButtonTy.Normal' + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }) + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0030.ets + + +@Component +struct UIAttributesRenderFit0030 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.BOTTOM) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0490.ets + + +@Component +struct UIAttributesImageeffectInterface0490 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0330.ets + + +@Component +struct SubAceActionWindowWindowCustom0330 { + controller: TextInputController | undefined = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0480.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0480 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .width(100) + Select([{ value: 'aaa' }, + { value: 'bbb' }, + { value: 'ccc' }, + { value: 'ddd' }]) + .foregroundEffect({ radius: this.radiusValue }) + .width(100) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0210.ets + + +@Component +struct ActionEventCommonEventMouseStyle0210 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SOUTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0210_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0210" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0210_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_414: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets new file mode 100644 index 000000000..38a5fdf7a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets @@ -0,0 +1,319 @@ +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import {Entry,Component,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign,Image,Row,List,ForEach,ListItem, +Margin,BorderOptions,DragEvent,Visibility,$r,Color +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component, Column,ResourceStr,$r,Menu,MenuItem,Builder,ColumnOptions,FontWeight, + MenuItemGroup,MenuItemOptions,MenuItemGroupOptions,Text,Margin +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0140.ets + + +@Component +struct UIComponentCommonattrGrayscale0140 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [-10, -10] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0420.ets + + +@Component +struct ActionEventControlCallback0420 { + @State context: string = "" + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu(){ + Menu() { + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + MenuItem({ startIcon: $r('app.media.startIcon'), content: "菜单选项" } as MenuItemOptions) + .enabled(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + MenuItemGroup({ header: '小标题' } as MenuItemGroupOptions) { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions).id('MenuItem') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('MenuItem'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + MenuItem({ + startIcon: $r('app.media.startIcon'), + content: "菜单选项", + endIcon: this.iconStr2, + builder: ():void=>this.SubMenu() + } as MenuItemOptions) + } + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + } as MenuItemOptions) + } + } + build() { + Column({space: 20} as ColumnOptions) { + Column() { + Text('click to show menu') + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .id('Column') + .bindMenu(this.MyMenu) + .width('100%') + Text(this.context).margin({ top: 20 } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent.ets + +@Component +struct Percent { + build() { + Column() { + Text('上下30%,左右-20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: '20%', right: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0290.ets + + +@Component +struct UIAttributesColorrampInterface0290 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SampleMultipleSelectionDrag/SampleMultipleSelectionDrag0020.ets + + +@Component +struct SampleMultipleSelectionDrag0020 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .id('0') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .onDragStart(undefined) + .draggable(true) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('1') + .height('90%') + .width('100%') + .backgroundColor(Color.Red) + .allowDrop([UTD.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + console.log("ondrop not udmf data"); + }) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index: number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => String(item)) + } + .id('2') + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .backgroundColor(Color.Green) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1350.ets + + +@Component +struct UIAttributesBackgroundInterface1350 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:-90, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + + +export const FLAG_OF_FILE_415: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets new file mode 100644 index 000000000..3ae6249c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets @@ -0,0 +1,411 @@ +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,TapGesture,Margin, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + ItemAlign, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Radio, + FlexDirection +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0080.ets + + +@Component +struct UIAttributesSelectedStyle0080 { + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean): void => { + console.log('Radio status is ' + isChecked) + }) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0330.ets + + +@Component +struct UIAttributesBackgroundInterface0330 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为100vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [-10, -10], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 100, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0040.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0040 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .id('ScrollScrollbarScrolledge0040_002') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Start, { + velocity: 100000 + }) + }).id('ScrollScrollbarScrolledge0040_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0630.ets + + +@Component +struct ActionEventCommoneventDragdefault0630 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .fontColor(this.color) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.color = Color.Orange + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .fontColor(Color.Orange) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0150_2.ets + + +@Component +struct UIAttributesModaltransitionVision0150_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet:跟手") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:50, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0120.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0120 { + @State widthValue: number = 200 + @State heightValue: number = 250 + @State str: string = '你好' + build() { + Column({ space: 5 }as ColumnOptions) { + Text(this.str).width(this.widthValue).height(this.heightValue) + .id('UIComponentCommonattrFocusenhancement0120_001') + .onHover(():void => { + this.widthValue = 80 + this.heightValue = 60 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0310.ets + + +@Component +struct ActionEventCommoneventDragdefault0310 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + .margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface119.ets + + +@Component +struct UIAttributesBackgroundInterface119 { + build() { + Column() { + Row() + .backgroundColor(Color.Transparent) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0070.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0070 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin为小数') + .focusBox({ + margin: LengthMetrics.px(0.1), + }) + Button('button margin 0') + .focusBox({ + margin: LengthMetrics.px(0), + }) + Button('button margin null') + .focusBox({ + margin: undefined, + }) + Button('button margin undefined') + .focusBox({ + margin: undefined, + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_416: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets new file mode 100644 index 000000000..680644870 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets @@ -0,0 +1,464 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Padding, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + ScrollDirection, + XComponentController, + focusControl, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Direction,Divider,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder,ForEach, + CustomDialogController,UniformDataType, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + List, + BorderOptions, + UnifiedData,ListItem,Image +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes100.ets + + +@Component +struct UIAttributesTouchableInteraction100 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction100') + .onDragLeave((): void =>{ + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri=JSON.parseJsonElement(extraParams as string).getString('extraInfo') + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri); + }) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction100_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + if(dragData != undefined) { + } else { + } + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_027.ets + +@Component +struct Grid_027 { + build() { + Column() { + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .height("40%") + .border({ width: 1 } as BorderOptions) + .direction(Direction.Ltr) + .margin({ + left: 30, + right: 10, + top: 10, + bottom: 40 + } as Margin) + .padding({ + left: 10, + right: 10, + top: 10, + bottom: 40 + } as Padding) + Divider().border({width: 3, color: Color.Black} as BorderOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0190.ets + + +@Component +struct CommonEventDragVideo0190 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_CANCELED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0250_323.ets + + +@Component +struct UIComponentListandgridGridInterface_0250_323 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .rowsTemplate("repeat(auto-fit,90px)") + .margin(20) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceActionEventIntercept/SubAceActionEventIntercept0100.ets + + +@Component +struct SubAceActionEventIntercept0100 { + private flag: boolean = true; + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput() + .key('SubAceActionEventIntercept0100_key1') + .onAppear(() => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key1'); + }) + .defaultFocus(true) + Button('') + .width(0) + .height(0) + .key('SubAceActionEventIntercept0100_key3') + } + .padding({ top: 20 } as Padding) + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceActionEventIntercept0100_key3'); + }) + } +} + + +export const FLAG_OF_FILE_417: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets new file mode 100644 index 000000000..e11b31c38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets @@ -0,0 +1,338 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import common from '@ohos.app.ability.common' + +import window from '@ohos.window'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,RowOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0250.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0250 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + horVerSwitch() { + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('横竖屏切换').id('btn2').onClick((event:ClickEvent) => { + this.horVerSwitch() + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0290.ets + + +@Component +struct UIAttributesBackgroundInterface0290 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为2vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[0xAEE1E1,0.0],[0xD3E0DC,0.3], [0xFCD1D1,0.6]], + radius: 20, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest12.ets + +@Component +struct ZIndexDynamicModificationTest12 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 8 //text的value: 'ABC设置zIndex: -1 -2 0' + this.zIndexValueIndex = 7 //ABC设置zIndex: -1 -2 0 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0370.ets + + +@Component +struct UIAttributesGraphictransformationInterface0370 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1.5,centerX:"dfd",centerY:"gj"}') + Image('cat.jpg') + .width(100) + .scale({x:1.5,centerX:"dfd",centerY:"gj"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0240.ets + + +@Component +struct ActionEventCommoneventDragdefault0240 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0010.ets + + +@Component +struct UIAttributesRenderFit0010 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.CENTER) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_418: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets new file mode 100644 index 000000000..b8d16ddac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets @@ -0,0 +1,503 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,FlexAlign,Margin, + Scroll,Text,TextAlign,Grid,GridItem,ForEach,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,EdgeOutlineWidths +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0210.ets + + +@Component +struct UIAttributesBcakgroundSeriable0210 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface107.ets + + +@Component +struct UIAttributesBackgroundInterface107 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.Y) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ClipIsTrueIndex.ets + +@Component +struct ClipExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Row() { + Image($r('app.media.startIcon')) + .width(200) + .height(100) + } + .clip(true) + .borderRadius(20) + } + .width('100%') + .margin({ top: 15 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0020.ets + + +@Component +struct UIAttributesModaltransitionSafearea0020 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({top: 20} as Margin) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0010.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0010 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().scale({ x: 1, y: 1, z: 1 } as matrix4.ScaleOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x*0.5') + .id('UIAttributesGraphicTransformationSkew0010_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 0.5, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*0.5') + .id('UIAttributesGraphicTransformationSkew0010_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 0.5, z: 1 } as matrix4.ScaleOption); + }) + Button('z*0.5') + .id('UIAttributesGraphicTransformationSkew0010_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 0.5 } as matrix4.ScaleOption); + }) + Button('x*2') + .id('UIAttributesGraphicTransformationSkew0010_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 2, y: 1, z: 1 } as matrix4.ScaleOption); + }) + Button('y*2') + .id('UIAttributesGraphicTransformationSkew0010_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 2, z: 1 } as matrix4.ScaleOption); + }) + Button('z*2') + .id('UIAttributesGraphicTransformationSkew0010_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().scale({ x: 1, y: 1, z: 2 } as matrix4.ScaleOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0520.ets + + +@Component +struct UIAttributesImageeffectInterface0520 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0070.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0070 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth({left: 1, right: 0, top: 4, bottom: -1} as EdgeOutlineWidths) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0210.ets + + +@Component +struct UIAttributesImageeffectInterface0210 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(-45) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/fcocusEvent_c_rh/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0160.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0160 { + @State radius: number = 0 + @State numbers: string[] = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0160_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0160_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0160_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + .rowStart(1) + .rowEnd(2) + .columnStart(1) + .columnEnd(2) // 同时设置合理的行列号 + .foregroundEffect({ radius: this.radius }) + ForEach(this.numbers, (item: string,index:number) => { + GridItem() { + Text(item) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height(300) + } + } + .id('UIComponentCommonattrForegroundEffect0160_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface60.ets + + +@Component +struct AceActionEventCommoneventClickInterface60 { + @State text:string='sourceTool = '; + @State number1:number=0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text+this.number1) + .id('AceActionEventCommoneventClickInterface60') + .onClick((event: ClickEvent)=> { + this.number1 = event.sourceTool; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0040_342.ets + + +@Component +struct UIComponentListandgridGridEvents_0040_342 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragMove( (event: ItemDragInfo, itemIndex: number, insertIndex: number) => { + this.text1 = 'onItemDragMove'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_419: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets new file mode 100644 index 000000000..bb83418b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets @@ -0,0 +1,388 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + Visibility,ClickEvent,animateTo,PlayMode,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Hyperlink,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + PanGestureOptions, + PanGesture,BorderOptions,PanDirection +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes250.ets + + +@Component +struct UIAttributesTouchableInteraction250 { + @State value: string = ''; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All }); + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction250') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.value = 'onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0050.ets + + +@Component +struct ActionEventCommonEventMouseStyle0050 { + build() { + Column({ space: 50 } as ColumnOptions) { + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_01") + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.RESIZE_LEFT_RIGHT); + } else { + cursorControl.restoreDefault(); + } + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0210.ets + + +@Component +struct CommonEventDragVideo0210 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_SUCCESSFUL) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets + + +@Component +struct UiAttributesFloatingLayerInterface0140 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.TopStart}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.ets + + +@Component +struct UIAttributesGraphictransformationInterface0260 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .translate({x:"100px"}) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.ets + + +@Component +struct UIAttributesColorrampInterface0060 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Top + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 1000, + iterations: 1, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.Hidden + this.directionY=GradientDirection.Bottom + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Top + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.ets + + +@Component +struct UIAttributesModaltransitionInteration0010 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[ SheetSize.MEDIUM, SheetSize.LARGE ] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_42: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets new file mode 100644 index 000000000..53b9d896c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets @@ -0,0 +1,344 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + HorizontalAlign +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDragInput0070.ets + + +@Component +struct UIActtonEventComdneventDragInput0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDragInput0070_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDragInput0070_2") + Text(this.textContent).fontSize(15).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexTest01.ets + +@Component +struct ZIndexTest01 { + build() { + Column({ space: 5 } as ColumnOptions) { + Stack() { + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + Stack() { + Text() + .zIndex(0) + .width('90%').height('80%').backgroundColor(0xFFFACD).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('70%').height('60%').backgroundColor(0xCCFFFF).fontSize(12).align(Alignment.TopStart) + Text() + .zIndex(0) + .width('50%').height('40%').backgroundColor(0xFFCCCC).fontSize(12).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + }.width('100%').height('100%').alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization128.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization128 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization128_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + + +export const FLAG_OF_FILE_420: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets new file mode 100644 index 000000000..28abc7fb5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets @@ -0,0 +1,455 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,HorizontalAlign,animateTo,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + QRCode,HorizontalAlign,ScrollDirection,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + HorizontalAlign,ScrollDirection,Counter,TextAlign,Button,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0090.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0090 { + @State radiusValue: number = 0; + @State value1: number = 0; + @State value2: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Counter() { + Text(this.value1.toString()) + } + .onInc(():void => { + this.value1++ + }) + .onDec(():void => { + this.value1-- + }) + Counter() { + Text(this.value2.toString()) + } + .foregroundEffect( + { radius: this.radiusValue } + ) + .onInc(():void => { + this.value2++ + }) + .onDec(():void => { + this.value2-- + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0020.ets + + +@Component +struct UIAttributesImageeffectInterface0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(-5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0030.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0030 { + @State group: boolean | undefined = false; + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(this.group) + .justifyContent(FlexAlign.Center) + Button('Switch') + .onClick((e:ClickEvent) => { + this.group = undefined; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0120.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0120 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0390.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0390 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + QRCode('我是二维码').width(140).height(140) + QRCode('我是二维码').width(140).height(140) + .margin({ top: 30 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0390.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0390 { + @State toggle: boolean = true + build() { + Column() { + Button('').margin(50) + .renderFit(RenderFit.TOP_RIGHT) + .id('buttonId') + .motionPath({ path: 'Mstart.x start.y L300 200 L300 500 Lend.x end.y', from: 0.0, to: 1.0, rotatable: true }) + .onClick((e:ClickEvent) => { + animateTo({ duration: 2000, curve: Curve.Linear }, () => { + this.toggle = !this.toggle + }) + }) + }.width('100%').height('100%').alignItems(this.toggle ? HorizontalAlign.Start : HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0100.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0100 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0600.ets + + +@Component +struct UIAttributesBackgroundInterface0600 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "3.14rad", + end: "6.28rad", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0040.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0040 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0040_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0040_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0260.ets + + +@Component +struct ActionEventCommonEventMouseStyle0260 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CURSOR_FORBID; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0260_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0260" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0260_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_421: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets new file mode 100644 index 000000000..fd6e75454 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets @@ -0,0 +1,350 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderStyle, + GestureGroup, + GestureMode, + LongPressGesture, + PanGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { PromptAction } from '@ohos.arkui.UIContext' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + FontWeight +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnWillScrollCallback,OnScrollCallback,ComputedBarAttribute,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0210.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0210 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(5) + .borderWidth(5) + .borderColor(Color.Yellow) + .borderRadius(10) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0060.ets + + +@Component +struct UIAttributesModaltransitionInteration0060 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.CENTER, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXonhofOnscroll/UIComponentListandgridXonhofOnscroll0220134528.ets + + +@Component +struct UIComponentListandgridXonhofOnscroll0220134528 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State msgInfo1: string = 'inital value'; + @State msgInfo2: string = 'inital value'; + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.msgInfo2); + Text(this.msgInfo1); + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.msgInfo1 = '2.trigger onDidScroll' + } as OnScrollCallback | undefined) + .onWillScroll((scrollOffset: number, scrollState: ScrollState): ScrollResult => { + this.msgInfo2 = '1.trigger onWillScroll' + } as OnWillScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + .id('UIComponentListandgridXonhofOnscroll0220134528'); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('UIComponentListandgridXonhofOnscroll0220134528_001'); + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes140.ets + + +@Component +struct UIAttributesTouchableInteraction140 { + @State isShow: boolean = true + @State changeAppear: string = '点我卸载挂载组件' + private myText: string = 'Text for onAppear' + build() { + Column() { + Button(this.changeAppear) + .id('UIAttributesTouchableInteraction140') + .hitTestBehavior(HitTestMode.None) + .onClick((): void => { + this.isShow = !this.isShow + }).margin(15) + if (this.isShow) { + Text(this.myText).fontSize(26).fontWeight(FontWeight.Bold) + .onAttach((): void => { + new PromptAction().showToast({ + message: 'The text is shown', + duration: 2000, + bottom: 500 + }) + }) + .onAppear(() =>{ + this.myText = 'Text for onAppear'; + }) + .onDetach((): void => { + new PromptAction().showToast({ + message: 'The text is hidden', + duration: 2000, + bottom: 500 + }) + }) + .onDisAppear(() =>{ + this.myText = 'Text for DisAppear'; + }) + } + }.padding(30).width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0020.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0020 { + @State hei:number = 150; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .clip(true) + .height(100) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes70.ets + + +@Component +struct UIAttributesTouchableInteraction70 { + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Text('sequence gesture\n' + 'LongPress onAction:' + this.count + '\nPanGesture offset:\nX: ' + this.offsetX + '\n' + 'Y: ' + this.offsetY) + .fontSize(15) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .height(150) + .width(200) + .padding(20) + .margin(20) + .border({ width: 3, style: this.borderStyles }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction70') + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++; + } + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + }) + ) + .onCancel(() => { + }) + ) + } +} + + +export const FLAG_OF_FILE_422: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets new file mode 100644 index 000000000..a69d62dac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets @@ -0,0 +1,387 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,PageTransitionEnter,RouteType,PageTransitionExit,Image,Curve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,DragPreviewMode,DragResult,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0290.ets + + +@Component +struct UIActionEventCommonEventDragInterface0290 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image('./cat.jpg') + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO,numberBadge:2}) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + event.setResult(DragResult.DROP_ENABLED); + }) + .onDragEnd((event: DragEvent) => { + console.log("onDragEnd event.getResult()"+event.getResult()) + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + console.log("ondrop udmf data"); + event?.setResult(DragResult.DROP_ENABLED); + this.dragSuccess = true + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0100.ets + + +@Component +struct UIComponentBackgroundimage0100 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0230.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0230 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrClearfocuse/UIComponentCommonattrClearfocuse002.ets + + +@Component +struct UIComponentCommonattrClearfocuse002 { + @State bgColorValue: Color = Color.Blue + @State bgBtnValue: Color = Color.Blue + @State bgBtnColor: Color = Color.Blue + build() { + Column() { + Button('1') + .defaultFocus(true) + .backgroundColor(this.bgColorValue) + .onFocus(() => { + this.bgColorValue = Color.Green + }) + .onBlur(() => { + this.bgColorValue = Color.Red + }) + .tabIndex(1) + Button('2') + .focusOnTouch(true) + .backgroundColor(this.bgBtnValue) + .onFocus(() => { + this.bgBtnValue = Color.Green + }) + .onBlur(() => { + this.bgBtnValue = Color.Blue + }) + .tabIndex(2) + Button('3') + .backgroundColor(this.bgBtnColor) + .onFocus(() => { + this.bgBtnColor = Color.Red + }) + .onBlur(() => { + this.bgBtnColor = Color.Blue + }) + .tabIndex(3) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0420.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0420 { + @State scale1: number = 1 + @State opacity1: number = 1 + pageTransition() { + PageTransitionEnter({ duration: 1200, curve: Curve.Linear }) + .onEnter((type: RouteType, progress: number):void => { + if (type == RouteType.Push||type == RouteType.Pop) { + this.scale1 = progress + this.opacity1 = progress + } + }) + PageTransitionExit({ duration: 1200, curve: Curve.Ease }) + .onExit((type: RouteType, progress: number):void => { + if (type == RouteType.Push) { + this.scale1 = 1 - progress + this.opacity1 = 1 - progress + } + }) + } + build() { + Column() { + Image('icon.png').width(200) + .id('imageId') + .onClick((e:ClickEvent)=>{ + const routerInstance = AppStorage.get("router", Type.of(new Router())) as Router + routerInstance.pushUrl({url:'testability/pages/UIAttributesComponentContentFillingModeInterface/0410'}) + }) + }.width('100%').renderFit(RenderFit.BOTTOM) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0080.ets + + +@Component +struct UIAttributesColorRampAny0080 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .radialGradient({ + center:[50,50], + radius:60, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0150.ets + + +@Component +struct ActionEventCommoneventDragInput0150 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_423: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets new file mode 100644 index 000000000..06dbe3cc9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets @@ -0,0 +1,436 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,FlexDirection,ItemAlign,FlexAlign,Callback,DragResult,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0510.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0510 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("string:“!@#3%^&*()_+”",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0180.ets + + +@Component +struct UiAttributesFloatingLayerInterface0180 { + build() { + Column() { + Image("2.png") + .width(50) + .height(24) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Top}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur15.ets + +@Component +struct linearGradientBlur15 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[-1, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0190.ets + + +@Component +struct UIActtonEventComdneventDracInterface0190 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0190_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0190_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1470.ets + + +@Component +struct UIAttributesBackgroundInterface1470 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.RightBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0150.ets + + +@Component +struct UIAttributesColorRampBlurGradient0150 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(60, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0020.ets + + +@Component +struct UIAttributesFocuscontrolInterface0020 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("DefaultFocus(true)").defaultFocus(true) + Column({ space: 20 } as ColumnOptions) { + Button("你好") + } + Column({ space: 20 } as ColumnOptions) { + Button("你好啊") + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0270.ets + + +@Component +struct UIActionEventCommonEventDragInterface0270 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State text:string = "Image拖拽状态:" + build() { + Column() { + Text(this.text) + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image("./cat.jpg") + .id("dragButton") + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .onDragStart((event: DragEvent):() => void => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent) => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.text +='Drag Success' + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.text +='Drag failed' + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.text +='Drag CANCELED' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Disable' + } else if (event.getResult() === DragResult.DROP_ENABLED) { + this.text +='Drag Enable' + } + } as Callback) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column() { + Text('不允许释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.AblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event?: DragEvent, extraParams?: string) => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getInteger('insertIndex'), 0, this.uri) + console.log("ondrop not udmf data"); + } as Callback) + .border({ width: 1 } as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column() { + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List() { + ForEach(this.BblockArr, (item: string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + } + .margin({ left: 30, top: 30 } as Margin) + }, (item: string, index:number) => item) + } + .border({ width: 1 } as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDragMove((event: DragEvent, extraParams?: string) => { + console.log("onDragMove") + } as Callback) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData: UnifiedData = (event as DragEvent).getData() as UnifiedData; + console.log("ondrop udmf data"); + } as Callback) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragMultievents/SubAceActionEventCommoneventDragMultievents0010.ets + + +@Component +struct SubAceActionEventCommoneventDragMultievents0010 { + @State uri: string = ""; + @State AblockArr: Array = new Array(); + @State BblockArr: Array = new Array(); + @State img: string = ''; + @State isClick: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.jpg') + .id('SubAceActionEventCommoneventDragMultievents0010_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent): (() => void) => { + }) + } + Column({ space: 10 } as ColumnOptions) { + Button('点击:' + this.isClick) + .id('SubAceActionEventCommoneventDragMultievents0010_btn_2') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.isClick = true + }) + Text('1') + .id('SubAceActionEventCommoneventDragMultievents0010_btn_1') + .fontColor(Color.Transparent) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_424: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets new file mode 100644 index 000000000..877736fc0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets @@ -0,0 +1,357 @@ +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,animateTo,PlayMode,Curve,Text +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Builder, Image } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + px2vp,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0300_345.ets + + +@Component +struct UIComponentListandgridGridInterface_0300_345 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(undefined) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0040.ets + + +@Component +struct ActionEventCommoneventDragText0040 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(1, 4) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0030.ets + + +@Component +struct UIAttributesModaltransitionVision0030 { + @State isShow: boolean = false + @State detents: number = 0; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`当前挡位:${this.detents}`) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[400, 500, 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + onDetentsDidChange: (detents:number):void => { + this.detents = Math.floor(px2vp(detents)); + } + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0480.ets + + +@Component +struct UIAttributesBackgroundInterface0480 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0480.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0480 { + @Builder + overlayBuilder(){ + Image('icon.png') + .height("50%") + .width("50%") + } + build() { + Column() { + Image("2.png") + .height("100vp") + .width("100vp") + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0610.ets + + +@Component +struct UIAttributesBackgroundInterface0610 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "90deg", + end: "270deg", + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0150.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0150 { + @State rotateAngle: number = 0 + @State isAnimation:boolean = false + animationStart(){ + animateTo({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal, + onFinish: () => { + console.info('play end') + } + }, () => { + this.rotateAngle = 90 + this.isAnimation = true + }) + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .fontSize(50) + .margin({left:100,top:50} as Margin) + .fontColor(this.isAnimation == true ? Color.Green : Color.Red) + .rotate({ angle: this.rotateAngle }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + Button('animation') + .height(50) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.animationStart() + }) + .id('buttonId') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0700.ets + + +@Component +struct UIAttributesColorrampInterface0700 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[-10,-10], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic7.ets + +@Component +struct buttonDynamicExample7 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Normal + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button7') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0010.ets + + +@Component +struct ActionEventCommoneventClickDfx0010 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0010") + Text(this.num) + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_425: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets new file mode 100644 index 000000000..130c65669 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets @@ -0,0 +1,451 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Scroller, + Scroll, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + ForEach, + EdgeEffect, + ScrollSnapAlign,TripleLengthDetents +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,TextInput,Button,Column,Margin +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,Visibility, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0100.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0100 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('zIndex(1)') + .visibility(Visibility.Visible) + .zIndex(1) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(2)') + .visibility(Visibility.Visible) + .zIndex(2) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + Button('zIndex(3)') + .visibility(Visibility.Visible) + .zIndex(3) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 140, 0), + strokeWidth: LengthMetrics.vp(20), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterWebsearchEventCallback/ActionEventRegisterWebsearchEventCallback010.ets + + +@Component +struct ActionEventRegisterWebsearchEventCallback010 { + build(){ + Column(){ + TextInput().width(300).height(50).margin({top:30} as Margin) + .id("websearchEventCallback010") + Button("获焦").margin({top:30} as Margin) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0280.ets + + +@Component +struct UIAttributesModaltransitionVision0280 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0200.ets + + +@Component +struct UIAttributesImageEffectProjection0200 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:-50, y:-50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0060.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0060 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0060_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0060_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0380.ets + + +@Component +struct UIAttributesColorrampInterface0380 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + radius: 20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_035.ets + +@Component +struct Grid_035 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10','11','12') + scroller1: Scroller = new Scroller() + @State scrollbar:BarState=BarState.Off + @State columnsTemplate: string = '1fr 1fr 2fr' + @State columnsTemplateNum: number = 0 + @State columnsGap: number = 10 + @State rowsGap: number = 10 + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .columnsTemplate(this.columnsTemplate) + .scrollBar(this.scrollbar) + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + List({space:10} as ListOptions){ + ListItem(){ + Button("repeat(auto-fit, 10%)") + .id('repeat(auto-fit, 10%)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 10%)' + }) + } + ListItem(){ + Button("repeat(auto-fit, 90px)") + .id('repeat(auto-fit, 90px)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, 90px)' + }) + } + ListItem(){ + Button("repeat(auto-fit, -1)") + .id('repeat(auto-fit, -1)_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='repeat(auto-fit, -1)' + }) + } + ListItem(){ + Button("1fr 0fr 1fr") + .id('101fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr 0fr 1fr' + }) + } + ListItem(){ + Button("1fr a 1fr") + .id('1a1fr_035') + .width(150) + .onClick((event:ClickEvent) => { + this.columnsTemplate='1fr a 1fr' + }) + } + ListItem(){ + Button('On') + .id('On') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.On + }) + } + ListItem(){ + Button('Off') + .id('Off') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Off + }) + } + ListItem(){ + Button('Auto') + .id('Auto') + .onClick((event: ClickEvent) => { + this.scrollbar=BarState.Auto + }) + } + } + .width("100%").height('30%') + .border({ width: 1 } as BorderOptions) + .padding(15).lanes(2) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0510.ets + + +@Component +struct UIAttributesImageeffectInterface0510 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton139.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton139 { + @State isShow:boolean = false + scroller: Scroller = new Scroller; + private arr: Array = new Array(0, 1) + @Builder myBuilder() { + Column() { + Scroll(this.scroller) { + Column() { + ForEach(this.arr, (item: number) => { + Button("content1") + .margin(10) + .fontSize(20) + }, (item: number,index:number) => String(item)) + }.width('100%').backgroundColor(0xDCDCDC) + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + .width('100%') + } + build() { + Column() { + TextInput({ placeholder: 'input ...' }) + .width(380) + .height(60) + Button("transition modal 1") + .id('UlComponentCommonattrlfocusoptimizatton_139_1') + .onClick((): void => { + this.isShow = true + }) + .focusable(false) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, ():void=>{this.myBuilder()},{ + detents:[SheetSize.MEDIUM as SheetSize, SheetSize.LARGE as SheetSize, SheetSize.FIT_CONTENT] as TripleLengthDetents, + backgroundColor:Color.Gray, + blurStyle:BlurStyle.Thick, + showClose:true, + title:{title:"title", subtitle:"subtitle"}, + preferType: SheetType.CENTER, + shouldDismiss:((sheetDismiss: SheetDismiss): void=> { + console.log("bind sheet shouldDismiss") + sheetDismiss.dismiss() + }) + }) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_426: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets new file mode 100644 index 000000000..51ee94887 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets @@ -0,0 +1,498 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + ImageFit, + Color +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Blank,GridDirection,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Flex,Alignment, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, FlexOptions,ListOptions, BorderOptions,ScrollState,FlexWrap} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_038.ets + +@Component +struct Grid_038 { + @State numbers: Array = new Array() + @State isLayoutOptions: boolean = true + @State maxCount: number = 0 + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0; i < 100; i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Flex({ wrap: FlexWrap.Wrap } as FlexOptions) { + Text() + .width(10) + .height(10) + .key('maxCount=0') + .onClick((event:ClickEvent) => { + this.maxCount = 0 + }) + Text() + .width(10) + .height(10) + .key('maxCount=2') + .onClick((event:ClickEvent) => { + this.maxCount = 2 + }) + } + Grid() { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .textAlign(TextAlign.Center) + }.selectable(false) + .width(90) + .height(50) + .backgroundColor(0xF9CF93) + }, (day: string, index: number) => String(day + index)) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .scrollBar(BarState.On) + .scrollBarWidth(10) + .scrollBarColor(Color.Red) + } + .width('90%').margin({ top: 50, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0110344.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0110344 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute|undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= "trigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0110344'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonScrollto/UIComponentListandgridXommonScrollto0110193.ets + + +@Component +struct UIComponentListandgridXommonScrollto0110193 { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('rowsTemplate、columnsTemplate都不设置layoutDirection、maxcount、minCount、cellLength才生效') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string,index: number) => day) + } + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr ') + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: '5%', right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0030.ets + + +@Component +struct UIComponentCommonattrGrayscale0030 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0050.ets + + +@Component +struct ActionEventCommoneventDragdefault0050 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0040.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0040 { + @Builder + OverlayNode() { + Column() { + Image($r('app.media.startIcon')) + .width(350) + .height(350) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode1() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(350).height(350).alignItems(HorizontalAlign.Start).backgroundColor(Color.Red) + } + @Builder + OverlayNode1() { + Column() { + Image($r('app.media.startIcon')) + .width(330) + .height(330) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode2() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(330).height(330).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode2() { + Column() { + Image($r('app.media.startIcon')) + .width(310) + .height(310) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode3() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(310).height(310).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode3() { + Column() { + Image($r('app.media.startIcon')) + .width(290) + .height(290) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode4() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(290).height(290).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode4() { + Column() { + Image($r('app.media.startIcon')) + .width(270) + .height(270) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode5() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(270).height(270).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode5() { + Column() { + Image($r('app.media.startIcon')) + .width(250) + .height(250) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode6() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(250).height(250).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode6() { + Column() { + Image($r('app.media.startIcon')) + .width(230) + .height(230) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode7() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(230).height(230).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode7() { + Column() { + Image($r('app.media.startIcon')) + .width(210) + .height(210) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode8() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(210).height(210).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode8() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode9() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + @Builder + OverlayNode9() { + Column() { + Image($r('app.media.startIcon')) + .width(190) + .height(190) + .objectFit(ImageFit.Fill) + }.width(190).height(190).alignItems(HorizontalAlign.Start).backgroundColor(Color.Yellow) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_427: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets new file mode 100644 index 000000000..9702b9fca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets @@ -0,0 +1,264 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentNumber.ets + +@Component +struct ContentNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 Green true").fontSize(11).id('ContentNumber2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0x008000, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentNumber3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 Yellow ture").fontSize(11).id('ContentNumber4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: 0xffff00, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0140.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0140 { + @State isDialogVisible: boolean = false; + onButtonClick(){ + this.isDialogVisible = true + if (this.isDialogVisible == true) { + } + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(Color.White).margin({left:100,top:-100} as Margin) + }.width('100%').height(400).backgroundColor(Color.Green) + Button("animation") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface089.ets + + +@Component +struct UIAttributesBackgroundInterface089 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: "280px", height: "280px" } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0100.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0100 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.HEAVY }) + .id('UIAttributesClivkreboundeffectInterface0100_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0060.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0060 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textContent = '按钮内容拖入'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0660.ets + + +@Component +struct UIAttributesColorrampInterface0660 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[this.centerX,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:90, + repeating:false + } as SweepGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0880.ets + + +@Component +struct UIAttributesColorrampInterface0880 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [["#0000FF", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_428: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets new file mode 100644 index 000000000..ad4de3d57 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets @@ -0,0 +1,425 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,ToggleType,Toggle,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,AttributeModifier,GridAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment,Row,RowOptions,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,AnimationStatus,ResourceStr,ResourceStr,$r,ImageAnimator,FillMode,Margin, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0190.ets + + +@Component +struct UIAttributesFocuscontrolInterface0190 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 }as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0300.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 200 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + @State isFullScreen:boolean = false + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX) + Text('Y: '+this.itemY) + Text('width: '+this.itemWidth) + Text('height: '+this.itemHeight) + Row({space:8} as RowOptions){ + Button('getItemRect').id('btn1') + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + Button('切换主轴').id('btn2').onClick((event:ClickEvent) => { + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0020.ets + + +@Component +struct ActionEventCommoneventDragText0010 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(30) + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur12.ets + +@Component +struct linearGradientBlur12 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Top } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0190.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0190 { + @State targetText: string = 'Drag Text'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UDC.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({ space: 20 } as ColumnOptions) { + Column({ space: 15 } as ColumnOptions) { + Text('start Drag') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let data: UDC.PlainText = new UDC.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new UDC.UnifiedData(data)); + }) + } + .width('100%') + .height(300) + Column({ space: 15 } as ColumnOptions) { + Text('Drag Target Area') + .fontSize(20) + .fontColor(Color.White) + .width('100%') + .height(40) + .backgroundColor(Color.Pink) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('SubAceActionEventCommoneventDragCard0190_btn_1') + .width('100%') + .height(100) + .padding({ top: 15, left: 15 } as Padding) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: UDC.PlainText = records[0] as UDC.PlainText; + this.abstractContent = plainText.textAbstract as string; + this.textContent = plainText.textContent; + event.setResult(DragResult.DRAG_CANCELED); + }) + }) + } + .width('100%') + .height(300) + } + .height('100%') + .width('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0040.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0040 { + build() { + Row() { + Column() { + Column() + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.AVERAGE + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0580.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0580 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0580_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0580_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0580_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Column({ space: 10 } as ColumnOptions) { + Text('type: Toggle Switch') + .fontSize(20) + .textAlign(TextAlign.Center) + .fontColor(Color.Grey) + .width('100%') + Toggle({ + type: ToggleType.Switch, + isOn: true + }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .foregroundEffect({ radius: this.radius }) + } + } + } + .id('UIComponentCommonattrForegroundEffect0580_004') + .layoutWeight(1) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_429: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets new file mode 100644 index 000000000..fa0365e66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets @@ -0,0 +1,414 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Radio,FlexAlign,FontWeight,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,SheetSize,ClickEvent,List, +$$,ListItem,Resource,ScrollSizeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Blank,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0030 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('我是Button') + Button('我是Button') + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets + + +@Component +struct UIAttributesBackgroundInterface0620 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.ets + + +@Component +struct UIAttributesModaltransitionVision0770 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] as number[]; + @Builder + myBuilder() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + scrollSizeMode: ScrollSizeMode.CONTINUOUS + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets + + +@Component +struct UIAttributesBackgroundInterface120 { + build() { + Column() { + Row() + .backgroundColor(Color.White) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0110 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0110_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0400 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0400_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0400_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0400_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Radio({ value: 'Radio', group: 'radioGroup' }) + .checked(true) + .height(50) + .width(50) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0400_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets + + +@Component +struct UIAttributesBackgroundInterface118 { + build() { + Column() { + Row() + .backgroundColor(Color.Red) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0150.ets + + +@Component +struct UIAttributesBcakgroundSeriable0150 { + @State top: number = 150 + @State bottom: number = 50 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0450.ets + + +@Component +struct ActionEventCommonEventMouseStyle0450 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0450_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0450" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0450_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_43: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets new file mode 100644 index 000000000..369c8b592 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets @@ -0,0 +1,502 @@ +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Hyperlink,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + PanGestureOptions, + PanGesture,BorderOptions,PanDirection +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu,MenuItemOptions,$r,MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0060.ets + + +@Component +struct UiAttributesFloatingLayerInterface0060 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton154.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton154 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_154_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_154_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1450.ets + + +@Component +struct UIAttributesBackgroundInterface1450 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Left, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0240.ets + + +@Component +struct ActionEventCommonEventMouseStyle0240 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.CROSS; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0240_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0240" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0240_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes250.ets + + +@Component +struct UIAttributesTouchableInteraction250 { + @State value: string = ''; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.All }); + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction250') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.value = 'onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0050.ets + + +@Component +struct ActionEventCommonEventMouseStyle0050 { + build() { + Column({ space: 50 } as ColumnOptions) { + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_01") + Hyperlink('https://www.baidu.com/') + .id("ActionEventCommonEventMouseStyle0050_02") + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.RESIZE_LEFT_RIGHT); + } else { + cursorControl.restoreDefault(); + } + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0210.ets + + +@Component +struct CommonEventDragVideo0210 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_SUCCESSFUL) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_430: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets new file mode 100644 index 000000000..b302ee875 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets @@ -0,0 +1,277 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,SheetSize,ClickEvent,List, +$$,ListItem,Resource,ScrollSizeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Blank,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + Visibility,ClickEvent,animateTo,PlayMode,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0140.ets + + +@Component +struct UiAttributesFloatingLayerInterface0140 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240).overlay("Winter is a beautiful season.",{align:Alignment.TopStart}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0260.ets + + +@Component +struct UIAttributesGraphictransformationInterface0260 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .translate({x:"100px"}) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0060.ets + + +@Component +struct UIAttributesColorrampInterface0060 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Top + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 1000, + iterations: 1, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.Hidden + this.directionY=GradientDirection.Bottom + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Top + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0010.ets + + +@Component +struct UIAttributesModaltransitionInteration0010 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[ SheetSize.MEDIUM, SheetSize.LARGE ] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0030.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0030 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('我是Button') + Button('我是Button') + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0620.ets + + +@Component +struct UIAttributesBackgroundInterface0620 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0770.ets + + +@Component +struct UIAttributesModaltransitionVision0770 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30] as number[]; + @Builder + myBuilder() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents: [SheetSize.MEDIUM, SheetSize.LARGE, 200] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + scrollSizeMode: ScrollSizeMode.CONTINUOUS + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface120.ets + + +@Component +struct UIAttributesBackgroundInterface120 { + build() { + Column() { + Row() + .backgroundColor(Color.White) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_431: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets new file mode 100644 index 000000000..03b82af60 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets @@ -0,0 +1,392 @@ +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Radio,FlexAlign,FontWeight,Margin,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0110.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0110 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0110_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0400.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0400 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0400_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0400_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0400_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Radio({ value: 'Radio', group: 'radioGroup' }) + .checked(true) + .height(50) + .width(50) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0400_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface118.ets + + +@Component +struct UIAttributesBackgroundInterface118 { + build() { + Column() { + Row() + .backgroundColor(Color.Red) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0150.ets + + +@Component +struct UIAttributesBcakgroundSeriable0150 { + @State top: number = 150 + @State bottom: number = 50 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0450.ets + + +@Component +struct ActionEventCommonEventMouseStyle0450 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0450_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0450" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0450_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.ets + + +@Component +struct UIAttributesColorRampAny0060 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .linearGradient({ + direction:GradientDirection.Left, + repeating:true, + colors:[[0xff0000,0.0], [0x0000ff,0.3], [0xffff00,0.5]] + } as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.ets + + +@Component +struct UIAttributesColorrampInterface0870 { + build() { + Column({ space: 4 } as ColumnOptions) { + Column() { + } + .backgroundColor(Color.Green) + .border({ width: 3 }) + .width(100) + .height(100) + .sweepGradient({ + center: [100, 50], + colors: [["#FF0000", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 180, + end: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0040.ets + + +@Component +struct ActionEventCommoneventClickDfx0040 { + @State num2:string = "" + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_1") + Button("按钮2点击300").onClick((event: ClickEvent) => { + this.num2 = "点击2" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_2") + Text(this.num) + Text(this.num2) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0270.ets + + +@Component +struct ActionEventCommoneventDragCard0270 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = false; + }) + .id('ActionEventCommoneventDragCard0270') + .border({width:1}) + } + .width("100%") + .height("100%") + } + } +} + + +export const FLAG_OF_FILE_432: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets new file mode 100644 index 000000000..878cbec43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets @@ -0,0 +1,434 @@ +import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, + CustomDialogController,DialogAlignment,ClickEvent,CustomDialogControllerOptions,TranslateOptions, + PanDirection,PanGestureHandlerOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,OnScrollCallback, + CaretOffset,TextInputController,TextInput,ItemAlign,EdgeEffect,ComputedBarAttribute,TextInputOptions,Callback,ResourceStr, + Resource,EditableTextOnChangeCallback +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Text,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0440.ets + + +@Component +struct ActionEventCommonEventMouseStyle0440 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0440_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0440" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0440_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0020.ets + + +@Component +struct ActionEventControlCallback0020 { + @State context: string = "hello" + build() { + Column(){ + Text(this.context) + .fontSize(32) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets + + +@Component +struct UiAttributesFloatingLayerInterface0020 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.") + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInteraction/UIComponentListandgridGridInteraction0010237.ets + + +@Component +struct UIComponentListandgridGridInteraction0010237 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State text: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } as CaretOffset + controller: TextInputController = new TextInputController() + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller } as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('90%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .onChange((value: string) => { + this.text = value + } as EditableTextOnChangeCallback) + }.alignSelf(ItemAlign.Start) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(6) + .rowsGap(6) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring, { alwaysEnabled: true }) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(300) + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets + + +@Component +struct UIAttributesBackgroundInterface0630 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets + + +@Component +struct UIAttributesImageEffectProjection0110 { + build() { + Column() { + Text('Hello World') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .fontColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column3.ets + +@Component +struct Column3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .cellLength(500) + .minCount(3) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0320.ets + + +@Component +struct UIAttributesBcakgroundSeriable0320 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragWay/ActionEventCommoneventDragWay0020.ets + + +@Component +struct ActionEventCommoneventDragWay0020 { + @State info: string[] = [] as string[]; + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + build() { + Column({ space: 5} as ColumnOptions) { + Button('0020') + .height("50") + .id('button') + .onClick((e: ClickEvent) => { + }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(():void => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_433: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets new file mode 100644 index 000000000..39b71f51b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets @@ -0,0 +1,373 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + ScrollDirection,Button,ClickEvent,Stack,Text, + DataPanel,Color,DataPanelType,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightString.ets + +@Component +struct HightString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: '5000' , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition '300fp'").fontSize(11).id('HightString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: '300fp', dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close DEFAULT").fontSize(11).id('HightString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition '300vp'").fontSize(11).id('HightString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:'300vp' , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:'900px' , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.ets + + +@Component +struct UIAttributesImageeffectInterface0570 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets + + +@Component +struct UIAttributesBackgroundInterface0320 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为60vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 60, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0100857.ets + + +@Component +struct UIComponentListandgridXommonSmooth0100857 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0100857') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0100857_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0100857_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.ets + + +@Component +struct UIAttributesImageeffectInterface0420 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: 50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0100 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }) + .width(168) + .height(168) + .foregroundEffect({ radius: this.radiusValue }) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0040.ets + + +@Component +struct UIComponentPreventdefault0040 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0040") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.ets + + +@Component +struct UIAttributesImageeffectInterface0120 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(5) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_434: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets new file mode 100644 index 000000000..00d5d4c13 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets @@ -0,0 +1,409 @@ +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Navigation,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Radio,RadioIndicatorType +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import prompt from '@system.prompt'; + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Row,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Visibility,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_034.ets + +@Component +struct columnsTemplate1 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10') + scroller1: Scroller = new Scroller() + @State columnsGap: number = 10 + @State rowsGap: number = 10 + @State Visibility:Visibility=Visibility.Visible + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + GridItem(){ + Text('TopItem') + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .visibility(this.Visibility) + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + Row(){ + Button('Hidden') + .id('Hidden') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Hidden + }) + Button('Visible') + .id('Visible') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Visible + }) + Button('None') + .id('None') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.None + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.ets + + +@Component +struct UIAttributesImageeffectInterface0500 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0160.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0160 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0400.ets + + +@Component +struct ActionEventControlCallback0400 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Radio({ value: 'Radio1', group: 'radioGroup', + indicatorType:RadioIndicatorType.TICK + }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0010.ets + + +@Component +struct ActionEventCommonEventMouseStyle0010 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput({ text: "TextInput1" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_01") + .type(InputType.Password) + TextInput({ text: "TextInput2" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_02") + .type(InputType.Password) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_POINTING); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0310 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundUltraThick.ets + +@Component +struct BlurStyle_BackgroundUltraThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets + + +@Component +struct UiAttributesFloatingLayerInterface0080 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0050 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0020.ets + + +@Component +struct ActionGestureRegister0020 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.ets + + +@Component +struct UIAttributesImageeffectInterface0410 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: -50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_435: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets new file mode 100644 index 000000000..813a3687b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets @@ -0,0 +1,402 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + Image, + FlexAlign, + Button, + ObscuredReasons, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Padding, + ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, + Visibility,ClickEvent,animateTo,PlayMode,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0090 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=-inf') + .id('UIAttributesGraphicTransformationSkew0090_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(-Infinity, 0); + }) + Button('y=-inf') + .id('UIAttributesGraphicTransformationSkew0090_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, -Infinity); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.ets + + +@Component +struct UIAttributesColorrampInterface0070 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Bottom + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.directionY=GradientDirection.Top + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Bottom + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0010.ets + + +@Component +struct UIComponentPreventdefault0010 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0010") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0030 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().rotate({ x: 0, y: 0, z: 0, angle: 0 } as matrix4.RotateOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('y+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('z+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: 45 } as matrix4.RotateOption); + }) + Button('x+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('y+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('z+∠45') + .id('UIAttributesGraphicTransformationSkew0030_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: -45 } as matrix4.RotateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.ets + + +@Component +struct UIAttributesOutlinewidth0010 { + build() { + Column() { + Text('outlineWidth测试') + .outlineWidth({ + left: 20, + right: 20, + top: 20, + bottom: 20 + } as EdgeOutlineWidths) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.ets + + +@Component +struct UIAttributesGraphictransformationInterface0240 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('translate {x:"sd30",y:"sd30",z:"sd30"}') + Image('cat.jpg') + .width(400) + .translate({x:"sd30",y:"sd30",z:"sd30"} as TranslateOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets + + +@Component +struct UIAttributesBackgroundInterface0690 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Center) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0100.ets + + +@Component +struct ActionEventCommoneventDragdefault0100 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets + + +@Component +struct UIComponentMediaImageMask0010 { + @State borderW: number = 1; + @State borderC: number = Color.White; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('change border') + .onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + }).id('mask0010_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + + +export const FLAG_OF_FILE_436: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets new file mode 100644 index 000000000..2d08f0b48 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets @@ -0,0 +1,438 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Color,DragEvent,Margin,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,EffectComponent,Divider} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + $r, + MenuItem, + MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,GridLayoutOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.ets + + +@Component +struct UIAttributesColorrampInterface0130 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + direction: GradientDirection.Bottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0260_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0260_891 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsGap(-1) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.ets + + +@Component +struct UIAttributesImageeffectInterface0340 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: -10 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton159.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton159 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_159_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_159_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0460 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button") + .id("changeTextColor0460") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + .margin({top:30} as Margin) + }.height(300) + .backgroundColor(Color.Orange) + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/UseEffectIndex.ets + +@Component +struct UseEffectExample { + @State use_effect1_: boolean = true + @State use_effect2_: boolean = false + build() { + Column() { + EffectComponent() { + Column({ space: 20 } as ColumnOptions) { + Text("Normal text with useEffect1") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect1_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Text("Normal text with useEffect2") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect2_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Divider() + Button('Change useEffect1 ' + this.use_effect1_) + .id('button_auto_updateEffect1') + .onClick((event:ClickEvent) => { + if (this.use_effect1_) { + this.use_effect1_ = false + } else { + this.use_effect1_ = true + } + }) + Button('Change useEffect2 ' + this.use_effect2_) + .id('button_auto_updateEffect2') + .onClick((event:ClickEvent) => { + if (this.use_effect2_) { + this.use_effect2_ = false + } else { + this.use_effect2_ = true + } + }) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0140.ets + + +@Component +struct UIActtonEventComdneventDracInterface0140 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0140_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0140_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0290.ets + + +@Component +struct ActionEventCommoneventDragdefault0290 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .margin({top:200} as Margin) + .id('txt2') + .width(100) + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_437: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets new file mode 100644 index 000000000..07d37649a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets @@ -0,0 +1,373 @@ +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ItemAlign, + ObscuredReasons, + FlexDirection, + Radio +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import {BusinessError} from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Flex, + Builder +} from '@ohos.arkui.component'; + +import { + Entry, + ImageFit, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0150 { + @State color1: Color = Color.Red; + @State color2: Color = Color.Red; + @Builder + OverlayNode() { + Column() { + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color1).onClick((e:ClickEvent) => { + if (this.color1 == Color.Red) { + this.color1 = Color.Blue; + } else { + this.color1 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_001') + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color2).onClick((e:ClickEvent) => { + if (this.color2 == Color.Red) { + this.color2 = Color.Blue; + } else { + this.color2 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_002') + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0110 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.ets + + +@Component +struct UIAttributesColorrampInterface0340 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["AAAEYU",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0150 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets + + +@Component +struct UIAttributesBackgroundInterface1460 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.None, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.ets + + +@Component +struct UIAttributesColorrampInterface0710 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0210.ets + + +@Component +struct ActionEventCommoneventDragImage0210 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.chuan'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.ets + + +@Component +struct UIAttributesRenderFit0060 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets + + +@Component +struct UIAttributesSelectedStyle0090 { + @State isChecked: boolean = true; + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(this.isChecked) + .height(50) + .width(50) + .onChange((isChecked: boolean) :void=> { + console.log('Radio status is ' + isChecked) + } ) + Button('Click') + .id('UIAttributesSelectedStyle0090') + .onClick((e: ClickEvent) => { + this.isChecked = false; + }) + } + } + } +} + + +export const FLAG_OF_FILE_438: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets new file mode 100644 index 000000000..20713781c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets @@ -0,0 +1,393 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,$$,SheetSize,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_three.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button10', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('buttonxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .margin({top:10} as Margin) + Button('button11', { type: ButtonType.Normal,stateEffect:true}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button11') + .margin({top:10} as Margin) + Button('button12', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button12') + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.ets + + +@Component +struct UIAttributesModaltransitionVision0190 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:'100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur1.ets + +@Component +struct linearGradientBlur1 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(0, { fractionStops: [[0,0]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_029.ets + +@Component +struct Grid_029 { + scroller1: Scroller = new Scroller() + @State Number: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8') + @State layoutOptions: GridLayoutOptions = { + regularSize: [1.2555, 1], + irregularIndexes: [3, 8], //设置第几个item占一整行 + onGetIrregularSizeByIndex:(index:number):[number,number] => { + return [2,2] + } + } as GridLayoutOptions + build() { + Scroll() { + Column() { + Grid(this.scroller1, this.layoutOptions) { + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text("N" + day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .focusable(true) + }.size({ width: "100%", height: 50 }).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .height(500) + .width("95%") + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .margin(10) + .onScrollIndex((first: number,last: number) => { + console.info("XXX Grid1 firstindex: " + String(first) + ", lastindex: " + String(last)) + }) + .onScrollStart(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStart`) + }) + .onScrollStop(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStop`) + }) + .onReachStart(() => { + console.log(`XXX Grid1 Swipe onReachStart`) + }) + .onReachEnd(() => { + console.log(`XXX Grid1 Swipe onReachEnd`) + }) + } + .width('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0150.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0150 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0050.ets + + +@Component +struct ActionEventCommoneventClickDfx0050 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0050") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.ets + + +@Component +struct UIAttributesTransparencyInterface0050 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:1') + .onClick((e:ClickEvent) => { + this.opacityValue = 1; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0710.ets + + +@Component +struct ActionEventCommoneventDragdefault0710 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽篇章文本\n可拖拽篇章文本可拖拽篇章文本可拖拽篇章文\n本可拖拽篇章文本可拖拽篇章文本可拖' + + '拽篇章文\n本可拖拽篇章文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.ets + + +@Component +struct UIAttributesModaltransitionVision0500 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: false, + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_439: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets new file mode 100644 index 000000000..107e305fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets @@ -0,0 +1,379 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,OnScrollCallback, + CaretOffset,TextInputController,TextInput,ItemAlign,EdgeEffect,ComputedBarAttribute,TextInputOptions,Callback,ResourceStr, + Resource,EditableTextOnChangeCallback +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Text,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,LinearGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0060.ets + + +@Component +struct UIAttributesColorRampAny0060 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .linearGradient({ + direction:GradientDirection.Left, + repeating:true, + colors:[[0xff0000,0.0], [0x0000ff,0.3], [0xffff00,0.5]] + } as LinearGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0870.ets + + +@Component +struct UIAttributesColorrampInterface0870 { + build() { + Column({ space: 4 } as ColumnOptions) { + Column() { + } + .backgroundColor(Color.Green) + .border({ width: 3 }) + .width(100) + .height(100) + .sweepGradient({ + center: [100, 50], + colors: [["#FF0000", 0.0], ["#FFC0CB", 0.3], ["#FFFF00", 1.0]], + start: 180, + end: 90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0040.ets + + +@Component +struct ActionEventCommoneventClickDfx0040 { + @State num2:string = "" + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_1") + Button("按钮2点击300").onClick((event: ClickEvent) => { + this.num2 = "点击2" + }) + .margin(10).id("ActionEventCommoneventClickdfx0040_2") + Text(this.num) + Text(this.num2) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0270.ets + + +@Component +struct ActionEventCommoneventDragCard0270 { + build() { + Row() { + Column() { + Image($r('app.media.startIcon')) + .margin({ top: 10 } as Margin) + .width(200) + .height(200) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{}) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO }) + .onDrop((event: DragEvent, extraParams?: string):void => { + event.useCustomDropAnimation = false; + }) + .id('ActionEventCommoneventDragCard0270') + .border({width:1}) + } + .width("100%") + .height("100%") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0440.ets + + +@Component +struct ActionEventCommonEventMouseStyle0440 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0440_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0440" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0440_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0020.ets + + +@Component +struct ActionEventControlCallback0020 { + @State context: string = "hello" + build() { + Column(){ + Text(this.context) + .fontSize(32) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0020.ets + + +@Component +struct UiAttributesFloatingLayerInterface0020 { + build() { + Column() { + Image("2.png").overlay("Winter is a beautiful season.") + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInteraction/UIComponentListandgridGridInteraction0010237.ets + + +@Component +struct UIComponentListandgridGridInteraction0010237 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State text: string = '' + @State positionInfo: CaretOffset = { index: 0, x: 0, y: 0 } as CaretOffset + controller: TextInputController = new TextInputController() + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller } as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('90%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .onChange((value: string) => { + this.text = value + } as EditableTextOnChangeCallback) + }.alignSelf(ItemAlign.Start) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(6) + .rowsGap(6) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring, { alwaysEnabled: true }) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(300) + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_44: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets new file mode 100644 index 000000000..1164bf2a2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets @@ -0,0 +1,401 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextPicker,FontWeight, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0220.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0220 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0550 { + private select: number = 1 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4'] as string[] + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0550_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0550_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0550_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextPicker({ + range: this.fruits, + selected: this.select + }) + .onChange((value: string | string[], index: number | number[]):void => { + console.info('Picker item changed, value: ' + value + ', index: ' + index) + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0550_004') + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0030 { + build() { + Column({space:20} as ColumnOptions) { + Column() { + Column({space:10} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + } + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.ets + + +@Component +struct UIAttributesColorrampInterface0140 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.LeftBottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignltems/UIComponentGridAlignltems0350.ets + +@Component +struct UIComponentGridAlignltems0350 { + @State data: Array = new Array(); + @State items: Array = new Array(); + scroller: Scroller = new Scroller(); + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.data.push(String(i)) + this.items.push(String(this.getSize())) + } + } + getSize() { + let ret = Math.floor(Math.random() * 5) + return 5 + } + build() { + Column({ space: 10 } as ColumnOptions) { + Text('Grid alignItems示例代码') + Grid(this.scroller) { + ForEach(this.data, (item: string, index:number) => { + GridItem() { + Column() { + Column().height(100).backgroundColor('#D5D5D5').width('100%') + Text(`${item}`.repeat(1)) + .flexGrow(1).width('100%').align(Alignment.TopStart).height(60) + .backgroundColor('#F7F7F7') + Column().height(50).backgroundColor('#707070').width('100%') + } + } + .border({ color: Color.Black, width: 1 } as BorderOptions) + }) + } + .id('0') + .columnsGap(10) + .rowsGap(5) + .columnsTemplate('1fr 1fr') + .width('80%') + .height('100%') + .alignItems(GridItemAlignment.STRETCH) + .hitTestBehavior(HitTestMode.Block) + .scrollBar(BarState.Off) + .onClick((event: ClickEvent) => { + this.scroller.scrollEdge(Edge.Bottom) + }) + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.ets + + +@Component +struct UIAttributesColorrampInterface0910 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.ets + + +@Component +struct UIAttributesImageeffectInterface0560 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets + + +@Component +struct UIAttributesBackgroundInterface125 { + build() { + Column() { + Row() + .backgroundColor('rgb(0,0,255)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid006.ets + +@Component +struct UIComponentGrid006 { + @State numbers: Array = new Array() + layoutDirectionValue: GridDirection = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('GridDirection.Column') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.layoutDirectionValue = GridDirection.Column + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + + +export const FLAG_OF_FILE_440: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets new file mode 100644 index 000000000..ef93cf979 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets @@ -0,0 +1,421 @@ +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,Row,Margin,$r,DragItemInfo, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,DragBehavior,DragItemInfo,$r,LongPressGesture,DragResult, + Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,FontWeight,Text,VerticalAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0100.ets + + +@Component +struct ActionEventCommoneventDragInterface0100 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0020.ets + +@Component +struct ActionEventCommonEventDragListItem0020 { + @State message: string = '拖动我'; + build() { + Column() { + Button(this.message) + .id('ActionEventCommonEventDragListItem0020') + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + }) + .margin({ top: 100 } as Margin) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + Text('1').fontSize(1).id("ActionEventCommonEventDragListItem0020Text") + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracCard0070.ets + + +@Component +struct UIActtonEventComdneventDracCard0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("card_07_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Image(this.targetImage) + .id("card_07_02") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent?: DragEvent) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + event.useCustomDropAnimation = false; + this.imgState = Visibility.None; + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("card_07_03") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.ets + + +@Component +struct UIAttributesImageeffectInterface0180 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(2.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.ets + + +@Component +struct UIAttributesModaltransitionVision0240 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0100.ets + + +@Component +struct ActionEventCommoneventDragImage0100 { + @State isDrag:string = '' + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .key('img1') + .onDragStart((event: DragEvent, extraParams?: string):DragItemInfo => { + return { builder: () => { + this.pixelMapBuilder() + }, extraInfo: 'extra info' } as DragItemInfo; + }) + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0110.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0110 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest10.ets + +@Component +struct ZIndexDynamicModificationTest10 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 6 //text的value: 'CBA设置ZIndex:-3 -2 -1' + this.whValueIndex = 1 //组件顺序设置为CBA + this.zIndexValueIndex = 5 //CBA设置ZIndex:-3 -2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_441: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets new file mode 100644 index 000000000..5a70ea048 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets @@ -0,0 +1,404 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign,ColumnOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,ClickEvent, + Resource,$r, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0850_504.ets + + +@Component +struct UIComponentListandgridGridInterface_0850_504 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventConnect/ActionEventConnect010.ets + + +@Component +struct ActionEventConnect010 { + private imageOne: Resource = $r('app.media.startIcon'); + @State src: Resource = this.imageOne + @State strname:string='' + build(){ + Column(){ + Image(this.src) + .id("ActionEventConnect010") + .width(100) + .height(100) + .onClick((e:ClickEvent) => { + this.strname = "onClick" + }) + Text(this.strname) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0040 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets + + +@Component +struct UIAttributesBackgroundInterface115 { + build() { + Column() { + Row() + .backgroundColor(Color.Grey) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0070 { + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:220,color:Color.Blue,offsetX:0,offsetY:0} as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:280,color:Color.Pink,offsetX:0,offsetY:0} as ShadowOptions) + } + .useShadowBatching(false) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0120.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0120 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0120_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0120_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0050.ets + + +@Component +struct UIActtonEventComdneventDracForeground0050 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "linear-out-slow-in", + delay: 300, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0050_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0050_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_442: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets new file mode 100644 index 000000000..a5d71e670 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets @@ -0,0 +1,386 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,GridLayoutOptions, + ForEach,Grid,GridItem,TextAlign,Margin,ColumnOptions +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + focusControl, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization142.ets + + +@Component +struct SubAceUIComponentCommonattrFocusoptimization142 { + @State isFocus: boolean = false; + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput() + .key('SubAceUIComponentCommonattrFocusoptimization142_key1') + .defaultFocus(true) + .onAppear(() => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_key1'); + }) + Button(`Button2 isFocus: 【 ${this.isFocus} 】`) + .key('SubAceUIComponentCommonattrFocusoptimization142_btn_key') + .width(300) + .height(60) + .fontSize(20) + .fontWeight(700) + .backgroundColor(Color.Pink) + .onFocus(() => { + this.isFocus = true; + }) + } + .id('SubAceUIComponentCommonattrFocusoptimization142_column') + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_btn_key'); + }) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.ets + + +@Component +struct UIAttributesColorRampAny0040 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .sweepGradient({ + center:[50,50], + start:0, + end:359, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets + + +@Component +struct UIAttributesBackgroundInterface0100 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0380.ets + + +@Component +struct ActionEventCommoneventDragdefault0380 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets + + +@Component +struct UIAttributesBackgroundInterface092 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 333 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur4.ets + +@Component +struct linearGradientBlur4 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackGrid/040.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackGrid040 { + @State numbers1: String[] = ['0', '1', '2', '3', '4'] as String[] + @State numbers2: String[] = ['0', '1','2','3','4','5'] as String[] + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[Double, Double, Double, Double] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string) => { + ForEach(this.numbers1, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('Use of GridLayoutOptions: onGetRectByIndex').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0240_486.ets + + +@Component +struct UIComponentListandgridGridInterface_0240_486 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(0) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_443: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets new file mode 100644 index 000000000..6a3f84b36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets @@ -0,0 +1,456 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Flex,Text,FlexWrap,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Flex,Toggle,FlexAlign,ItemAlign,ToggleType, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0500 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0360.ets + + +@Component +struct ActionEventControlCallback0360 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Toggle') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Toggle'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets + + +@Component +struct UIAttributesImageEffectProjection0150 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.None) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid003.ets + +@Component +struct UIComponentGrid03 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, true) + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.ets + + +@Component +struct UIAttributesModaltransitionVision0620 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface40.ets + + +@Component +struct AceActionEventCommoneventClickInterface40 { + @State text: string = 'y= '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface40') + .onClick((event: ClickEvent) => { + this.number1 = event.y; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0050.ets + + +@Component +struct ActionEventControlCallback0050 { + @State context: string = "" + build() { + Column(){ + Flex({ wrap: FlexWrap.Wrap }) { // 子组件多行布局 + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xD2B48C) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0050.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0050 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin -5px') + .focusBox({ + margin: LengthMetrics.px(-5), + }) + Button('button margin 内侧-5vp') + .focusBox({ + margin: LengthMetrics.vp(-5), + }) + Button('button margin 内侧-5fp') + .focusBox({ + margin: LengthMetrics.fp(-5), + }) + Button('button margin 内侧5') + .focusBox({ + margin: LengthMetrics.vp(5), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0260.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0260 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0210.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0210 { + @State uri: string = ""; + @State AblockArr: string[] = [] as string[]; + @State BblockArr: string[] = [] as string[]; + @State img: string = ''; + @State isHave: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.png') + .id('SubAceActionEventCommoneventDragCard0210_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.Image = new UDC.Image(); + data.imageUri = './cat.jpg'; + let unifiedData = new UDC.UnifiedData(data); + event.setData(unifiedData); + }) + } + Column({ space: 10 } as ColumnOptions) { + Text('可释放区域') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image(this.img) + .id('SubAceActionEventCommoneventDragCard0210_btn_1') + .width(100) + .height(100) + .border({ width: 1 }) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData: UDC.UnifiedData = (event as DragEvent).getData() as UDC.UnifiedData; + console.info('yxc =========1') + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.img = image.imageUri + console.info('yxc =========2' + this.img) + } else { + } + } + }) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0260.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0260 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 300 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX).fontSize(20) + Text('Y: '+this.itemY).fontSize(20) + Text('width: '+this.itemWidth).fontSize(20) + Text('height: '+this.itemHeight).fontSize(20) + Button('getItemRect').id('btn1').width(200).height(80) + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_444: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets new file mode 100644 index 000000000..d8b50c58d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets @@ -0,0 +1,376 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,Callback, + BarState,CaretOffset,TextInputController,TextInput, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, Text, Image } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Row, Margin, Grid, Edge, BarState, GridItem, Direction,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,TextAlign, + BarState,TapGesture,Margin,ListScroller,List,ListItem,ScrollSnapAlign, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0080.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0080 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + private listScroller: ListScroller = new ListScroller(); + @State flag: boolean = false; + build() { + Column() { + List({ space: 10, scroller: this.listScroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('item_' + item) + .width('100%') + .height(100) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFFFFF) + } + }, (item: number) => String(item)) + }.focusable(false) + .padding(10) + .backgroundColor(Color.Yellow) + .height(500) + .scrollSnapAlign(this.flag ? ScrollSnapAlign.CENTER : ScrollSnapAlign.START) + Row({ space: 20 } as RowOptions) { + Button('focusable false').focusable(false) + }.height('50%') + }.onClick((e: ClickEvent)=>{}) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.ets + + +@Component +struct UIAttributesModaltransitionVision0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_025.ets + +@Component +struct Grid_025 { + @State rowStart : number = 1 + @State rowEnd : number = 1 + @State columnStart : number = 1 + @State columnEnd : number = 1 + build() { + Column() { + Column() { + Text('rowStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowStart = 1; + }).id('rowStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowStart = 2; + }).id('rowStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.rowStart = 3; + }).id('rowStart3') + } + Text('rowEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowEnd = 1; + }).id('rowEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowEnd = 2; + }).id('rowEnd3') + Button("3") + .onClick((event:ClickEvent) => { + this.rowEnd = 3; + }).id('rowEnd5') + } + Text('columnStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnStart = 1; + }).id('columnStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnStart = 2; + }).id('columnStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnStart = 3; + }).id('columnStart3') + } + Text('columnEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnEnd = 1; + }).id('columnEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnEnd = 2; + }).id('columnEnd2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnEnd = 3; + }).id('columnEnd3') + } + }.height('40%') + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + }.rowStart(this.rowStart).rowEnd(this.rowEnd).columnStart(this.columnStart).columnEnd(this.columnEnd) // 同时设置合理的行列号 + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height("60%") + .border({width:1} as BorderOptions) + .direction(Direction.Ltr) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0370 { + @State count: string = "点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("手指点击") + .id("shouzhiButton") + .fontSize(30) + .onClick((e: ClickEvent) => { + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0190.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0190 { + @State text: string = '' + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + build() { + Column() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + .padding(30) + .height('100%') + .width('100%') + } + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentOnDisappear.ets + +@Component +struct ContentOnDisappear { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State num:number = 0 + @State num2:number = 0 + @State num3:number = 0 + @State num4:number = 0 + @State num5:number = 0 + @State num6:number = 0 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentOnDisappear5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Orange, onAppear: () => { + this.num3 = this.num + this.num3+=1 + console.log("BindContentCover onAppear2.") + }, + onDisappear: () => { + this.num4 = this.num2 + this.num4+=1 + console.log("BindContentCover onDisappear2.") + }} as SheetOptions) + Text('2 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('2 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Button("close modal 1").fontSize(11).id('ContentOnDisappear6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentOnDisappear7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => { + this.num+=1 + console.log("BindContentCover onAppear1.")}, onDisappear: () => { + this.num2+=1 + console.log("BindContentCover onDisappear1.")}} as SheetOptions) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('触发将被覆盖').fontSize(20) + .margin(10) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_445: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets new file mode 100644 index 000000000..6d0459a22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets @@ -0,0 +1,474 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { promptAction } from '@kit.ArkUI'; + +import { BusinessError } from '@ohos.base'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Color,Builder,PreDragStatus, + ColumnOptions,Text,Image,Row,DragResult, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + ImageFit, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry,Component,Column,Text,Button,ColumnOptions,Margin +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,Row,$r,Builder,ResourceStr,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0120.ets + + +@Component +struct UIAttributesFocuscontrolInterface0120 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + @Builder + tabBuilder(index: number, name: string) { + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + .defaultFocus(true) + } + Column({ space: 20 } as ColumnOptions) { + Row({ space: 5 } as RowOptions) { + Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { + TabContent() { + Column().width('100%').height('50%').backgroundColor('#00CB87') + }//.tabBar(this.tabBuilder(0, 'green')) + .tabBar(():void =>{this.tabBuilder(0, 'green')}) + .defaultFocus(true) + TabContent() { + Column().width('100%').height('50%').backgroundColor('#007DFF') + }//.tabBar(this.tabBuilder(1, 'blue')).id('focus') + .tabBar(():void =>{this.tabBuilder(1, 'blue')}) + .id('focus') + }.defaultFocus(false) + } + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouse/ActionEventCommonEventMouse0010.ets + + +@Component +struct ActionEventCommonEventMouse0010 { + @State hoverState: string = ''; + build() { + Column({ space: 30 } as ColumnOptions) { + Text(this.hoverState).height(80) + Button("Hover测试文本--0010") + .id("ActionEventCommonEventMouse0010_01") + .margin({ top: 80 } as Margin) + .fontSize(24) + .height(80) + .onHover((isHover:boolean):void=>{ + if (isHover) { + this.hoverState = "HoverTrue" + } + }) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0210 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0720.ets + + +@Component +struct ActionEventCommoneventDragdefault0720 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽红色文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .fontColor(this.txt_color) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Red; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .fontColor(Color.Red) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.ets + + +@Component +struct UIAttributesImageeffectInterface0380 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: "#0000FF" } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets + + +@Component +struct UIAttributesBackgroundInterface075 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "280px" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceUIDragEventReportRule/SubAceUIDragEventReportRule0010.ets + + +@Component +struct SubAceUIDragEventReportRule0010 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9,); + build() { + Column({ space: 5 } as ColumnOptions) { + List() { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Row({ space: 30 } as RowOptions) { + Button('Button' + item) + .width(100) + .height(100) + .border({ width: 1, radius: 25 }) + Text(`image item - ${item}`) + .fontColor(Color.White) + .fontSize(25) + .fontWeight(700) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .padding({ left: 30, top: 30 } as Padding) + .backgroundColor(Color.Pink) + } + }, (item: Double, index: Double) => String(item)) + } + .height('90%') + .draggable(true) + .id('SubAceUIDragEventReportRule0010_list') + } + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0070.ets + +@Component +struct ActionEventCommonEventDragListItem0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @State dragState: string = ''; + @State dragStateSuccess: string = ''; + @Builder + pixelMapBuilder() { + Column() { + Image('2.png') + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column({ space: 30 } as ColumnOptions) { + Text(`拖拽状态初始值: 未拖拽`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽过程中松手: ${this.dragState}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽到指定区域: ${this.dragStateSuccess}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Image('2.png') + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .visibility(this.imgState) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.backGroundColor = Color.Transparent; + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .id('DragListItem0070Image') + .onDragEnd((event: DragEvent, extraParams?: string):void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.dragStateSuccess = '拖拽成功'; + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.dragState = '拖拽失败'; + } + }) + .draggable(true) + Text(`1`).fontSize(1).id('text1').margin(40).id("DragListItem0070Text") + Column() { + Text(this.targetText) + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 }) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event as DragEvent), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.targetText = plainText.textContent; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } + } +} + + +export const FLAG_OF_FILE_446: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets new file mode 100644 index 000000000..676dff5f4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets @@ -0,0 +1,316 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,RowSplit,TextAlign,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets + + +@Component +struct UIComponentCommonattrForegroundEffect450 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0450_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0450_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0450_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + RowSplit() { + Text('1').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('25%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .resizeable(true) // 可拖动 + .width('100%') + .height(100) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0450_004') + .layoutWeight(1) + } + .width('100%') + .margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0010.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0010 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0010") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle1.ets + +@Component +struct TextBackgroundBlur { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('NONE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.NONE) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + Text('BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets + + +@Component +struct UIAttributesBackgroundInterface117 { + build() { + Column() { + Row() + .backgroundColor(Color.Pink) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0500.ets + + +@Component +struct ActionEventCommonEventMouseStyle0500 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0500_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0500" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0500_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_447: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets new file mode 100644 index 000000000..413216a24 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets @@ -0,0 +1,460 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle,ThemeColorMode,AdaptiveColor, + BlurStyleActivePolicy,ImageSize +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus,Margin,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0030.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0030 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor rgba') + .focusBox({ + strokeColor: ColorMetrics.rgba(192, 192, 192), + }) + Button('button strokeColor Green') + .focusBox({ + strokeColor: ColorMetrics.resourceColor(Color.Green), + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: ColorMetrics.resourceColor($r('app.media.startIcon')), + }) + Button('button strokeColor fc0303') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#fc0303'), + }) + Button('button strokeColor 0xff000000') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#ff000000'), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0090.ets + + +@Component +struct ActionEventCommoneventDragGriditem0090 { + @State numbers: String[] = ['0', "1", "2"] as String[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + } + Row() { + Column() { + Text('不支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text().fontSize(15).width('100%') + } + .id("img2") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + console.log("ondrop not udmf data"); + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + Column() { + Text('支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text(this.textContent).fontSize(15).width('100%') + } + .id("img3") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.textContent = plainText.textContent; + }) + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.ets + + +@Component +struct UIAttributesColorrampInterface0810 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:'90deg' + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.ets + + +@Component +struct UIAttributesColorrampInterface0530 { + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.colors= [["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Green, 1]] + } else { + this.btnShow = Visibility.Visible + this.colors= [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurAndEffectIndex.ets + +@Component +struct TextBackgroundBlurAndEffectIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Text('BackgroundEffect') + .fontSize(20) + .fontWeight(500) + .width('100%') + .backgroundColor('#DCDCDC') + .fontColor(Color.Blue) + .textAlign(TextAlign.Center) + .height(50) + .margin(5) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + Text('radius:100 ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + + +export const FLAG_OF_FILE_448: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets new file mode 100644 index 000000000..791466e4e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets @@ -0,0 +1,379 @@ +import image from '@ohos.multimedia.image' + +import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, + Grid,ForEach,ClickEvent,DragPreviewMode,Padding,DragPreviewOptions,DragInteractionOptions, + DragEvent,GridItem,CommonMethod, applyStyles, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,ResourceColor,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,Image,$r +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets + + +@Component +struct UIAttributesBackgroundInterface0070 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0060 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.ets + + +@Component +struct UIAttributesImageeffectInterface0220 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0110.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0110 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0280 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0160.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0160 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0130 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0320.ets + + +@Component +struct ActionEventCommoneventDragInterface0320 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets + + +@Component +struct UIAttributesColorrampInterface0100 { + @State colors:Array<[ResourceColor, number]> = [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] as Array<[ResourceColor, number]>; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: this.colors + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.colors= [[$r('app.media.startIcon'), 0.0], [Color.Yellow, 0.5]] + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur10.ets + +@Component +struct linearGradientBlur10 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.RightTop } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragScenarios/ActionEventCommoneventDragScenarios0070.ets + + +@Component +struct ActionEventCommoneventDragScenarios0070 { + @State pixmap: image.PixelMap|undefined = undefined + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] as number[] + @State colors: Color[] = + [Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Yellow, Color.Orange, Color.Pink, Color.Yellow, + Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Red, Color.Blue, Color.Brown, Color.Gray, + Color.Green] as Color[] + @State isSelectedItem: boolean[] = [] as boolean[] + @State previewData: DragItemInfo[] = [] as DragItemInfo[] + @State numberBadge: number = 0; + scroller: Scroller = new Scroller() + normalStyles(instance: CommonMethod): void { + instance.opacity(0.3) + } + selectStyles(instance: CommonMethod): void { + instance.opacity(1.0) + } + @Builder dragStartBuilder() { + Column() { + Text("builder dragStart") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Column() { + Grid(this.scroller) { + ForEach(this.arr, (item: number) => { + GridItem() { + Text('item ' + item) + .width('100%').height(100).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10) + } + .id(`${item}`) + .backgroundColor(this.colors[item]) + .draggable(true) + .selectable(true) + .selected(this.isSelectedItem[item]) + .stateStyles({ + normal: this.normalStyles, + selected: this.selectStyles + }) + .onClick((e:ClickEvent) => { + }) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO } as DragPreviewOptions, + { isMultiSelectionEnabled: true, defaultAnimationBeforeLifting: true } as DragInteractionOptions) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .dragPreview(():void => { + }) + }, (item: number,index:number) => item+'') + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('80%') + .height('80%') + } + .width('100%') + .height('100%') + .backgroundColor(0xDCDCDC) + .padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_449: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets new file mode 100644 index 000000000..dc61160cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets @@ -0,0 +1,394 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, + CustomDialogController,DialogAlignment,ClickEvent,CustomDialogControllerOptions,TranslateOptions, + PanDirection,PanGestureHandlerOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0630.ets + + +@Component +struct UIAttributesBackgroundInterface0630 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + end: 270, + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0110.ets + + +@Component +struct UIAttributesImageEffectProjection0110 { + build() { + Column() { + Text('Hello World') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .fontColor(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Column3.ets + +@Component +struct Column3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .cellLength(500) + .minCount(3) + .layoutDirection(GridDirection.Column) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0320.ets + + +@Component +struct UIAttributesBcakgroundSeriable0320 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.Y) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragWay/ActionEventCommoneventDragWay0020.ets + + +@Component +struct ActionEventCommoneventDragWay0020 { + @State info: string[] = [] as string[]; + @State offsetX: number = 0 + @State offsetY: number = 0 + @State positionX: number = 0 + @State positionY: number = 0 + private panOption: PanGestureOptions = new PanGestureOptions({ direction: PanDirection.Horizontal } as PanGestureHandlerOptions) + build() { + Column({ space: 5} as ColumnOptions) { + Button('0020') + .height("50") + .id('button') + .onClick((e: ClickEvent) => { + }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 } as TranslateOptions) + .gesture( + PanGesture(this.panOption) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX + this.offsetY = this.positionY + event.offsetY + } + }) + .onActionEnd(():void => { + this.positionX = this.offsetX + this.positionY = this.offsetY + }) + ) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightString.ets + +@Component +struct HightString { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightString1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height: '5000' , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightString2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button("transition '300fp'").fontSize(11).id('HightString3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: '300fp', dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close DEFAULT").fontSize(11).id('HightString4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition '300vp'").fontSize(11).id('HightString5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:'300vp' , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close NONE").fontSize(11).id('HightString6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightString7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:'900px' , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0570.ets + + +@Component +struct UIAttributesImageeffectInterface0570 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0320.ets + + +@Component +struct UIAttributesBackgroundInterface0320 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为60vp发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){} + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ["rgb(255, 200, 255)",1.0]], + radius: 60, + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0100857.ets + + +@Component +struct UIComponentListandgridXommonSmooth0100857 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0100857') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0100857_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0100857_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_45: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets new file mode 100644 index 000000000..c3fab0113 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets @@ -0,0 +1,355 @@ +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions,TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Grid,ForEach,GridItem, + Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0140 { + @State radiusValue: number = 0; + private data: string[] = ["1", "2", "3", "4"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur6.ets + +@Component +struct linearGradientBlur6 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 +build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.LeftBottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_011.ets + +@Component +struct Grid1 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为-5').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(-5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0100.ets + + +@Component +struct UIAttributesFocuscontrolInterface0100 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .groupDefaultFocus(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0190_620.ets + + +@Component +struct UIComponentListandgridGridInterface_0190_620 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Auto) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0330 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + + +export const FLAG_OF_FILE_450: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets new file mode 100644 index 000000000..c71a2084d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets @@ -0,0 +1,418 @@ +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + GridRow, + GridCol, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + DragPreviewMode +} from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,TextInput,TextInputController,Margin,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions, + AnimationStatus, + ResourceStr,$r,ImageAnimator,Margin,FillMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Toggle,ToggleType, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets + + +@Component +struct UIAttributesBackgroundInterface111 { + build() { + Column() { + Row() + .backgroundColor(Color.Blue) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0470.ets + + +@Component +struct ActionEventControlCallback0470 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Toggle({ type: ToggleType.Button, isOn: false }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row3.ets + +@Component +struct Row3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(3) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest8.ets + +@Component +struct ZIndexDynamicModificationTest8 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 4 //text的value: 'ABC设置zIndex: 3 2 1' + this.zIndexValueIndex = 3 //ABC设置zIndex: 3 2 1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.ets + + +@Component +struct UIAttributesImageeffectInvert0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0050.ets + + +@Component +struct UIAttributesFocuscontrolInterface0050 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 } as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + .focusable(true) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + .focusable(true) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + .focusable(true) + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0150.ets + + +@Component +struct UIAttributesFocuscontrolInterface0150 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + Button('one button ').groupDefaultFocus(true) + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 }as SearchOptions) + .searchButton('SEARCH') + .groupDefaultFocus(true) + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + .tabIndex(1) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0080.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0080 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Button('Button') + .id('SubAceActionEventCommoneventDragImprove0080_btn') + .width('100%') + .height('100%') + .backgroundColor(Color.Pink) + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0080_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_451: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets new file mode 100644 index 000000000..c3be64566 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets @@ -0,0 +1,455 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Color, + FlexDirection, + ItemAlign, + Entry, + Text, + Image, + Component, + Flex, + Padding, + ListItem, + ClickEvent, + Scroller, + ObscuredReasons, + ScrollAlign, + Column, + List, + Button, + ForEach, + Axis, + BarState, + EdgeEffect +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.ets + + +@Component +struct UIAttributesRenderFit0020 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets + + +@Component +struct UIComponentMediaImageMask0120 { + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6); + private scroller: Scroller = new Scroller(); + build() { + Column() { + List({ space: 20, initialIndex: 0, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { + Text('item is ' + item) + Image('icon.png') + .width(100) + .height(150) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + } + }, (item: Double, index: Double) => item + '') + } + .listDirection(Axis.Vertical) // 排列方向 + .scrollBar(BarState.Off) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: 0xFFFFFF, + startMargin: 20, + endMargin: 20 + }) // 每行之间的分界线 + .edgeEffect(EdgeEffect.Spring) // 边缘效果设置为Spring + .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => { + console.info('first' + firstIndex) + console.info('last' + lastIndex) + console.info('center' + centerIndex) + }) + .width('90%') + .height('60%') + Button('scroll Bottom') + .onClick((e: ClickEvent) => { + this.scroller.scrollToIndex(ScrollAlign.END); + }).id('mask0120_button_01').margin(10) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.ets + + +@Component +struct UIAttributesModaltransitionVision0390 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0190.ets + + +@Component +struct UIAttributesBcakgroundSeriable0190 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.ets + + +@Component +struct UIAttributesModaltransitionVision0570 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface80.ets + + +@Component +struct AceActionEventCommoneventClickInterface80 { + @State btn_width:string = '' + @State btn_height:string = '' + @State position_x:string | undefined = '' + @State position_y:string | undefined = '' + @State g_position_x:string | undefined = '' + @State g_position_y:string | undefined = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Button('点击') + .fontSize(20) + .width(100) + .height(60) + .id('btn') + .onClick((event:ClickEvent) => { + this.btn_width = event.target.area.width.toString() + this.btn_height = event.target.area.height.toString() + this.position_x = event.target.area.position.x?.toString() + this.position_y = event.target.area.position.y?.toString() + this.g_position_x = event.target.area.globalPosition.x?.toString() + this.g_position_y = event.target.area.globalPosition.y?.toString() + }) + Text('宽:'+this.btn_width).fontSize(20).margin({top:10} as Margin) + Text('高:'+this.btn_height).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移x:'+this.position_x).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移y:'+this.position_y).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移x:'+this.g_position_x).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移y:'+this.g_position_y).fontSize(20).margin({top:10} as Margin) + } + .width(300) + .height(400) + .border({width: 1}) + .margin(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.ets + + +@Component +struct UIAttributesModaltransitionVision0270 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.ets + + +@Component +struct UIAttributesColorRampBlurGradient0180 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(-10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0290.ets + + + +@Component +struct ActionEventCommonEventMouseStyle0290 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_OPEN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0290_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0290" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0290_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_452: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets new file mode 100644 index 000000000..5963404d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets @@ -0,0 +1,352 @@ +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,ColumnOptions,Flex,FlexDirection,FlexAlign,ItemAlign, + Radio,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur3.ets + +@Component +struct linearGradientBlur3 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0010 { + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.ets + + +@Component +struct UIAttributesImageEffectProjection0020 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.ets + + +@Component +struct UIAttributesColorrampInterface0790 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0030.ets + + +@Component +struct ActionEventCommoneventDragGriditem0030 { + @State numbers: String[] = ['0', "1", "2"] as string[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0330.ets + + +@Component +struct ActionEventControlCallback0330 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio1') + Radio({ value: 'Radio1', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + } + Column() { + Text('Radio2') + Radio({ value: 'Radio2', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .id('Radio') + .onChange((value: boolean):void => { + let strJson: string = inspector.getInspectorByKey('Radio'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Column() { + Text('Radio3') + Radio({ value: 'Radio3', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean):void => { + console.log('Radio3 status is ' + isChecked) + }) + } + } + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0040.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0040 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor null') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor abcd') + .focusBox({ + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0040.ets + + +@Component +struct ActionGestureRegister0040 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0240.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0240 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_453: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets new file mode 100644 index 000000000..dd7021ca8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets @@ -0,0 +1,397 @@ +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,GradientDirection,FlexAlign,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,Video,TextAlign,HorizontalAlign,ScrollDirection, + VideoController, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.ets + + +@Component +struct UIAttributesImageeffectInterface0430 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: $r('app.media.startIcon'), + offsetY: $r('app.media.startIcon') + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0590 { + @State radiusValue: number = 0; + controller: VideoController = new VideoController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0240816.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0240816 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0240816_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(3); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0240816_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .enableScrollInteraction(false) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.ets + + +@Component +struct UIAttributesModaltransitionAvoid0010 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 50; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[450, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent+.ets + +@Component +struct Percent_zheng { + build() { + Column() { + Text('扩展尺寸: 20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '20%', bottom: '20%', right: '20%', left: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0160 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0160_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0160_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.ets + + +@Component +struct UIAttributesColorrampDfx0010 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.ets + + +@Component +struct UIAttributesColorrampInterface0750 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.ets + + +@Component +struct UIAttributesOutlineColor0010 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(0xFFFF4777) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.ets + + +@Component +struct UIAttributesImageEffectProjection0220 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_454: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets new file mode 100644 index 000000000..45aeb14f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets @@ -0,0 +1,407 @@ +import { + Entry, + Component, + Text, + Column, + Color, + Builder, + RelativeContainer, + Image, + $r +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0080_215.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0080_215 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets + + +@Component +struct UIAttributesImageEffectProjection0160 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Hidden) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_label.ets + +@Component +struct ButtonLabel { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: -3, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: $r('app.media.startIcon'), + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: '20', + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 12, + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: -9, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 8, + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.ets + + +@Component +struct UIAttributesGraphictransformationInterface0270 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('translate,设置参数{x:40,y:30}') + .width(100) + .translate({x:40,y:30} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0070.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0070 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: undefined + }) + }).id('ScrollScrollbarScrolledge0070_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0120290.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0120290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0120290'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0010 { + @Builder BackgroundBuilder() { + RelativeContainer(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.width(400).height(400).backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + + +export const FLAG_OF_FILE_455: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets new file mode 100644 index 000000000..cb79fc0f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets @@ -0,0 +1,406 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + BorderStyle, + GestureGroup, + BorderOptions, + PanGesture, + LongPressGesture, + GestureMode +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,$r,Image,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color,ScaleOptions,TranslateOptions,RotateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.ets + + +@Component +struct UIAttributesImageEffectProjection0250 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0040 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + @State translateX: number = 0; + @State translateY: number = 0; + @State scaleX: number = 1; + @State scaleY: number = 1; + @State rotateAngle: number = 0; + build() { + Column() { + Column() { + } + .scale({ x: this.scaleX, y: this.scaleY} as ScaleOptions) + .translate({ x: this.translateX, y: this.translateY} as TranslateOptions) + .rotate({ angle: this.rotateAngle} as RotateOptions) + .height(50) + .width(50) + .backgroundColor('red') + Button('scale') + .id('UIAttributesGraphicTransformationSkew0040_001') + .margin({ top: 50 } as Margin) + .onClick((e:ClickEvent) => { + this.scaleX = 2; + this.scaleY = 2; + }) + Button('translate') + .id('UIAttributesGraphicTransformationSkew0040_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.translateX = -50; + this.translateY = -50; + }) + Button('rotate') + .id('UIAttributesGraphicTransformationSkew0040_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.rotateAngle = 45; + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0430.ets + + +@Component +struct ActionEventCommoneventDragInterface0430 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height(250) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes290.ets + + +@Component +struct UIAttributesTouchableInteraction290 { + @State value: string = ''; + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Column() { + Text('Click ') + .fontSize(28) + .id('UIAttributesTouchableInteraction290') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Parallel, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++ + } + this.value = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + this.value += 'PanGesture onAction'; + }) + ) + .onCancel(() => { + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets + + +@Component +struct UIAttributesBackgroundInterface1420 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Bottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0460_322.ets + + +@Component +struct UIComponentListandgridGridInterface_0460_322 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth('90%') + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets + + +@Component +struct UIAttributesImageEffectProjection0120 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0.5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0060 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(500) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0300.ets + + +@Component +struct ActionEventCommoneventDragdefault0300 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_456: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets new file mode 100644 index 000000000..83cba00ae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets @@ -0,0 +1,406 @@ +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Stack,Alignment,TransitionEffect,Image,animateTo,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DrawableDescriptor,ImageContent,Resource,Position,Flex,FlexDirection,ItemAlign,FlexAlign,Grid,GridItem +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentSnapshotAttribute/UIComponentSnapshotAttribute0990.ets + + +@Component +struct UIComponentSnapshotAttribute0990 { + @State positionX: number = 20 + @State positionY: number = 20 + @State value: string = ''; + build() { + Column() { + Button("组件") + .id("Button_001") + .position({ x: this.positionX, y: this.positionY } as Position) + Text(this.value) + .width("95%") + .height(200) + .borderWidth(2) + Grid() { + GridItem() { + Button("windowoffset设置x为负数").onClick((event:ClickEvent) => { + this.positionX = -40 + }) + .id("UIComponentSnapshotAttribute0990_001") + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/SystemBarEffectIndex.ets + +@Component +struct systemBarEffectIndex { + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .width(150).height(10) + .systemBarEffect() + .border({radius:5}) + .margin({bottom:80} as Margin) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_017.ets + +@Component +struct Grid07 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置grid大小300*150,griditem大小90*40。 maxCount设置为-2').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .layoutDirection(GridDirection.Row) + .rowsGap(10) + .friction(0.6) + .minCount(3) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .maxCount(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0030.ets + + +@Component +struct UIActtonEventComdneventDracForeground0030 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + }as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0030_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0030_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0400.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0400 { + @State isShow: boolean = false + build() { + Stack({ alignContent: Alignment.Center }) { + if (this.isShow) { + Image('icon.png') + .autoResize(false) + .clip(true) + .width(300) + .height(400) + .offset({ y: 100 } as Position) + .geometryTransition("picture", { follow: false }) + .transition(TransitionEffect.OPACITY) + } else { + Column() { + Column() { + Image('2.png') + .width('100%').height('100%') + }.width('100%').height('100%') + } + .width(80) + .height(80) + .borderRadius(20) + .clip(true) + .geometryTransition("picture") + .transition(TransitionEffect.OPACITY) + } + } + .renderFit(RenderFit.TOP_LEFT) + .id('stackId') + .onClick((e:ClickEvent) => { + animateTo({ duration: 1000 }, ():void => { + this.isShow = !this.isShow + }) + }) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic9.ets + +@Component +struct buttonDynamicExample9 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button9') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0020 { + @State isbgcColor:boolean = false + @State isClick:boolean = false + @State opacity1:number = 1.0 + onButtonClick(){ + this.opacity1 = 0.5 + this.isClick = true + this.isbgcColor = true + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .blendMode(BlendMode.SRC_IN) + .margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .opacity(this.opacity1) + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_457: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets new file mode 100644 index 000000000..eab6a91a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets @@ -0,0 +1,388 @@ +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Image, + Builder, + Menu +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemGroup,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets + + +@Component +struct UIAttributesBackgroundInterface0570 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "0.5trun", + end: "1turn", + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.ets + + +@Component +struct UIAttributesColorRampBlurGradient0120 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0280 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0240 { + @State message: string = 'Hello' + @Builder privateBuilder() { + Menu().overlay((): void => {this.privateBuilderTwo()}).height(600).width("100%").margin({ top: 100 } as Margin) + } + @Builder privateBuilderTwo() { + Image("2.png").height(300).margin({ top: 100 } as Margin) + } + build() { + Row() { + Column() {} + .width('100%') + .height('100%') + .backgroundColor(Color.Green) + }.overlay((): void => {this.privateBuilder()}) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.ets + + +@Component +struct UIAttributesModaltransitionAnimator0040 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0540.ets + + +@Component +struct ActionEventCommonEventMouseStyle0540 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RUNNING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0540_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0540" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0540_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0490 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.ets + + +@Component +struct UIAttributesModaltransitionVision0320 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_458: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets new file mode 100644 index 000000000..50f939c33 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets @@ -0,0 +1,447 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + Padding, + ColumnOptions, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.ets + + +@Component +struct UIAttributesModaltransitionVision0360 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 420, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0300.ets + + +@Component +struct ActionEventCommonEventMouseStyle0300 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_POINTING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0300_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0300" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0300_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.ets + + +@Component +struct UIAttributesColorrampInterface0510{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[50,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragListItem/CommonEventDragListItem0080.ets + + +@Component +struct CommonEventDragListItem0080 { + @State status: string = ''; + @State arr: Array = new Array(0, 1, 2, 3, 4, 5) + build() { + Column({ space: 5 } as ColumnOptions) { + List({ space: 20, initialIndex: 0 }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('' + item) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + } + }, (item: Double, index: Double) => item + '') + } + .width('90%') + .height('70%') + .scrollBar(BarState.Off) + .id('view-1') + .dragPreviewOptions({}, { isMultiSelectionEnabled: true }) + .onDragStart((event: DragEvent, extraParams?: string): (() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + Text('拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.ets + + +@Component +struct UIAttributesColorrampInterface0490 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0070.ets + + +@Component +struct ActionEventCommoneventDragImage0070 { + @State uri: string = "" + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop(null) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let img = arr[0] as unifiedDataChannel.Image; + this.uri = img.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_005.ets + +@Component +struct onlyColumnMaxCount { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State maxCountValue: number = 8 + onPageShow() { + console.info('onlyColumnMaxCount onPageShow') + this.maxCountValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .maxCount(this.maxCountValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_459: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets new file mode 100644 index 000000000..8bb9384ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets @@ -0,0 +1,415 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Navigation,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Radio,RadioIndicatorType +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import prompt from '@system.prompt'; + +import { LengthMetrics, LengthUnit } from '@ohos.arkui.node' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Row,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Visibility,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,FlexAlign, + ScrollDirection,Button,ClickEvent,Stack,Text, + DataPanel,Color,DataPanelType,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0420.ets + + +@Component +struct UIAttributesImageeffectInterface0420 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: 50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0100.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0100 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }).width(168).height(168) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Stack() { + DataPanel({ values: [30], max: 100, type: DataPanelType.Circle }) + .width(168) + .height(168) + .foregroundEffect({ radius: this.radiusValue }) + Column() { + Text('30').fontSize(35).fontColor(Color.Black) + Text('1.0.0').fontSize(9.33).lineHeight(12.83).fontWeight(500).opacity(0.6) + } + Text('%') + .fontSize(9.33) + .lineHeight(12.83) + .fontWeight(500) + .opacity(0.6) + .position({ x: 104.42, y: 78.17 } as Position) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0040.ets + + +@Component +struct UIComponentPreventdefault0040 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0040") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0120.ets + + +@Component +struct UIAttributesImageeffectInterface0120 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_034.ets + +@Component +struct columnsTemplate1 { + @State Number: Array = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10') + scroller1: Scroller = new Scroller() + @State columnsGap: number = 10 + @State rowsGap: number = 10 + @State Visibility:Visibility=Visibility.Visible + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + GridItem(){ + Text('TopItem') + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + .visibility(this.Visibility) + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr') + .columnsGap(this.columnsGap) + .rowsGap(this.rowsGap) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .border({width:1} as BorderOptions) + .clip(true) + .cachedCount(2) + Row(){ + Button('Hidden') + .id('Hidden') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Hidden + }) + Button('Visible') + .id('Visible') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.Visible + }) + Button('None') + .id('None') + .height(20) + .onClick((event: ClickEvent) => { + this.Visibility = Visibility.None + }) + } + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0500.ets + + +@Component +struct UIAttributesImageeffectInterface0500 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .saturate(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0160.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0160 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0400.ets + + +@Component +struct ActionEventControlCallback0400 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Radio({ value: 'Radio1', group: 'radioGroup', + indicatorType:RadioIndicatorType.TICK + }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0010.ets + + +@Component +struct ActionEventCommonEventMouseStyle0010 { + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput({ text: "TextInput1" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_01") + .type(InputType.Password) + TextInput({ text: "TextInput2" } as TextInputOptions) + .id("ActionEventCommonEventMouseStyle0010_02") + .type(InputType.Password) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.HAND_POINTING); + } else { + cursorControl.restoreDefault(); + } + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0310.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0310 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_46: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets new file mode 100644 index 000000000..00504a95b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets @@ -0,0 +1,405 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Resource, + Menu, + MenuItemOptions, + $r, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + PatternLock,HorizontalAlign,ScrollDirection,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, ClickEvent, GestureEvent, Margin, RotationGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.ets + + +@Component +struct UIAttributesModaltransitionVision0630 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0410 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent): void => { + this.angle=this.angle+60 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.ets + + +@Component +struct UIAttributesModaltransitionInteration0070 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.ets + + +@Component +struct UIComponentCommonattrGrayscale0130 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [48, 58] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0350 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + PatternLock() + .sideLength(200) + .autoReset(true) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectIndex.ets + +@Component +struct TextBackgroundBlurStyle1 { + build() { + Column() { + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.5') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.5) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为-1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(-1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.2) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(2) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0130.ets + + +@Component +struct UIComponentBackgroundimage0130 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton155.ets + + +class Tmp155 { + iconStr2: ResourceStr = $r('app.media.startIcon') + set(val: Resource) { + this.iconStr2 = val + } +} +@Component +struct UlComponentCommonattrlfocusoptimizatton155 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_155_2') + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_155_1') + .bindMenu(this.MyMenu) + } +} + + +export const FLAG_OF_FILE_460: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets new file mode 100644 index 000000000..509642a4f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets @@ -0,0 +1,363 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Column, + Component, + Color, + Scroll, + Row, + FlexAlign, + TextAlign, + OutlineStyle, + Dimension, + EdgeColors +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Color,$r,Margin,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Row,Alignment,Color,Stack, + Position,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TabsController,Tabs,Text,TabContent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0370.ets + + +@Component +struct ActionEventControlCallback0370 { + @State context: string = "hello" + @State index: number = 2 + private controller1: TabsController = new TabsController() + build() { + Column() { + Text(this.context) + Tabs({ controller: this.controller1 }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + } + .tabBar('pink') + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar('yellow') + } + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id = JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type = JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + .height('80%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton150.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton150 { + build() { + Column() { + Button("支持自定义内容弹出框") + .id('UlComponentCommonattrlfocusoptimizatton_150_1') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @Builder + buildContent(): void { + Column() { + TextInput({ placeholder: 'input ...' }) + Button('count is odd').fontSize(30).height(50).margin({ top: 20 } as Margin) + TextArea({ + placeholder: 'The text area can hold an unlimited amount of text. input your word...', + }) + .placeholderFont({ size: 16, weight: 400 }) + .width(336) + .height(56) + .margin(20) + .fontSize(16) + .fontColor('#182431') + .backgroundColor('#FFFFFF') + Search({ placeholder: 'Type to search...', }) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0080.ets + + +@Component +struct ActionEventCommonEventMouseStyle0080 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Row() + .id("ActionEventCommonEventMouseStyle0080_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + Row() + .id("ActionEventCommonEventMouseStyle0080_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0290.ets + + +@Component +struct ActionEventCommoneventDragImage0290 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image($r('app.media.startIcon')) + .id("img1") + .border({ color: Color.Black, width: 1 }) + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{}) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image(this.targetImage) + .id("img2") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event1: DragEvent) => { + event1.useCustomDropAnimation = true; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/RowOutlineColorIndex.ets + +@Component +struct RowOutlineColorIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Row() { + Text('验证组件的外描边颜色outlineColor取值类型为EdgeColors时').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15 as Dimension) + .outlineColor({left:0xFFff4777, right:0xFFff4777, top:0xFFff4777, bottom:0xFFff4777} as EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets + + +@Component +struct UIAttributesBackgroundInterface0180 { + build() { + Column() { + Row() { + Text("BACKGROUND_THIN") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0120.ets + + +@Component +struct UIAttributesBcakgroundSeriable0120 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 50 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:50}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_461: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets new file mode 100644 index 000000000..bd2a07bbc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets @@ -0,0 +1,409 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,BorderStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ClickEvent,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,Row,$r,DragBehavior, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0190.ets + + +@Component +struct ActionEventCommoneventDragImage0190 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.MOVE + event?.setResult(DragResult.DROP_ENABLED) + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data1: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data1); + img.imageUri = 'app.media.img2'; + let data2: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data2); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0060.ets + + +@Component +struct ActionEventCommonEventMouseStyle0060 { + build() { + Column({ space: 50 } as ColumnOptions) { + Button("Button1") + .id("ActionEventCommonEventMouseStyle0060_01") + .onClick((e:ClickEvent) => { + cursorControl.setCursor(pointer.PointerStyle.SCREENSHOT_CHOOSE); + }) + Button("Button2") + .id("ActionEventCommonEventMouseStyle0060_02") + .onClick((e:ClickEvent) => { + cursorControl.restoreDefault(); + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.ets + + +@Component +struct UIAttributesModaltransitionVision0100 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:['50%', SheetSize.FIT_CONTENT, SheetSize.LARGE] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets + + +@Component +struct UIAttributesBackgroundInterface0660 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Bottom) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0520.ets + + +@Component +struct ActionEventCommoneventDragdefault0520 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_007.ets + +@Component +struct onlyColumnRowsGap { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State rowsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnRowsGap onPageShow') + this.rowsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .rowsGap(this.rowsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button02.ets + + +@Component +struct Button02 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button02_0020') + .id('Button02_0020') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.obj = inspector.getInspectorTree(); + this.text = String(this.obj); + }) + Row() { + Text(this.text) + .id('Button02_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0060 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + .border({width:2.5,color:Color.Blue,style:BorderStyle.Solid}) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0090.ets + + +@Builder +function builder10090(text: string) { + builder20090(text) +} +@Builder +function builder20090(text: string) { + Text(text) + .fontSize(50) +} +@Component +struct SubAceActionWindowWindowCustom0090 { + @State statel: string = 'text1'; + @Builder + builder3(text: string) { + builder20090(text) + this.builder4(text) + } + @Builder + builder4(text: string) { + Text(text).fontSize(50) + } + build() { + Column() { + builder10090(this.statel) + this.builder3(this.statel) + } + } +} + + +export const FLAG_OF_FILE_462: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets new file mode 100644 index 000000000..f13c4cdb5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets @@ -0,0 +1,390 @@ +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Button,ClickEvent,FlexAlign,Margin,Stack,Alignment,List,ForEach, + ListItem,Text,TextAlign,ListOptions,AlphabetIndexer,FontWeight,IndexerAlign,BlurStyle,Color,Stack, + FontStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0110.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0110 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("small black focus box") + .enabled(false) + .focusBox({ + margin: new LengthMetrics(0), + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0130 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.5 }) + .id('UIAttributesClivkreboundeffectInterface0130_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes50.ets + + +@Component +struct UIAttributesTouchableInteraction50 { + @State rotateAngle: number = 0; + @State speed: number = 1; + build() { + Column() { + Text("SwipeGesture speed\n" + this.speed) + .border({ width: 3 } as BorderOptions) + .width(300) + .height(200) + .margin(100) + .rotate({ angle: this.rotateAngle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction50') + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent) => { + if (event) { + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets + + +@Component +struct UIAttributesBackgroundInterface122 { + build() { + Column() { + Row() + .backgroundColor(0x0000ff) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.ets + + +@Component +struct UIAttributesImageeffectInterface0150 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(0.0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0270.ets + + +@Component +struct UIAttributesBcakgroundSeriable0270 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0010 { + private arrayA: string[] = ['安'] as string[] // A + private arrayB: string[] = ['卜', '白', '包', '毕', '丙'] as string[] // B + private arrayC: string[] = ['曹', '成', '陈', '催'] as string[] // C + private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'] as string[] // L + private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G', + 'H', 'I', 'J', 'K', 'L', 'M', 'N', + 'O', 'P', 'Q', 'R', 'S', 'T', 'U', + 'V', 'W', 'X', 'Y', 'Z'] + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0010_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0010_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0010_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Stack({ alignContent: Alignment.Start }) { + Row() { + List({ space: 20, initialIndex: 0 } as ListOptions) { + ForEach(this.arrayA, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayB, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayC, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayL, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .width('50%') + .height('100%') + AlphabetIndexer({ arrayValue: this.value, selected: 0 }) + .autoCollapse(false) + .selectedColor(0xFFFFFF)// 选中项文本颜色 + .popupColor(0xFFFAF0)// 弹出框文本颜色 + .selectedBackgroundColor(0xCCCCCC)// 选中项背景颜色 + .popupBackground(0xD2B48C)// 弹出框背景颜色 + .usingPopup(true)// 是否显示弹出框 + .selectedFont({ size: 16, weight: FontWeight.Bolder })// 选中项字体样式 + .popupFont({ size: 30, weight: FontWeight.Bolder })// 弹出框内容的字体样式 + .itemSize(28)// 每一项的尺寸大小 + .alignStyle(IndexerAlign.Left)// 弹出框在索引条右侧弹出 + .popupItemBorderRadius(24)// 设置提示弹窗索引项背板圆角半径 + .itemBorderRadius(14)// 设置索引项背板圆角半径 + .popupBackgroundBlurStyle(BlurStyle.NONE)// 设置提示弹窗的背景模糊材质 + .popupTitleBackground(0xCCCCCC)// 设置提示弹窗首个索引项背板颜色 + .popupSelectedColor(0x00FF00) + .popupUnselectedColor(0x0000FF) + .popupItemFont({ size: 30, style: FontStyle.Normal }) + .popupItemBackgroundColor(0xCCCCCC) + .onSelect((index: number):void => { + console.info(this.value[index] + ' Selected!') + }) + .onRequestPopupData((index: number):string[] => { + if (this.value[index] == 'A') { + return this.arrayA // 当选中A时,弹出框里面的提示文本列表显示A对应的列表arrayA,选中B、C、L时也同样 + } else if (this.value[index] == 'B') { + return this.arrayB + } else if (this.value[index] == 'C') { + return this.arrayC + } else if (this.value[index] == 'L') { + return this.arrayL + } else { + return [] as string[] // 选中其余子母项时,提示文本列表为空 + } + }) + .onPopupSelect((index: number):void => { + console.info('onPopupSelected:' + index) + }) + .backgroundColor(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + .width('100%') + .height('100%') + } + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0040 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin).position({x:50,y:50} as Position) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0030.ets + + +@Component +struct ActionEventCommoneventDragText0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .draggable(true) + .fontSize(30) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_463: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets new file mode 100644 index 000000000..defcc6f6e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets @@ -0,0 +1,427 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, ImageSize } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Column, + Component, + FlexAlign, + TextAlign, + Scroll, + Divider, + Color, + OutlineStyle, + Dimension, + ResourceColor, + EdgeColors, + EdgeOutlineWidths, + OutlineRadiuses, + EdgeOutlineStyles +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack,$r, + BlendApplyType +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.ets + + +@Component +struct UIAttributesModaltransitionAvoid0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 5; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType3.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Image($r('app.media.startIcon')) + .width(300).height(200) + Image($r('app.media.startIcon')) + .width(300).height(200) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/OutlinePropertiesIndex.ets + +@Component +struct OutlinePropertiesIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('使用EdgeColors的方式设置各边的边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(15 as Dimension) + .outlineColor({ left: '#e3bbbb', right: Color.Blue, top: Color.Red, bottom: Color.Green } as ResourceColor | EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用EdgeOutlineWidths的方式设置各边的边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth({top: 4,right: 0,bottom: -1,left: 1} as EdgeOutlineWidths) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlineradius的方式设置每一边边框的圆角').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .outlineRadius({topLeft:16, topRight:0, bottomLeft:-1, bottomRight:1} as OutlineRadiuses) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlinestyle的方式设置每一边边框的样式').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle({ + top:OutlineStyle.DASHED, + right:OutlineStyle.DOTTED, + bottom:OutlineStyle.SOLID, + left:OutlineStyle.DASHED + } as EdgeOutlineStyles) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineColor的方式设置边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineWidth的方式设置边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets + + +@Component +struct UiAttributesFloatingLayerInterface0110 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.BottomStart}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur13.ets + +@Component +struct linearGradientBlur13 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets + + +@Component +struct UIAttributesBackgroundInterface094 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Auto) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0340.ets + + +@Component +struct ActionEventCommoneventDragdefault0340 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ right: 150 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets + + +@Component +struct UIAttributesBackgroundInterface0060 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.ets + + +@Component +struct UIAttributesColorRampBlurGradient0060 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.6,0.6],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.ets + + +@Component +struct UIAttributesColorrampInterface0540 { + @State centerX: number = 0; + @State radius:string='20%' + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: this.radius, + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.radius='50%' + this.btnShow = Visibility.None + } else { + this.radius='50%' + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_464: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets new file mode 100644 index 000000000..75804da90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets @@ -0,0 +1,443 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Color,DragItemInfo,Button,Row,DragEvent,Builder,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ClickEvent,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0170 { + build() { + Row() { + Column() { + Button('Button-MIDDLE') + .width(106) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.2 }) + .id('UIAttributesClivkreboundeffectInterface0170_001') + Button('Button-LIGHT') + .width(106) + .margin(20) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.1 }) + .id('UIAttributesClivkreboundeffectInterface0170_002') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0230.ets + + +@Component +struct UIAttributesFocuscontrolInterface0230 { + @State focusOnTouchValue: boolean = false + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0230_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets + + +@Component +struct UIAttributesBackgroundInterface0030 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragPreview/ActionEventCommoneventDragPreview0010.ets + + +@Component +struct UIActionEventCommonEventDragPreview0010{ + @State pixmap: image.PixelMap | undefined = undefined + @Builder + DraggingBuilder() { + Column() { + Text("DraggingBuilder") + .fontColor(Color.White) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + @State dragItemInfo: DragItemInfo = { + pixelMap: this.pixmap, + builder: () => { + this.DraggingBuilder() + }, + extraInfo: "DragItemInfoTest" + } as DragItemInfo + build() { + Row() { + Column() { + Button('拖拽') + .id("dragButton") + .width("30%") + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .dragPreview(this.dragItemInfo) + } + .width("100%") + } + .height("100%") + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0180 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0180_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0180_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0470 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0170.ets + + +@Component +struct ActionEventCommonEventMouseStyle0170 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0170_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0170" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0170_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0780.ets + + +@Component +struct ActionEventCommoneventDragdefault0780 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '第一行可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Column(){ + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Text('第二行文本').fontSize(20) + Text('第三行文本').fontSize(20) + } + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_465: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets new file mode 100644 index 000000000..ad99703d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets @@ -0,0 +1,360 @@ +import { Entry, Component, Row, Column, Color, Builder, Button, SwipeGesture, PanGesture, GestureEvent, Image, Text } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0120.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + this.text + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0080 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Pink :Color.White).margin({left:50,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets + + +@Component +struct UIAttributesBackgroundInterface0190 { + build() { + Column() { + Row() { + Text("BACKGROUND_ULTRA_THICK") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0250.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0250 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0140.ets + + +@Component +struct UIAttributesBcakgroundSeriable0140 { + @State top: number = 150 + @State bottom: number = 30 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.ets + + +@Component +struct UIAttributesModaltransitionAnimator0070 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.ets + + +@Component +struct UIAttributesModaltransitionSafearea0090 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0160 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0310 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("overlayButton") + .fontSize(28) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500); + Text("测试").fontSize(1).id("ceshitext") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + + +export const FLAG_OF_FILE_466: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets new file mode 100644 index 000000000..c7a40254f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets @@ -0,0 +1,475 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + UnifiedData,UniformDataType, + List, + CustomBuilder, + ForEach, + ListItem, + Image, + DragItemInfo, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Button,cursorControl,Text, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + DatePicker,FlexAlign,HorizontalAlign,Margin,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding, +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0020.ets + + +@Component +struct UIComponentPreventdefault0020 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0020") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.ets + + +@Component +struct UIAttributesColorrampInterface0730 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0110 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + .margin({ top: 60 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.ets + + +@Component +struct UIAttributesColorrampInterface0280 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Button') + .width(400) + .height(60) + .linearGradient({ + colors:[[0x0000ff,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.ets + + +@Component +struct UIAttributesImageeffectInterface0320 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.ets + + +@Component +struct UIAttributesRenderFit0070 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0160.ets + + +@Component +struct ActionEventCommonEventMouseStyle0160 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0160_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0160" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0160_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.ets + + +@Component +struct UIAttributesColorrampInterface0370 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[-10,10], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:60 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes110.ets + + +@Component +struct UIAttributesTouchableInteraction110 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction110') + .onDragMove((): void => { + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number): void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction110_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_467: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets new file mode 100644 index 000000000..c49f65dea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets @@ -0,0 +1,376 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Slider,Text,SliderStyle,SliderChangeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback, ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.ets + + +@Component +struct UIAttributesImageeffectInterface0290 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.ets + + +@Component +struct UIAttributesColorrampInterface0260 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),-0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets + + +@Component +struct UIAttributesImageEffectProjection0080 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .sweepGradient({center: [100, 100], start: 0, end: 300, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0160.ets + + +@Component +struct UIComponentBackgroundimage0160 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightNumber.ets + +@Component +struct HightNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height:SheetSize.MEDIUM , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightNumber2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button(" height5000").fontSize(11).id('HightNumber3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: 5000, dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + }) + Button("close DEFAULT").fontSize(11).id('HightNumber4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightNumber5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:300 , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + Button("close NONE").fontSize(11).id('HightNumber6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightNumber7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:500 , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0310603.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0310603 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0310603_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0310603_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index: number) => { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index: number) => day) + }, (day: string, index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0510 { + @State radius: number = 0 + @State inSetValueOne: number = 30 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0510_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0510_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0510_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Slider({ + value: this.inSetValueOne, + min: 0, + max: 100, + style: SliderStyle.InSet + }) + .blockColor('#191970') + .trackColor('#ADD8E6') + .selectedColor('#4169E1') + .showTips(true) + .onChange((value: number, mode: SliderChangeMode):void => { + this.inSetValueOne = value + console.info('value:' + value + 'mode:' + mode.toString()) + }) + .foregroundEffect({ radius: this.radius }) + Text(this.inSetValueOne + .toFixed(0)) + .fontSize(20) + } + .width('80%') + } + } + .id('UIComponentCommonattrForegroundEffect0510_004') + .layoutWeight(1) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_468: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets new file mode 100644 index 000000000..5351519a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets @@ -0,0 +1,383 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, SwipeGesture, SwipeDirection, GestureEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { KeyCode } from '@ohos.multimodalInput.keyCode'; + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,$r,Margin,DragEvent +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.ets + + +@Component +struct UIAttributesColorrampInterface0400 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:true + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets + + +@Component +struct UIAttributesBackgroundInterface1400 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'AAA', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AnalyseActionEventCommoneventDrag/AnalyseActionEventCommoneventDrag0200.ets + + +@Component +struct AnalyseActionEventCommoneventDrag0200 { + build() { + Column() { + Image($r('app.media.startIcon')).width(150).height(150) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).border({width:1}).id('img') + Text('这是一个text').fontSize(30).width(100).height(80).margin({top: 30} as Margin) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).id('txt') + }.margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0770.ets + + +@Component +struct ActionEventCommoneventDragdefault0770 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0290_722.ets + + +@Component +struct UIComponentListandgridGridInterface_0290_722 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(500) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0420 { + @State rotateAngle: number = 0; + @State speed: number = 1; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void=> { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .onClick((e: ClickEvent): void => { + this.rotateAngle=this.rotateAngle+120 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0270155.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0270155 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0270155_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0270155_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .animation({ + duration: 1000, + curve: Curve.Ease + }) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + + +export const FLAG_OF_FILE_469: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets new file mode 100644 index 000000000..13c462222 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets @@ -0,0 +1,406 @@ +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,FlexAlign,EdgeOutlineWidths, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Padding, + ResourceStr,Image,$r +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection, + Visibility,ClickEvent,animateTo,PlayMode,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Component, + Row, + Column, + Text, + Image, + $r, + Color, + Builder, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_BackgroundUltraThick.ets + +@Component +struct BlurStyle_BackgroundUltraThick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0080.ets + + +@Component +struct UiAttributesFloatingLayerInterface0080 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0050.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0050 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + Text("hello world").width(150).height(150) + .backgroundColor(Color.Green) + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0020.ets + + +@Component +struct ActionGestureRegister0020 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0410.ets + + +@Component +struct UIAttributesImageeffectInterface0410 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: 50, + offsetY: -50 + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0090.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0090 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x=-inf') + .id('UIAttributesGraphicTransformationSkew0090_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(-Infinity, 0); + }) + Button('y=-inf') + .id('UIAttributesGraphicTransformationSkew0090_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().skew(0, -Infinity); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0070.ets + + +@Component +struct UIAttributesColorrampInterface0070 { + @State btnShow: Visibility = Visibility.Visible; + @State directionY:GradientDirection = GradientDirection.Bottom + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + angle: 0, + direction: this.directionY, + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] + } as LinearGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.directionY=GradientDirection.Top + } else { + this.btnShow = Visibility.Visible + this.directionY=GradientDirection.Bottom + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0010.ets + + +@Component +struct UIComponentPreventdefault0010 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr).width(200).height(200).border({width:1}) + .id("UIComponentPreventdefault0010") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0030.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0030 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().rotate({ x: 0, y: 0, z: 0, angle: 0 } as matrix4.RotateOption); + build() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + Button('x+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('y+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: 45 } as matrix4.RotateOption); + }) + Button('z+∠+45') + .id('UIAttributesGraphicTransformationSkew0030_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: 45 } as matrix4.RotateOption); + }) + Button('x+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 1, y: 0, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('y+∠-45') + .id('UIAttributesGraphicTransformationSkew0030_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 1, z: 0, angle: -45 } as matrix4.RotateOption); + }) + Button('z+∠45') + .id('UIAttributesGraphicTransformationSkew0030_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().rotate({ x: 0, y: 0, z: 1, angle: -45 } as matrix4.RotateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlinewidth/UIAttributesOutlinewidth0010.ets + + +@Component +struct UIAttributesOutlinewidth0010 { + build() { + Column() { + Text('outlineWidth测试') + .outlineWidth({ + left: 20, + right: 20, + top: 20, + bottom: 20 + } as EdgeOutlineWidths) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0240.ets + + +@Component +struct UIAttributesGraphictransformationInterface0240 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('translate {x:"sd30",y:"sd30",z:"sd30"}') + Image('cat.jpg') + .width(400) + .translate({x:"sd30",y:"sd30",z:"sd30"} as TranslateOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0690.ets + + +@Component +struct UIAttributesBackgroundInterface0690 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Center) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_47: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets new file mode 100644 index 000000000..256df8e93 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets @@ -0,0 +1,380 @@ +import { Entry, Component, Column,ColumnOptions,Flex,FlexAlign,ItemAlign,ToggleType,Toggle, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,ShadowOptions,Color,Button,ClickEvent,ButtonType, + Margin,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Text,FlexAlign,HorizontalAlign,ScrollDirection,Margin +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0150 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes230.ets + + +@Component +struct UIAttributesTouchableInteraction230 { + @State value: string = '' + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction230') + .hitTestBehavior(HitTestMode.Transparent) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'onAction'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0330 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0200.ets + + +@Component +struct ActionEventCommoneventDragdefault0200 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .margin({top:250} as Margin) + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0050.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0050 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(2)").tabIndex(2) + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(1)").tabIndex(1) + } + Column({ space: 20 } as ColumnOptions) { + Button("未设置") + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0050 { + @State status: boolean = true + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Button(this.status ? "usingShadowBatching" : "closedShadowBatching", { type: ButtonType.Normal }) + .width("70%") + .borderRadius(8) + .margin({top:20} as Margin) + .id("button") + .onClick((e:ClickEvent) => { + this.status = !this.status + }) + } + .useShadowBatching(this.status) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.ets + + +@Component +struct UIComponentCommonattrGrayscale0040 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.ets + + +@Component +struct UIAttributesModaltransitionVision0230 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0310.ets + + +@Component +struct ActionEventControlCallback0310 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Switch') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Switch'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + + +export const FLAG_OF_FILE_470: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets new file mode 100644 index 000000000..1a126eb13 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets @@ -0,0 +1,378 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + FontWeight, + Padding, +} from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0670.ets + + +@Component +struct ActionEventCommoneventDragdefault0670 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0220.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0220 { + build() { + Column() { + GridRow() { + GridCol({ span: 6 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0220_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader220 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0430_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0430_891 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(1) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes270.ets + + +@Component +struct UIAttributesTouchableInteraction270 { + @State value: string = ''; + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction270') + .hitTestBehavior(HitTestMode.Transparent) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + this.value = 'RotationGesture onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0010_995.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0010_995 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0160.ets + + +@Component +struct UIActtonEventComdneventDracInterface0160 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0160_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0160_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_471: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets new file mode 100644 index 000000000..d93603939 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets @@ -0,0 +1,435 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextInput, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,List,NavigationMode,ListItem, + NavPathStack,NavDestination,Navigation,ListOptions,ForEach,TextAlign,NavPathInfo +} from '@ohos.arkui.component' + +import { State,Provide,Consume } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid004.ets + +@Component +struct IndexaBQNf { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.columnsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.ets + + +@Component +struct UIAttributesImageeffectInterface0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.ets + + +@Component +struct UIAttributesColorrampInterface0900 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5], [Color.Yellow, 1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton132.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton132 { + @Provide({alias:'pageInfos'}) pageInfos: NavPathStack = new NavPathStack() + private arr: string[] = ['pushpageOne']; + @Builder + PageMap(name: string) { + if (name === "pushpageOne") { + pageOne() + } + } + build() { + Column() { + Navigation(this.pageInfos) { + List({ space: 12 } as ListOptions) { + ForEach(this.arr, (item:string, index: number) => { + ListItem() { + Text(item) + .width("100%") + .height(72) + .backgroundColor('#FFFFFF') + .borderRadius(24) + .fontSize(16) + .fontWeight(500) + .textAlign(TextAlign.Center) + .id('pushpageOneID') + .onClick((): void=>{ + this.pageInfos.pushPath(new NavPathInfo(item,undefined)) + }) + } + }, (item:String,index:number) => String(item)) + } + .width("90%") + .margin({ top: 12 } as Margin) + } + .mode(NavigationMode.Stack) + .navDestination(this.PageMap) + } + .height('100%') + .width('100%') + .backgroundColor('#F1F3F5') + } +} +@Component +export struct pageOne { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Button('button1') + .id('button1') + .onClick((): void => { + }) + Button('button2') + .id('button2') + .onClick((): void => { + this.pageInfos.pop() + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + }.title("pushpageOne1Title") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + .id('popID') + } +} +@Component +export struct pageTwo { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent2") + }.width('100%').height('100%') + }.title("NavDestinationTitle2") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} +@Component +export struct pageThree { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent3") + }.width('100%').height('100%') + }.title("NavDestinationTitle3") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0460.ets + + +@Component +struct ActionEventCommonEventMouseStyle0460 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0460_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0460" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0460_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0540 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0540_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0540_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0540_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextInput({ placeholder: 'I am TextInput' }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 20, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0540_004') + .layoutWeight(1) + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_472: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets new file mode 100644 index 000000000..039cc510c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets @@ -0,0 +1,400 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions} from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,GradientDirection} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect,Visibility, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0050 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0050_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0050_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets + + +@Component +struct UIAttributesBackgroundInterface076 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "90%" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0210_300.ets + + +@Component +struct UIComponentListandgridGridInterface_0210_300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.ets + + +@Component +struct UIAttributesColorrampInterface0780 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:-90, + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0290.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + .visibility(Visibility.Hidden) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0290_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnLinearGradient.ets + +@Component +struct LinearGradientExample { + build() { + Row() { + Column() + .width(300) + .height(200) + .linearGradient({ + angle: 90, + direction: GradientDirection.Bottom, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]], + repeating: true + }).margin(5) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0090.ets + + +@Component +struct UIActtonEventComdneventDracForeground0090 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0090_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0090_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_473: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets new file mode 100644 index 000000000..0cce21a20 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets @@ -0,0 +1,371 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ObscuredReasons, + ClickEvent, + Column, + Margin, + Text, + Button, + Image, + Curve, + PlayMode, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets + + +@Component +struct UIComponentMediaImageMask0050 { + @State widthSize: number = 200 + @State heightSize: number = 200 + @State flag: boolean = true + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .animation({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal + }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('start Animation').onClick((e: ClickEvent) => { + if (this.flag) { + this.widthSize = 150 + this.heightSize = 60 + } else { + this.widthSize = 250 + this.heightSize = 100 + } + this.flag = !this.flag + }).id('mask0050_button_01').margin(5) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0240.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0240 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0240_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0240_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0230.ets + + +@Component +struct ActionEventCommoneventDragInput0230 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0060 { + build() { + Column() { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0070 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0240136.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0240136 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + this.msgInfo= "trigger Grid onScrollStop" + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0240136'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_474: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets new file mode 100644 index 000000000..3c8b7106e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets @@ -0,0 +1,453 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + CopyOptions, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + TextArea, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, TimePickerResult, TimePicker,FontWeight } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0530.ets + + +@Component +struct ActionEventCommoneventDragdefault0530 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State text_align:TextAlign = TextAlign.Start + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .textAlign(this.text_align) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + this.text_align = TextAlign.Center + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .textAlign(TextAlign.Center) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.ets + + +@Component +struct UIAttributesImageeffectInterface0680 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0270 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @Builder + privateBuilder() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult):void => { + if(value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({color: Color.Red, font: {size: 15, weight: FontWeight.Lighter}}) + .textStyle({color: Color.Black, font: {size: 20, weight: FontWeight.Normal}}) + .selectedTextStyle({color: Color.Blue, font: {size: 30, weight: FontWeight.Bolder}}) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.ets + + +@Component +struct UIAttributesImageeffectInterface0240 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.ets + + +@Component +struct UIComponentCommonattrGrayscale0150 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [128, 128] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0110.ets + + +@Component +struct UIComponentBackgroundimage0110 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0950.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0950 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + TextArea({ placeholder: 'please input words' }) + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_1') + .copyOption(CopyOptions.InApp) + .width('100%') + .height(50) + .draggable(true) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0530.ets + + +@Component +struct ActionEventCommonEventMouseStyle0530 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.LOADING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0530_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0530" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0530_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_475: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets new file mode 100644 index 000000000..3b8cf3aa4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets @@ -0,0 +1,408 @@ +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.ets + + +@Component +struct UIAttributesModaltransitionVision0540 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, undefined) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0120.ets + + +@Component +struct ActionEventCommoneventDragdefault0120 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0450 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(40).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Text("二级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + } + @Builder + privateBuilder() { + Column() { + Text("一级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + Button("点击改变") + .id("changeTextColor") + .margin({ top: 200 } as Margin) + .fontColor("#ff6bf2de") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0120.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0120 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0040.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0040 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0460.ets + + +@Component +struct ActionEventCommoneventDragdefault0460 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State font_weight:number = 0 + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontWeight(this.font_weight) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontWeight(800) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_weight = 800 + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0140.ets + + +@Component +struct ActionEventCommoneventDragInput0140 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_476: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets new file mode 100644 index 000000000..11c517e50 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets @@ -0,0 +1,385 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,DataChangeListener,IDataSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,LazyForEach,EdgeEffect,ScrollState,DataOperation, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions,TextInputController,TextInput ,Text,TextInputOptions} from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets + + +@Component +struct UIAttributesBackgroundInterface1380 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'10px', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0020.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0020 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): number { + if (typeof this.str == 'number') { + return Number(this.str); + } else { + this.str1 = "error" + return 0 + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller } as TextInputOptions) + .width(380) + .height(60) + .tabIndex(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.ets + + +@Component +struct UIAttributesColorRampBlurGradient0170 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0]] as Array<[Double, Double]>, direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.ets + + +@Component +struct UIAttributesColorrampInterface0300 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["#0000ff",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.ets + + +@Component +struct UIAttributesGraphictransformationInterface0090 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('rotate,默认参数') + .width(100) + .rotate({x:0,y:0,z:0,angle:0,centerX:"50%",centerY:"50%"} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0150.ets + + +@Component +struct ActionEventCommoneventDragdefault0150 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column() { + Row() { + Column(){ + Text('B位置') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left:30} as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0840_624.ets + + +class BasicDataSource implements IDataSource { + private listeners: Array = new Array(); + private originDataArray: Array = new Array(); + public totalCount(): number { + return 0; + } + public getData(index: number):string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener'); + this.listeners.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listeners.splice(pos, 1); + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to); + }) + } + notifyDatasetChange(operations: DataOperation[]):void{ + this.listeners.forEach(listener => { + listener.onDatasetChange(operations); + }) + } +} +class MyDataSource extends BasicDataSource { + private dataArray: Array = new Array(); + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number):string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, 0, data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public deleteData(index: number): void { + this.dataArray.splice(index, 1); + this.notifyDataDelete(index); + } + public changeData(index: number): void { + this.notifyDataChange(index); + } + operateData():void { + const totalCount = this.dataArray.length; + const batch=5; + for (let i = totalCount; i < totalCount + batch; i++) { + this.dataArray.push(`Hello ${i}`) + } + this.notifyDataReload(); + } +} +@Component +struct UIComponentListandgridGridInterface_0840_624 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + private data: MyDataSource = new MyDataSource(); + aboutToAppear() { + for (let i = 0; i <= 29; i++) { + this.data.pushData(`${i}`); + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + LazyForEach(this.data, (day: string,index:number) => { + LazyForEach(this.data, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_477: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets new file mode 100644 index 000000000..9b2a118f8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets @@ -0,0 +1,413 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,Margin,ColumnOptions,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Builder, + Margin +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Color,Column,List,ListOptions,ForEach,ListItem,TextAlign,Text, + Margin,FlexAlign,HorizontalAlign,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0020 { + @State dataList: number[] = [] as number[] + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 100; index++) { + this.dataList.push(index); + } + } + build() { + Column() { + List({ space: 10 } as ListOptions) { + ForEach(this.dataList, (index: number,i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + }.shadow({ radius: 50, color: this.colors[index%4] } as ShadowOptions) + .height(40) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.ets + + +@Component +struct UIAttributesGraphictransformationInterface0390 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .scale({y:1.5} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0280 { + @State mainColor:Color=Color.Orange; + @Builder + privateBuilder() { + Column(){ + Button("点击改变主控件背景色").onClick((e: ClickEvent) => { + this.mainColor=Color.Pink + }).height(30).width(150).margin({top:30,right:60} as Margin) + }.height(100).width("100%").backgroundColor("#F26BED").id("changeButton") + } + build() { + Column() { + Text('主控件文字背景').backgroundColor(this.mainColor).fontSize(50).margin({top:300,right:60} as Margin); + }.overlay((): void => {this.privateBuilder()},{offset:{x:0,y:80}}).height(500).width(500).backgroundColor("#ff6bf2b8") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.ets + + +@Component +struct UIAttributesImageeffectInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('2.png') + .width(200) + .height(250) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: -50, + offsetY: 50 + } as ShadowOptions) + .margin({ left: 10 } as Margin) + Button('aaa') + .width(150) + .height(50) + .backgroundColor(Color.Red) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.ets + + +@Component +struct UIAttributesImageeffectInterface0110 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0120.ets + + +@Component +struct UIComponentBackgroundimage0120 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.ets + + +@Component +struct UIAttributesTransparencyInterface0030 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0') + .onClick((e:ClickEvent) => { + this.opacityValue = 0; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0020.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0020 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeWidth 负数') + .focusBox({ + strokeWidth: LengthMetrics.px(-20) + }) + Button('button strokeWidth 小数') + .focusBox({ + strokeWidth: LengthMetrics.vp(0.5), + }) + Button('button strokeWidth -null') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth undefined') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth 0') + .focusBox({ + strokeWidth: LengthMetrics.px(0), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.ets + + +@Component +struct UIAttributesImageeffectInterface0620 { + build() { + Column() { + Row() { + Text('test') + .blur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets + + +@Component +struct UIAttributesBackgroundInterface1340 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[0xD3E0DC,0.4],[Color.Red,0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.ets + + +@Component +struct UIAttributesImageeffectInvert0030 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.8, + high: 0.3, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.ets + + +@Component +struct UIAttributesColorrampInterface0520 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow,1]], + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.None + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_478: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets new file mode 100644 index 000000000..07f7c0ab9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets @@ -0,0 +1,376 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,ColumnOptions,Padding, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment,RadialGradientOptions, + AttributeModifier,RowAttribute,Resource,AlignRuleOption +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text, Select, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Grid,Text,ClickEvent,GridItem,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets + + +@Component +struct UiAttributesFloatingLayerInterface0150 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.TopEnd}) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.ets + + +@Component +struct UIAttributesModaltransitionVision0080_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0060.ets + + +@Component +struct ActionEventControlCallback0060 { + @State context: string = "" + build() { + Column(){ + Grid(){ + GridItem(){ + Text("gritItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0380.ets + + +@Component +struct ActionEventControlCallback0380 { + @State context: string = "hello" + @State index: number = 2 + build() { + Column() { + Text(this.context) + Select([{ value: 'aaa'}, + { value: 'bbb'}, + { value: 'ccc'}, + { value: 'ddd'}]) + .selected(this.index) + .height(50) + .width(250) + .onSelect(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_borderRadius.ets + +@Component +struct ButtonBorderRadius { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .borderRadius(50) + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .labelStyle({}) + .borderRadius(50) + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 1, + maxFontSize: 20, + font: { + size: 30, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 16, + maxFontSize: 20, + font: { + size: 10, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bold, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Lighter, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Medium, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/animations/entry/src/main/ets/testability/pages/radialGradient/radialGradientResource.ets + +@Component +struct radialGradientResource { + @State sizeW: number = 100 + build() { + Column({ space: 5 } as ColumnOptions) { + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(this.sizeW) + .height(this.sizeW) + } + .width('100%') + .padding({ top: 30 } as Padding) + } +} + + +export const FLAG_OF_FILE_479: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets new file mode 100644 index 000000000..62e1ecfb4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets @@ -0,0 +1,439 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,EffectComponent,Divider} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Menu, + $r, + MenuItem, + MenuItemOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,GridLayoutOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + Image, + FlexAlign, + Button, + ObscuredReasons, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0100.ets + + +@Component +struct ActionEventCommoneventDragdefault0100 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0010.ets + + +@Component +struct UIComponentMediaImageMask0010 { + @State borderW: number = 1; + @State borderC: number = Color.White; + build() { + Row() { + Column() { + Text('Image not set obscured attribute').fontSize(10).fontColor(Color.Black) + Image('icon.png') + .width('200px') + .height('200px') + .border({ width: this.borderW, color: this.borderC }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('change border') + .onClick((e: ClickEvent) => { + this.borderW = 2; + this.borderC = Color.Pink; + }).id('mask0010_button_01').margin(5) + }.width('100%') + .height('100%') + .justifyContent(FlexAlign.Start) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0130.ets + + +@Component +struct UIAttributesColorrampInterface0130 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]], + direction: GradientDirection.Bottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0260_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0260_891 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsGap(-1) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0340.ets + + +@Component +struct UIAttributesImageeffectInterface0340 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: -10 } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton159.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton159 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "菜单选项1", labelInfo: "菜单选项1" } as MenuItemOptions) + MenuItem({ content: "菜单选项2", labelInfo: "菜单选项2" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_159_2') + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions).focusable(false) + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_159_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0460.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0460 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(20).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Column(){ + Text("二级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 200 } }) + .fontColor(this.fontColor) + Button("二级overlay-button") + .id("changeTextColor0460") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + .margin({top:30} as Margin) + }.height(300) + .backgroundColor(Color.Orange) + } + @Builder + privateBuilder() { + Text("一级overlay文本") + .fontSize(20) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 100 } }) + .fontColor(this.fontColor) + .backgroundColor(Color.Brown) + .height(200) + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/UseEffectIndex.ets + +@Component +struct UseEffectExample { + @State use_effect1_: boolean = true + @State use_effect2_: boolean = false + build() { + Column() { + EffectComponent() { + Column({ space: 20 } as ColumnOptions) { + Text("Normal text with useEffect1") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect1_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Text("Normal text with useEffect2") + .textAlign(TextAlign.Center) + .useEffect(this.use_effect2_) + .fontSize(16) + .fontWeight(FontWeight.Medium) + .borderRadius(16) + .width('90%') + .height('48') + Divider() + Button('Change useEffect1 ' + this.use_effect1_) + .id('button_auto_updateEffect1') + .onClick((event:ClickEvent) => { + if (this.use_effect1_) { + this.use_effect1_ = false + } else { + this.use_effect1_ = true + } + }) + Button('Change useEffect2 ' + this.use_effect2_) + .id('button_auto_updateEffect2') + .onClick((event:ClickEvent) => { + if (this.use_effect2_) { + this.use_effect2_ = false + } else { + this.use_effect2_ = true + } + }) + } + } + } + } +} + + +export const FLAG_OF_FILE_48: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets new file mode 100644 index 000000000..91e683df4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets @@ -0,0 +1,390 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,ResourceColor, + Color,Padding,RowOptions,Flex,FlexDirection,CustomBuilder,Placement,PopupStateChangeParam,CustomPopupOptions,Position +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r, LinearGradientBlurOptions, + GradientDirection +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility, + Text,ImageError,DragResult,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0170.ets + + +@Component +struct ActionEventCommoneventDragCard0170 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + } + .id('ActionEventCommoneventDragCard0170_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.COPY + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur14.ets + +@Component +struct linearGradientBlur14 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0.5, 0.5], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ImageLinearGradientBlur.ets + +@Component +struct ImageLinearGradientBlur { + build() { + Column({ space: 5 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('90%') + .height('90%') + .linearGradientBlur(undefined, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton170.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton170 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_170_2') + .width(380) + .height(60) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_170_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0080.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0080 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.px(20) + }) + Button('button margin 5vp、strokeColor app、strokeWidth 20lpx') + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0200.ets + + +@Component +struct ActionEventCommoneventDragInput0200 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_003.ets + +@Component +struct onlyColumnGapGrid { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnGapGrid onPageShow') + this.columnsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .columnsGap(this.columnsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.ets + + +@Component +struct UIAttributesColorrampInterface0320 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["rgba(0,0,255,0.5)",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_480: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets new file mode 100644 index 000000000..f77526d9b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets @@ -0,0 +1,446 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Text,Rating, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets + + +@Component +struct UIAttributesImageEffectProjection0210 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:$r('app.media.startIcon'), y:$r('app.media.startIcon')} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0250.ets + + +@Component +struct ActionEventCommoneventDragInput0250 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(2, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0160.ets + + +@Component +struct ActionEventCommoneventDragText0160 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.ets + + +@Component +struct UIAttributesColorrampInterface0650 { + @State startX: number = 0; + @State endX: number = 90; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: this.startX, + end: this.endX, + repeating: false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.startX=20 + this.endX=140 + this.btnShow = Visibility.None + } else { + this.startX=0 + this.endX=90 + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0390.ets + + +@Component +struct ActionEventControlCallback0390 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Rating() + .height(50) + .width(250) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0020 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0020_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0020_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0090.ets + + +@Component +struct ActionEventCommoneventDragInput0080 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.ets + + +@Component +struct UIAttributesColorrampInterface0040 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:false + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0470_052.ets + + +@Component +struct UIComponentListandgridGridInterface_0470_052 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 2fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(0xff0000) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_481: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets new file mode 100644 index 000000000..7a2501c5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets @@ -0,0 +1,359 @@ +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,Padding, + PinchGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0040 { + build() { + Column() { + Row() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(0.8) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0090.ets + + +@Component +struct ActionEventCommoneventDragdefault0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + private txt:string = '可拖拽文本' + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Text(this.txt).backgroundColor(Color.Yellow).fontColor(Color.Red) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Text(item).fontSize(20) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.txt); + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets + + +@Component +struct UIAttributesBackgroundInterface114 { + build() { + Column() { + Row() + .backgroundColor(Color.Green) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_967.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_967 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .constraintSize({ maxWidth: 200 }) + .rowsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.ets + + +@Component +struct UIAttributesColorRampBlurGradient0140 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[2,2]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0080 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0080_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes30.ets + + +@Component +struct UIAttributesTouchableInteraction30 { + @State Text: string = 'Text PinchGesture'; + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Text(this.Text) + .id('UIAttributesTouchableInteraction30') + .width('90%') + .height(50) + .hitTestBehavior(HitTestMode.None) + .width(180).height(80) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.pinchValue = this.scaleValue; + this.Text = 'PinchGesture success'; + }) + ) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0140 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0140_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets + + +@Component +struct UiAttributesFloatingLayerInterface0160 { + build() { + Column() { + Image('2.png') + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets + + +@Component +struct UIAttributesBackgroundInterface116 { + build() { + Column() { + Row() + .backgroundColor(Color.Orange) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_482: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets new file mode 100644 index 000000000..9f4fa2c6b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets @@ -0,0 +1,413 @@ +import I18n from '@ohos.i18n'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction, GridDirection,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + ClickEvent, + TextInputController, + Button, + TextInput, + MenuPolicy +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + ColumnOptions, + Toggle,ToggleType +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets + + +@Component +struct UIAttributesSelectedStyle0110 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: false }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean):void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0020 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().translate({ x: 0, y: 0, z: 0 } as matrix4.TranslateOption); + build() { + Column() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + } + .height(60) + .width(60) + .backgroundColor(Color.Gray) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + Button('x+10') + .id('UIAttributesGraphicTransformationSkew0020_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y+10') + .id('UIAttributesGraphicTransformationSkew0020_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 10, z: 0 } as matrix4.TranslateOption); + }) + Button('z+10') + .id('UIAttributesGraphicTransformationSkew0020_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: 10 } as matrix4.TranslateOption); + }) + Button('x-10') + .id('UIAttributesGraphicTransformationSkew0020_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y-10') + .id('UIAttributesGraphicTransformationSkew0020_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: -10, z: 0 } as matrix4.TranslateOption); + }) + Button('z-10') + .id('UIAttributesGraphicTransformationSkew0020_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: -10 } as matrix4.TranslateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0160.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0160 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0160_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader160 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets + + +@Component +struct UiAttributesFloatingLayerInterface0040 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:0}}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0230 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + } + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0340.ets + + +@Component +struct SubAceActionWindowWindowCustom0340 { + controller: TextInputController = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextInput({ text: "123456", controller: this.controller }) + .id('input') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.ets + + +@Component +struct UIAttributesColorRampBlurGradient0070 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.RightBottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_024.ets + +@Component +struct Grid_024 { + @State numbers: Array = new Array() + @State dirction: Direction = Direction.Auto + @State layoutDirection: GridDirection|undefined = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 150; i++) { + this.numbers.push(i + '') + } + } + build() { + Column() { + Column() { + Text('镜像').fontSize(12) + Row() { + Button("Auto") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionAuto_024') + Button("Ltr") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionLtr_024') + Button("Rtl") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Rtl; + }).id('DirectionRtl_024') + } + Text('layoutDirection').fontSize(12) + Row() { + Button("Row") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + }).id("layoutDirectionRow") + Button("RowReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.RowReverse + }).id("layoutDirectionRowReverse_024") + } + Row() { + Button("Column") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Column + }).id("layoutDirectionColumn") + Button("ColumnReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.ColumnReverse + }).id("layoutDirectionColumnReverse_024") + } + Text('layoutDirection').fontSize(12) + Row() { + Button("汉语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("zh-Hans"); + }).id('chineseLang') + Button("阿拉伯语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ar-EG"); + }).id('arLang') + Button("维吾尔语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ug"); + }).id('ugLang') + } + } + .width('100%') + .height('40%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(20) + .minCount(3) + .cellLength(0) + .layoutDirection(this.layoutDirection) + .direction(this.dirction) + } + } +} + + +export const FLAG_OF_FILE_483: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets new file mode 100644 index 000000000..d3ba901b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets @@ -0,0 +1,426 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,SearchController,TextInputController,TextInputOptions,Line ,SearchOptions,CancelButtonSymbolOptions,CancelButtonStyle +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Alignment, + Builder, + PinchGesture, + GestureEvent, + Image, + Direction, + FontWeight +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.ets + + +@Component +struct UIAttributesColorrampInterface0740 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_Dark.ets + +@Component +struct ThemeColorMode_Dark { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0060 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: -1 }) + .id('UIAttributesClivkreboundeffectInterface0060_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0520 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("“1234567890",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0510.ets + + +@Component +struct ActionEventControlCallback0510 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content510' }) + .id("ActionEventControlCallback0510_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets + + +@Component +struct UIAttributesBackgroundInterface1360 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0290 { + @State imagePath:string="2.png"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder) + } + @Builder + privateBuilder() { + Column(){ + Image(this.imagePath).height(500).margin({top:70} as Margin) + .overlay((): void => {this.privateBuilderTwo()},{align:Alignment.Center}) + Button("点击改变图片") + .margin({top:30} as Margin) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .id("changeImagePath") + .onClick((e: ClickEvent) => { + this.imagePath="openeye.png" + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur18.ets + +@Component +struct linearGradientBlur18 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(80, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0330.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0330 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0050_922.ets + + +interface style { + style: GridItemStyle +} +@Component +struct UIComponentListandcridGridUxconsistency_0050_922 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + @State style1:style = { + style: GridItemStyle.NONE + } as style + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({ style: GridItemStyle.NONE } as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.ets + + +@Component +struct UIAttributesImageeffectInvert0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 1, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton151.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton151 { + @State changeValue: string = '' + searchController: SearchController = new SearchController() + build() { + Column() { + Button("ComponentDialog") + .id('ComponentDialog') + .onClick((): void => { + }) + TextArea({text:"我是TextArea我是Text"}) + .defaultFocus(true) + Search({ value: this.changeValue, placeholder: '请输入内容', controller: this.searchController } as SearchOptions) + .onChange((value: string):void => { + this.changeValue = value + }) + .margin(20) + Button('获取焦点') + .onClick((): void => { + }) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @State text: string = '' + controller: TextInputController = new TextInputController( + ) + @Builder + buildContent(): void { + Column() { + TextInput({ + text: this.text, + placeholder: '请输入内容', + controller: this.controller, + } as TextInputOptions) + .defaultFocus(true) + .onChange((value: string): void => { + this.text = value + }) + .cancelButton({ style: CancelButtonStyle.CONSTANT } as CancelButtonSymbolOptions) + Line() + TextArea({text:"我是TextArea我是Text"}) + } + } +} + + +export const FLAG_OF_FILE_484: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets new file mode 100644 index 000000000..238ad82a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets @@ -0,0 +1,391 @@ +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.ets + + +@Component +struct UIAttributesImageeffectInterface0280 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(-5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.ets + + +@Component +struct UIAttributesColorrampInterface0080 { + @State angleY:number=0 + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + angle:this.angleY + } as LinearGradientOptions) + .animation({ + duration: 1000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.angleY=90 + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0150.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0150 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0150_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.ets + + +@Component +struct UIAttributesColorrampInterface0890 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization143.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization143 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + PageMap(name: string, param: Object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('Back') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.ets + + +@Component +struct UIAttributesImageEffectProjection0260 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets + + +@Component +struct UIAttributesBackgroundInterface0130 { + build() { + Column() { + Row() { + Text("LIGHT") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.LIGHT}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0020.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0020 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0020") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_485: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets new file mode 100644 index 000000000..3c6d74609 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets @@ -0,0 +1,390 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, + TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0280_218.ets + + +@Component +struct UIComponentListandgridGridInterface_0280_218 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(-5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0750.ets + + +@Component +struct ActionEventCommoneventDragInterface0750 { + @State arr: string[] = [] as string[] + @State arr2: string[] = [] as string[] + private mIndex: number = -1 + private startIndex: number = -1 + @State text: string = 'drag' + @State msgInfo: string = '' + private listType: number = -1 + aboutToAppear(): void { + for (let i = 0; i < 5; i++) { + this.arr.push(i+"") + } + for (let i = 0; i < 5; i++) { + this.arr2.push(i+"") + } + } + @Builder + pixelMapBuilder() { //拖拽过程样式 + Column() { + Text(this.text) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xF5F5F5) + } + } + changeIndex(type: number, itemIndex: number, insertIndex: number) { //交换数组位置 + let temp: string; + if (this.listType == type && type == 1) { + temp = this.arr[itemIndex]; + this.arr[itemIndex] = this.arr[insertIndex]; + this.arr[insertIndex] = temp; + } else if (this.listType == type && type == 2) { + temp = this.arr2[itemIndex]; + this.arr2[itemIndex] = this.arr2[insertIndex]; + this.arr2[insertIndex] = temp; + } else if (this.listType != type && type == 1) { + temp = this.arr2[insertIndex]; + this.arr.splice(insertIndex, 1, this.text); + this.arr2.splice(this.startIndex, 1, temp); + } else if (this.listType != type && type == 2) { + temp = this.arr[insertIndex]; + this.arr2.splice(insertIndex, 1, this.text); + this.arr.splice(this.startIndex, 1, temp); + } + } + build() { + Column() { + Text(this.msgInfo); + List({ space: 10 } as ListOptions) { + ForEach(this.arr, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list1"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onItemMove((from: number, to: number):boolean => { + console.info('pkgg 1 onItemMove 列表元素发生移动时触发,from:' + from + ' to:' + to) + this.mIndex = -1 + if (from == to) { + return false + } else { + return true + } + }) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder => { + console.info('pkgg 1 onItemDragStart 开始拖拽列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + this.text = this.arr[itemIndex] + "" + this.startIndex = itemIndex + this.listType = 1 + return ()=>{this.pixelMapBuilder()} + }) + .onItemDragEnter((event: ItemDragInfo):void => { + console.info('pkgg 1 onItemDragEnter 拖拽进入列表元素范围内时触发,x:' + event.x + ' y:' + event.y) + }) + .onItemDragMove((event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + if (this.mIndex != itemIndex) { + this.mIndex = itemIndex + console.info('pkgg 1 onItemDragMove 拖拽在列表元素范围内移动时触发,x:' + event.x + ' y:' + event.y + + ' itemIndex:' + + itemIndex + ' insertIndex:' + insertIndex) + } + }) + .onItemDragLeave((event: ItemDragInfo, itemIndex: number):void => { + console.info('pkgg 1 onItemDragLeave 拖拽离开列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + if (!isSuccess || insertIndex >= this.arr.length) { + return + } + if (insertIndex == -1) { + return + } + console.info('pkgg 1 onItemDrop 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发 ,x:' + + event.x + ' y:' + + event.y + ' itemIndex:' + itemIndex + ' insertIndex:' + insertIndex + ' isSuccess:' + isSuccess) + this.changeIndex(1, itemIndex, insertIndex) + }) + Column().width('100%').height('2%').backgroundColor(Color.Blue) + List({ space: 10 } as ListOptions) { + ForEach(this.arr2, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list2"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let numberObj = JSON.parseJsonElement(extraParams!,(key: string, value: jsonx.JsonElement): jsonx.JsonElement => { + if(key === "selectedindex") return value; + return value; + }) as Object; + console.info('call onDragStart' + numberObj) + }) + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0320937.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0320937 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + this.msgInfo= "trigger Grid onScrollIndex" + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0320937'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0580.ets + + +@Component +struct ActionEventCommoneventDragdefault0580 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '最后拖拽文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions) { + Text('前面的文本') + Text('中间的文本') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + } + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_486: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets new file mode 100644 index 000000000..dd77c4de9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets @@ -0,0 +1,402 @@ +import { Entry, Component, Column,Image,Text,Margin,Text,$r,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Padding, + Scroller, + Flex, + RowOptions,PopupStateChangeParam,Position, + FlexDirection,Scroll,CustomBuilder,ResourceColor,CustomPopupOptions,EdgeEffect,ScrollSnapAlign, + Placement +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { + Entry, + Component, + ClickEvent, + ObscuredReasons, + Margin, + Column, + Text, + Image, + $r, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest14.ets + +@Component +struct ZIndexDynamicModificationTest14 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.isImage = true // Image XYZ设置zIndex: 3 2 1 + this.zIndexValueIndex = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets + + +@Component +struct UIComponentMediaImageMask00100 { + @State widthSize: number = 100; + @State heightSize: number = 100; + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .defaultFocus(true) + .obscured([ObscuredReasons.PLACEHOLDER]) + Image($r('app.media.startIcon')) + .width(this.widthSize) + .height(this.heightSize) + .margin(10) + .obscured([ObscuredReasons.PLACEHOLDER]) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0200 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .margin({ bottom: 10 } as Margin) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton166.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton166 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + scroller: Scroller = new Scroller; + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + Scroll(this.scroller) { + Column() { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_166_2') + .margin({top:10} as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + }.width('100%') + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_166_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0300319.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0300319 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0300319_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollPage({ next: true }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0300319_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult | undefined => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0080.ets + + +@Component +struct ActionEventControlCallback0080 { + @State context: string = "" + build() { + Column(){ + Image($r('app.media.startIcon')).width(100).height(100).borderRadius(30).margin({ left: 3, right: 10 } as Margin) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + + +export const FLAG_OF_FILE_487: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets new file mode 100644 index 000000000..470784ef0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets @@ -0,0 +1,389 @@ +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, + NavDestination,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Area +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes390.ets + + +@Component +struct UIAttributesTouchableInteraction390 { + @State value: string = 'Text' + @State sizeValue: string = '' + build() { + Column() { + Text(this.value) + .id('UIAttributesTouchableInteraction390') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(Color.Green) + .margin(30) + .fontSize(20) + .onClick((): void => { + this.value = this.value + 'Text' + }) + .onAreaChange((oldValue: Area, newValue: Area): void => { + console.info(`Ace: on area change, oldValue is ${String(oldValue)} value is ${String(newValue)}`) + this.sizeValue = String(newValue) + }) + Text('new area is: \n' + this.sizeValue).margin({ right: 30, left: 30 } as Margin) + } + .width('100%').height('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row2.ets + +@Component +struct Row2Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0630.ets + + +@Component +struct UIActionEventCommonEventDragInterface0630 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent) => { + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.ets + + +@Component +struct UIAttributesColorrampInterface0330 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[Color.Blue,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.ets + + +@Component +struct UIAttributesImageeffectInterface0590 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0290.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0290 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + NavDestination() { + Text('NavDestination内容') + } + .height(150) + .width('100%') + .title('设置') + .borderWidth(1) + .foregroundEffect({ + radius: this.radiusValue + }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0130.ets + + +@Component +struct UIAttributesImageEffectProjection0130 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0540.ets + + +@Component +struct UIAttributesBackgroundInterface0540 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0190.ets + + +@Component +struct UIAttributesImageEffectProjection0190 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:50, y:50} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_488: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets new file mode 100644 index 000000000..fb548a58b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets @@ -0,0 +1,493 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,Callback,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,GestureEvent,Text,Color,Button,Margin,GestureGroup, + GestureMode,LongPressGesture,PanGesture +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Rect,FlexAlign,Color,Margin,Text,RectOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0420.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0420 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0420_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0420_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0420_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Rect({ + width: '90%', + height: 80 + } as RectOptions) + .fill(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0420_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0430.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0430 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: (curves.springMotion(0.8, 0.4) as ICurve) } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0030.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0030 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0100.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0100 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_FILL) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0030.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(false) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonSmooth/UIComponentListandgridXommonSmooth0110629.ets + + +@Component +struct UIComponentListandgridXommonSmooth0110629 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .id('UIComponentListandgridXommonSmooth0110629') + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('下滑100vp') + .id('UIComponentListandgridXommonSmooth0110629_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollBy(0, 100) + }) + Button('滚动到指定位置') + .id('UIComponentListandgridXommonSmooth0110629_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0150.ets + + +@Component +struct ActionEventControlCallback0150 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Button('Button1') + .id("ActionEventControlCallback0150_01") + .width(80) + .gesture( + GestureGroup(GestureMode.Sequence, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + this.change = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + }) + .onActionUpdate((event?: GestureEvent) => { + }) + .onActionEnd(() => { + }) + ) + ) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0200_308.ets + + +@Component +struct UIComponentListandgridGridInterface_0200_308 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Off) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0020_579.ets + + +@Component +struct UIComponentListandgridGridEvents_0020_579 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragEnter((event: ItemDragInfo) => { + this.text1 = 'onItemDragEnter'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_489: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets new file mode 100644 index 000000000..184eb74c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets @@ -0,0 +1,353 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Flex, + Builder +} from '@ohos.arkui.component'; + +import { + Entry, + ImageFit, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text, + Color,DragEvent,Margin,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0140.ets + + +@Component +struct UIActtonEventComdneventDracInterface0140 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0140_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0140_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0290.ets + + +@Component +struct ActionEventCommoneventDragdefault0290 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .margin({top:200} as Margin) + .id('txt2') + .width(100) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0150.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0150 { + @State color1: Color = Color.Red; + @State color2: Color = Color.Red; + @Builder + OverlayNode() { + Column() { + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color1).onClick((e:ClickEvent) => { + if (this.color1 == Color.Red) { + this.color1 = Color.Blue; + } else { + this.color1 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_001') + Button('1').margin({ top: 20 } as Margin).backgroundColor(this.color2).onClick((e:ClickEvent) => { + if (this.color2 == Color.Red) { + this.color2 = Color.Blue; + } else { + this.color2 = Color.Red; + } + }).id('UIAttributesFloatingLayerOverlay0150_002') + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0110.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0110 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0340.ets + + +@Component +struct UIAttributesColorrampInterface0340 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["AAAEYU",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0150.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0150 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1460.ets + + +@Component +struct UIAttributesBackgroundInterface1460 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.None, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0710.ets + + +@Component +struct UIAttributesColorrampInterface0710 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["#0000ff",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_49: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets new file mode 100644 index 000000000..6d617b937 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets @@ -0,0 +1,343 @@ +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Text, Row, Column, BlurStyle, Position } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, GridItem, Blank, GridDirection, Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Line, + Color,Blank,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0210.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0210 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + Blank() + Line() + .width(200) + .height(150) + .startPoint([100, 0]) + .endPoint([100, 100]) + .stroke(Color.Black) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/rowsGapsCellLength.ets + +@Component +struct GridExample { + @State numbers: Array = new Array() + @State rowsGap: number = 10 + @State cellLength: number = 0 + aboutToAppear() { + for (let i = 1; i <= 10; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(this.rowsGap) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(this.cellLength) + .layoutDirection(GridDirection.Row) + Button('') + .id('rowsGap_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.rowsGap+=2 + }) + Button('') + .id('cellLength_1') + .width(100) + .height(50) + .onClick((event:ClickEvent) => { + this.cellLength+=50 + }) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0020.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0020 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + (): void => { + this.OverlayNode() + } + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0180.ets + + +@Component +struct UIAttributesImageEffectProjection0180 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:0, y:0} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0070.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0070 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .width('80%') + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0200.ets + + +@Component +struct UIAttributesBackgroundInterface0200 { + build() { + Column() { + Row() { + Text("Regular") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.Regular) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0020.ets + + +@Component +struct UIAttributesTransparencyInterface0020 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0.5') + .onClick((e:ClickEvent) => { + this.opacityValue = 0.5; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0090.ets + + +@Component +struct UIAttributesFocuscontrolInterface0090 { + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0220_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + Button("3") + .focusOnTouch(false) + Button("focusOnTouch true") + .id('UIComponentCommonattrResult0030_001') + .width(200) + .height(70) + .fontColor(Color.White) + .focusOnTouch(true) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(false) + } + } +} + + +export const FLAG_OF_FILE_490: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets new file mode 100644 index 000000000..2f4c323f8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets @@ -0,0 +1,401 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions,BlurStyle, + $$,SheetSize,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,TextInput,Margin,SearchOptions,TextInputOptions,SearchController, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,RowSplit,Text,TextAlign,ListScroller,List, + ListItem,Axis, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0390.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0390 { + listScroller: ListScroller = new ListScroller() + build() { + Column() { + List({scroller:this.listScroller }){ + ListItem(){ + RowSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('4').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('5').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('6').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('7').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + }.listDirection(Axis.Horizontal) + .id('button') + .height('100%') + .width('100%') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0130.ets + + +@Component +struct UIAttributesBcakgroundSeriable0130 { + @State top: number = 220 + @State bottom: number = 20 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0390.ets + + +@Component +struct UIAttributesColorrampInterface0390 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:false + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0110.ets + + +@Component +struct UIAttributesFocuscontrolInterface0110 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }as TextInputOptions) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + .groupDefaultFocus(true) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0020.ets + + +@Component +struct ActionEventCommoneventClickDfx0020 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0020") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxModalTransition/ComponentPopupBoxModalTransitionStyle0010.ets + + +@Component +struct ComponentPopupBoxModalTransitionStyle0010 { + @State isShow: Boolean = false; + @Builder + myBuilder() { + Column() { + Button('') { + Text("CONTEXT") + }.height(50).width(200) + } + } + build() { + Column() { + Button("show builder") + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.MEDIUM, + blurStyle: BlurStyle.Thick, + showClose: true, + title: { title: "title", subtitle: "subtitle" }, + preferType: SheetType.CENTER, + offset: { x: '-50vp', y: '-50vp' } + } as SheetOptions).id('ComponentPopupBoxModalTransitionStyle0010_button_01') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0080.ets + + +@Component +struct UIAttributesImageeffectInterface0080 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(-10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0080.ets + + +@Component +struct UIAttributesModaltransitionInteration0080 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + maskColor:'#88000000', + enableOutsideInteractive: false, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0170.ets + + +@Component +struct UIAttributesImageEffectProjection0170 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Visible) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0160.ets + + +@Component +struct ActionEventCommoneventDragInput0160 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_491: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets new file mode 100644 index 000000000..d648b866a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets @@ -0,0 +1,385 @@ +import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, + Margin,DragEvent, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { XComponent, Component, Column, ColumnOptions } from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + Scroll,ForEach, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0030.ets + + +@Component +struct UIAttributesModaltransitionSafearea0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Scroll() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + TextInput({ text: `inpput ${item}` }) + .id(`input${item}`) + .margin({top: 20} as Margin) + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface081.ets + + +@Component +struct UIAttributesBackgroundInterface081 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({} as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0090.ets + + +@Component +struct UIComponentBackgroundimage0090 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0450.ets + + +@Component +struct UIAttributesColorrampInterface0450 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors:[[0x0000ff,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0960.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0960 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0960_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1430.ets + + +@Component +struct UIAttributesBackgroundInterface1430 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.LeftBottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0120.ets + + +@Component +struct UiAttributesFloatingLayerInterface0120 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.Bottom}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0310.ets + + +@Component +struct UIAttributesGraphictransformationInterface0310 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(400) + Text('centerY:"50%"') + Image('cat.jpg') + .width(400) + .scale({centerY:"50%"} as ScaleOptions) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/CAPI_NEW2/entry/src/main/ets/testability/pages/CapiPage/componet/CommonView.ets + + +@Component +export struct CommonView { + pageTag: string = ''; + build() { + Column() { + Column({ space: 10 } as ColumnOptions) { + }.margin(20) + .height('100%') + .width('100%') + } + .id(this.pageTag) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0070.ets + + +@Component +struct ActionEventCommoneventDragdefault0070 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .fontSize(12) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_492: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets new file mode 100644 index 000000000..cae229f5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets @@ -0,0 +1,421 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, + $$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TimePicker,FontWeight,TimePickerResult, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0050.ets + + +@Component +struct UIAttributesModaltransitionAnimator0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + detents: [300, 500] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0290.ets + + +@Component +struct UIAttributesGraphictransformationInterface0290 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{x:1,y:1,z:1,centerX:"50%",centerY:"50%"}') + Image('cat.jpg') + .width(100) + .scale({x:1,y:1,z:1,centerX:"50%",centerY:"50%"} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0570.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0570 { + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0570_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0570_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0570_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TimePicker({ + selected: this.selectedTime, + }) + .onChange((value: TimePickerResult):void => { + if (value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0570_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0040.ets + + +@Component +struct UIAttributesImageEffectProjection0040 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + .colorBlend(Color.Green) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0250.ets + + +@Component +struct UIAttributesImageeffectInterface0250 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0220.ets + + +@Component +struct ActionEventCommoneventDragInput0220 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0170.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0170 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0710.ets + + +@Component +struct UIAttributesModaltransitionVision0710 { + @State isShow: boolean = false + arr: number[] = [1, 2, 3, 4, 5, 6, 7] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.FIT_CONTENT] as [SheetSize|String|Double|Resource], + preferType: SheetType.BOTTOM, + height: SheetSize.FIT_CONTENT + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes40.ets + + +@Component +struct UIAttributesTouchableInteraction40 { + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('RotationGesture angle:' + this.angle) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(80) + .rotate({ angle: this.angle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction40') + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + }) + ) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_493: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets new file mode 100644 index 000000000..9259c760e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets @@ -0,0 +1,411 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Column, + Component, + Builder, + FlexAlign, + Scroll, + Divider, + TextAlign, + OutlineStyle, + ImageSize, + OutlineRadiuses, + Color +} from '@ohos.arkui.component'; + +import { State, } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/BorderAndOutlineSetIndex.ets + +@Component +struct BorderAndOutlineSetIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('内边框角度大于外边框').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderRadius(100) + .outlineRadius(50) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角Dimension为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15).outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边圆角outlineRadius为15').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineColor(0xAFEEEE) + .outlineWidth(5) + .outlineRadius({topLeft:15, topRight:15, bottomLeft:15, bottomRight:15} as OutlineRadiuses) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dashed').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为dotted').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('外描边样式为solid').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(0xAFEEEE) + .borderWidth(1) + .justifyContent(FlexAlign.Center) + .margin(5) + .width('95%') + .height(90) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0050.ets + + +@Component +struct UIAttributesRenderFit0050 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0360.ets + + +@Component +struct ActionEventCommonEventMouseStyle0360 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.SCREENSHOT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0360_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0360" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0360_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0250.ets + + +@Component +struct UIAttributesBackgroundInterface0250 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('radialGradient').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row() + .width(100) + .height(100) + .radialGradient({ + center: [50, 50], + radius: -10, + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + repeating: true + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0330.ets + + +@Component +struct ActionEventCommonEventMouseStyle0330 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RESIZE_LEFT_RIGHT; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0330_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0330" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0330_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_494: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets new file mode 100644 index 000000000..cb5ffb187 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets @@ -0,0 +1,383 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentColor.ets + +@Component +struct ContentColor { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('ContentColor1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow true").fontSize(11).id('ContentColor2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Blue, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('ContentColor3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('ContentColor4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0050.ets + + +@Component +struct UIAttributesColorRampBlurGradient0050 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Left} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid009.ets + +@Component +struct UIComponentGrid009 { + @State numbers: Array = new Array() + @State maxCountValue: number = 0 + @State minCountValue: number = 2 + layoutDirectionValue: GridDirection = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + @State TextWidth: number = 50 + @State TextHeight: number = 90 + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .height(this.TextHeight) + .width(this.TextWidth) + }.borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .width(170) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(this.maxCountValue) + .minCount(this.minCountValue) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('Infinity') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = Infinity + }).id('btn01') + Button('maxCountValue value is 2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = 2 + }).id('btn02') + Button('maxCountValue value is -2') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.TextHeight = 90 + this.TextWidth = 50 + this.minCountValue = 2 + this.maxCountValue = -2 + }).id('btn03') + Button('TextWidth value is 100') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Column/GridDirection.ColumnReverse)as GridDirection + this.maxCountValue = 0 + this.TextHeight = 90 + this.TextWidth = 100 + this.minCountValue = -2 + }).id('btn04') + Button('GridItem size 150*50') + .onClick((event: ClickEvent) => { + this.layoutDirectionValue = (GridDirection.Row/GridDirection.RowReverse) as GridDirection + this.maxCountValue = -2 + this.TextHeight = 150 + this.TextWidth = 50 + this.minCountValue = 0 + }).id('btn05') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/IsShow.ets + +@Component +struct IsShowTF { + @State isShow:boolean = false + @State isShow2:boolean = false + @State widthSize1: number = 200 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder2() { + Column() { + Button("close modal 2").fontSize(11).id('IsShow1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition2 IsShow flase").fontSize(11).id('IsShow2') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow2 = false; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar,backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + Button("close modal 1").fontSize(11).id('IsShow3') + .margin(10) + .fontSize(15) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition1 IsShow ture").fontSize(11).id('IsShow4') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(15) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}} as SheetOptions) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0180.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0180 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0120.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0120 { + @State isTextVisible:boolean = true + onButtonClick(){ + this.isTextVisible = false + } + build() { + Column(){ + Row(){ + if (this.isTextVisible){ + Text('Text子组件').fontSize(50).fontColor(Color.White) + .margin({left:100,top:50} as Margin) + } + }.width('100%').height(200).backgroundColor(Color.Green) + Button("HideNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible50.ets + + +@Component +struct UIComponentGridAccessible50 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State Text: string = ''; + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .accessibilityGroup(true) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + } as OnScrollCallback | undefined) + .onScrollStart(() => { + }) + .onScrollStop(() => { + }) + .onReachStart(() => { + this.gridPosition = 0; + }) + .onReachEnd(() => { + this.gridPosition = 2; + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_495: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets new file mode 100644 index 000000000..b91318931 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets @@ -0,0 +1,386 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility,ImageError,DragResult, + Text,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Color,Column,List,ListOptions,FlexAlign,HorizontalAlign, + Margin,ShadowOptions,TextAlign,LazyForEach,ListItem,Text, + IDataSource,DataChangeListener +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin, ForEach, + NavigationMode, ListOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Scroll,ColumnOptions,Column,Button,ClickEvent,Margin,Text +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickScenarios/ActionEventCommoneventClickScenarios0020.ets + +@Component +struct ActionEventCommoneventClickScenarios0020 { + @State txt:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Button('button').onClick((e:ClickEvent) => { + this.txt = '触发点击事件' + }) + .id('btn') + Text(this.txt).fontSize(20).margin(10) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0440.ets + + +@Component +struct UIAttributesColorrampInterface0440 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:-20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0060.ets + + +@Component +struct ActionGestureRegister0060 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 } as ListOptions) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0170.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0170 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0170_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0170_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0010.ets + + +class BasicDataSource implements IDataSource { + private listenerList: DataChangeListener[] = [] as DataChangeListener[] + private originDataArray: string[] = [] as string[]; + public totalCount(): number { + return 0; + } + public getData(index: number): string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listenerList.indexOf(listener) < 0) { + console.info('add listener'); + this.listenerList.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listenerList.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listenerList.splice(pos, Number(1)); + } + } + notifyDataReload(): void { + this.listenerList.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listenerList.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listenerList.forEach(listener => { + listener.onDataMove(from, to); + }) + } +} +export class DataSource extends BasicDataSource { + private dataArray: string[] = [] as string[]; + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number): string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, Number(0), data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public reloadData(list: string[]) { + this.dataArray = list + this.notifyDataReload() //重新加载 + } +} +@Component +struct UIAttributesImageEffectUseShadowBatching0010 { + @State dataList: DataSource = new DataSource() + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 20; index++) { + this.dataList.pushData(index.toString()); + } + } + build() { + Column() { + List({ space: 20 } as ListOptions) { + LazyForEach(this.dataList, (index: string, i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + } + .shadow({ radius: 200, color: this.colors[Number(index)%4] } as ShadowOptions) + .height(120) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0180.ets + + +@Component +struct ActionEventCommoneventDragCard0180 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + }.id('ActionEventCommoneventDragCard0180_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.MOVE + }) + .onDrop((event: DragEvent, extraParams?: string):void=>{ + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0080.ets + + +@Component +struct UIComponentGridAccessible0080 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State dir: Direction = Direction.Ltr + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .direction(this.dir) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.dir = Direction.Rtl + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_496: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets new file mode 100644 index 000000000..c4f0d7b24 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets @@ -0,0 +1,450 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Toggle, + ImageSize, + Column, + ColumnOptions,ToggleType +} from '@ohos.arkui.component' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,RadialGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent,FlexAlign, + HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Driver } from '@kit.TestKit'; + +import { Entry, Component, Row, Column, Color, Image, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0240.ets + + +@Component +struct ActionEventCommoneventDragInput0240 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0540.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0540 { + build() { + Row() { + Column() { + Image("2.png") + } + .width(300) + .height(300) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("13216549546519849646518946515616516165161616165161656195415915919",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0400.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0400 { + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(20) + .border({ width: 3 }) + .width(100) + .height(50) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(40) + .width(200) + .height(100) + .backgroundColor(Color.Green) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pinch start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd(() => { + this.pinchValue = this.scaleValue; + console.info('Pinch end'); + }) + ).overlay((): void => {this.overlayBuilder()}) + .margin({top:150} as Margin) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0070.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0070 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Column() + .width(100) + .height(100) + .borderWidth(1) + Column() + .width(100) + .height(100) + .borderWidth(1) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0090.ets + + +@Component +struct UIAttributesImageEffectProjection0090 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .radialGradient({center: [100, 100], radius: 100, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as RadialGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0100.ets + + +@Component +struct UIAttributesSelectedStyle0100 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: true }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean): void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0530.ets + + +@Component +struct UIAttributesBackgroundInterface0530 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 90, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0090.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0090 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.BottomStart}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0200.ets + + +@Component +struct UIActtonEventComdneventDracInterface0200 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0200_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0200_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_497: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets new file mode 100644 index 000000000..c76156ae3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets @@ -0,0 +1,361 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Color,ClickEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, + $r,ImageRepeat,FlexAlign,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0300.ets + + +@Component +struct UIAttributesBcakgroundSeriable0300 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImageResizable({ + slice: { + top: 10, + bottom: 10, + left: 10, + right: 10 + } + }) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width('100%') + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0060.ets + + +@Component +struct UIAttributesImageeffectInvert0060 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 0.1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGridAccessible/UIComponentGridAccessible0070.ets + + +@Component +struct UIComponentGridAccessible0070 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State colNum: string = '1fr 1fr 1fr 1fr 1fr' + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate(this.colNum) + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + Button('change dir') + .onClick((event: ClickEvent) => { + this.colNum = '1fr 1fr 1fr 1fr' + }).id('btn1') + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }).id('btn2') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0010.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0010 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Column(){ + } + .blendMode(BlendMode.SRC_IN) + .backgroundColor(this.isClick == true ? Color.Transparent : Color.Pink) + .height(300).width('100%') + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0030.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0030 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0160.ets + + +@Component +struct ActionEventControlcallback0160 { + @State context: string = "" + build() { + Column(){ + Text('text') + .height('80%').width('100%') + .backgroundColor(Color.Red) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0160.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0160 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 1 }) + .id('UIAttributesClivkreboundeffectInterface0160_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0030.ets + + +@Component +struct UiAttributesFloatingLayerInterface0030 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:50,y:-50}}) + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid005.ets + +@Component +struct UIComponentGrid005 { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State rowsTemplateValue: string = "1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .rowsTemplate(this.rowsTemplateValue) + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('repeat(auto-fit, 90px)') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.rowsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_498: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets new file mode 100644 index 000000000..42a47e352 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets @@ -0,0 +1,472 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Alignment } from '@ohos.arkui.component'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Image,$r,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur5.ets + +@Component +struct linearGradientBlur5 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0010.ets + + +@Component +struct UIComponentCommonattrGrayscale0010 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0110.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0110 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0110_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0110_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0430.ets + + +@Component +struct UIAttributesColorrampInterface0430{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%" + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0040.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0040 { + build() { + Column({space:10} as ColumnOptions) { + Column({space:5} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0530.ets + + +@Component +struct ActionEventCommoneventDragInterface0530 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string) => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0020.ets + + +@Component +struct UIComponentCommonattrGrayscale0020 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .foregroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [-10, -10] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0280.ets + + +@Component +struct UIAttributesBackgroundInterface0280 { + build() { + Column({ space: 5 } as ColumnOptions) { + Text('组件Row正常显示,渐变半径为20%发生颜色渐变').fontSize(12).width('90%').fontColor(0xCCCCCC) + Row(){ + } + .width(200) + .height(200) + .radialGradient({ + center: [50, 50], + colors: [[Color.Blue,0.0],[0xD3E0DC,0.3], ['rgb(255,255,255)', 1.0]], + radius: "20%", + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0060.ets + + +@Component +struct UIComponentCommonattrGrayscale0060 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [128, 128] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/BlurStyle_Thick.ets + +@Component +struct BlurStyle_Thick { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thick, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface073.ets + + +@Component +struct UIAttributesBackgroundInterface073 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition(Alignment.TopEnd) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0650.ets + + +@Component +struct ActionEventCommoneventDragdefault0650 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽中文文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(150) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_499: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets new file mode 100644 index 000000000..8ccd14656 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets @@ -0,0 +1,408 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import image from '@ohos.multimedia.image'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + PlaybackSpeed, + PreDragStatus, + DragBehavior, + ScrollDirection, + XComponentController, + LongPressGesture, + Resource, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + $rawfile, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ResourceStr,$r, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component, Column +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import {PanelType} from '@ohos.inputMethod.Panel' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0410.ets + + +@Component +struct ActionEventControlCallback0410 { + @State context: string = "hello" + @State show: boolean = true + build() { + Column() { + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0520.ets + + +@Component +struct UIAttributesBackgroundInterface0520 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: 0, + end: 0, + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]], + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0240.ets + + +@Component +struct UIAttributesFocuscontrolInterface0240 { + @State focusOnTouchValue: boolean = false + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0240_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + Image(this.iconStr) + .width(200) + .height(270) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0030.ets + + +@Component +struct UIAttributesModaltransitionAnimator0030 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragVideo/CommonEventDragVideo0200.ets + + +@Component +struct CommonEventDragVideo0200 { + @State targetImage: string = ''; + @State status: string = ''; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State pixmap: image.PixelMap | undefined = undefined + @State videoSrc: Resource = $rawfile('video1.mp4') + @State previewUri: Resource = $r('app.media.startIcon') + @State curRate: PlaybackSpeed = PlaybackSpeed.Speed_Forward_1_00_X + build() { + Row() { + Column() { + Text('发起方') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Video({ + src: this.videoSrc, + previewUri: this.previewUri, + currentProgressRate: this.curRate + }) + .id('view-1') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent): (() => void) => { + }) + .onDragEnd((event: DragEvent): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + } + Text('接收方') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#cccccc') + Row() { + Image(this.targetImage) + .id('view-2') + .width(200) + .height(200) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .onDragMove((event: DragEvent): void => { + event.dragBehavior = DragBehavior.COPY + }) + .allowDrop([uniformTypeDescriptor.UniformDataType.VIDEO]) + .onDrop((event?: DragEvent): void => { + event?.setResult(DragResult.DRAG_FAILED) + }) + } + Text('在目标组件松手接收方拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%') + } + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0110.ets + + +@Component +struct UIAttributesModaltransitionSafearea0110 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + .margin({bottom: 20} as Margin) + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.SpaceBetween) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle2.ets + +@Component +struct TextBackgroundBlurStyle2 { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN FOLLOWS_WINDOW_ACTIVE_STATE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + + +export const FLAG_OF_FILE_5: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets new file mode 100644 index 000000000..8d71d5bc2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets @@ -0,0 +1,425 @@ +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { promptAction } from '@kit.ArkUI'; + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,ClickEvent,Button,Text, +} from '@ohos.arkui.component' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridLayoutOptions,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ItemAlign, + ObscuredReasons, + FlexDirection, + Radio +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import {BusinessError} from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,$r,Row +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0210.ets + + +@Component +struct ActionEventCommoneventDragImage0210 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Text("获取目标发起方资源为:"+this.uri).fontSize(20) + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.chuan'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0060.ets + + +@Component +struct UIAttributesRenderFit0060 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_LEFT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0090.ets + + +@Component +struct UIAttributesSelectedStyle0090 { + @State isChecked: boolean = true; + build() { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio') + Radio({ value: 'Radio', group: 'radioGroup' }).checked(this.isChecked) + .height(50) + .width(50) + .onChange((isChecked: boolean) :void=> { + console.log('Radio status is ' + isChecked) + } ) + Button('Click') + .id('UIAttributesSelectedStyle0090') + .onClick((e: ClickEvent) => { + this.isChecked = false; + }) + } + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_three.ets + +@Component +struct ButtonExample { + build() { + Column({ space: 15 } as ColumnOptions) { + Text('按钮类型').fontSize(9).fontColor(0xCCCCCC).width('90%') + Button('button8', { type: ButtonType.Capsule,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button9', { type: ButtonType.Circle,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('button10', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + Button('buttonxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .margin({top:10} as Margin) + Button('button11', { type: ButtonType.Normal,stateEffect:true}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button11') + .margin({top:10} as Margin) + Button('button12', { type: ButtonType.Normal,stateEffect:false}) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .key('button12') + .margin({top:10} as Margin) + + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0190.ets + + +@Component +struct UIAttributesModaltransitionVision0190 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:'100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur1.ets + +@Component +struct linearGradientBlur1 { + private_resource1:Resource = $r('app.media.startIcon') + @State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(0, { fractionStops: [[0,0]], direction: GradientDirection.None } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_029.ets + +@Component +struct Grid_029 { + scroller1: Scroller = new Scroller() + @State Number: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8') + @State layoutOptions: GridLayoutOptions = { + regularSize: [1.2555, 1], + irregularIndexes: [3, 8], //设置第几个item占一整行 + onGetIrregularSizeByIndex:(index:number):[number,number] => { + return [2,2] + } + } as GridLayoutOptions + build() { + Scroll() { + Column() { + Grid(this.scroller1, this.layoutOptions) { + ForEach(this.Number, (day: string, index:number) => { + ForEach(this.Number, (day: string, index:number) => { + GridItem() { + Text("N" + day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .focusable(true) + }.size({ width: "100%", height: 50 }).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .height(500) + .width("95%") + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .margin(10) + .onScrollIndex((first: number,last: number) => { + console.info("XXX Grid1 firstindex: " + String(first) + ", lastindex: " + String(last)) + }) + .onScrollStart(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStart`) + }) + .onScrollStop(() => { // 规格:控制器不触发该回调 + console.log(`XXX Grid1 Swipe onScrollStop`) + }) + .onReachStart(() => { + console.log(`XXX Grid1 Swipe onReachStart`) + }) + .onReachEnd(() => { + console.log(`XXX Grid1 Swipe onReachEnd`) + }) + } + .width('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0150.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0150 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventClickDfx/ActionEventCommoneventClickDfx0050.ets + + +@Component +struct ActionEventCommoneventClickDfx0050 { + @State num: string = "" + build() { + Column({ space: 10 } as ColumnOptions) { + Button("按钮1点击300").onClick((event: ClickEvent) => { + this.num = "点击" + }) + .margin(10).id("ActionEventCommoneventClickdfx0050") + Text(this.num) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0050.ets + + +@Component +struct UIAttributesTransparencyInterface0050 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:1') + .onClick((e:ClickEvent) => { + this.opacityValue = 1; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_50: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets new file mode 100644 index 000000000..a19c85b75 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets @@ -0,0 +1,405 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,ShadowOptions,Color,FlexAlign,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextPicker,FontWeight, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,$$,SheetSize,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0710.ets + + +@Component +struct ActionEventCommoneventDragdefault0710 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽篇章文本\n可拖拽篇章文本可拖拽篇章文本可拖拽篇章文\n本可拖拽篇章文本可拖拽篇章文本可拖' + + '拽篇章文\n本可拖拽篇章文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0500.ets + + +@Component +struct UIAttributesModaltransitionVision0500 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + showClose: false, + height: SheetSize.MEDIUM, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0220.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0220 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(Color.Red) + .outlineRadius(15) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0550.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0550 { + private select: number = 1 + private fruits: string[] = ['apple1', 'orange2', 'peach3', 'grape4'] as string[] + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0550_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0550_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0550_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextPicker({ + range: this.fruits, + selected: this.select + }) + .onChange((value: string | string[], index: number | number[]):void => { + console.info('Picker item changed, value: ' + value + ', index: ' + index) + }) + .disappearTextStyle({ + color: Color.Red, + font: { + size: 15, + weight: FontWeight.Lighter + } + }) + .textStyle({ + color: Color.Black, + font: { + size: 20, + weight: FontWeight.Normal + } + }) + .selectedTextStyle({ + color: Color.Blue, + font: { + size: 30, + weight: FontWeight.Bolder + } + }) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0550_004') + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0030.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0030 { + build() { + Column({space:20} as ColumnOptions) { + Column() { + Column({space:10} as ColumnOptions) { + Text("Text1") + .shadow({ + radius: 50, + color: Color.Blue, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Text("Text2") + .shadow({ + radius: 50, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + } + .width("70%") + .height(70) + .justifyContent(FlexAlign.Center) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .useShadowBatching(true) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0140.ets + + +@Component +struct UIAttributesColorrampInterface0140 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.LeftBottom + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentGridAlignltems/UIComponentGridAlignltems0350.ets + +@Component +struct UIComponentGridAlignltems0350 { + @State data: Array = new Array(); + @State items: Array = new Array(); + scroller: Scroller = new Scroller(); + aboutToAppear(): void { + for (let i = 0; i < 20; i++) { + this.data.push(String(i)) + this.items.push(String(this.getSize())) + } + } + getSize() { + let ret = Math.floor(Math.random() * 5) + return 5 + } + build() { + Column({ space: 10 } as ColumnOptions) { + Text('Grid alignItems示例代码') + Grid(this.scroller) { + ForEach(this.data, (item: string, index:number) => { + GridItem() { + Column() { + Column().height(100).backgroundColor('#D5D5D5').width('100%') + Text(`${item}`.repeat(1)) + .flexGrow(1).width('100%').align(Alignment.TopStart).height(60) + .backgroundColor('#F7F7F7') + Column().height(50).backgroundColor('#707070').width('100%') + } + } + .border({ color: Color.Black, width: 1 } as BorderOptions) + }) + } + .id('0') + .columnsGap(10) + .rowsGap(5) + .columnsTemplate('1fr 1fr') + .width('80%') + .height('100%') + .alignItems(GridItemAlignment.STRETCH) + .hitTestBehavior(HitTestMode.Block) + .scrollBar(BarState.Off) + .onClick((event: ClickEvent) => { + this.scroller.scrollEdge(Edge.Bottom) + }) + } + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_51: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets new file mode 100644 index 000000000..cd38b0281 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets @@ -0,0 +1,428 @@ +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,Row,Margin,$r,DragItemInfo, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,DragBehavior,DragItemInfo,$r,LongPressGesture,DragResult, + Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,FontWeight,Text,VerticalAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import dragController from '@ohos.arkui.dragController'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,CopyOptions +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0910.ets + + +@Component +struct UIAttributesColorrampInterface0910 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [50, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0560.ets + + +@Component +struct UIAttributesImageeffectInterface0560 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(-0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface125.ets + + +@Component +struct UIAttributesBackgroundInterface125 { + build() { + Column() { + Row() + .backgroundColor('rgb(0,0,255)') + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid006.ets + +@Component +struct UIComponentGrid006 { + @State numbers: Array = new Array() + layoutDirectionValue: GridDirection = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Text('') + .fontSize(15).fontColor(0xCCCCCC).width('90%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(0) + .layoutDirection(this.layoutDirectionValue) + Button('GridDirection.Column') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.layoutDirectionValue = GridDirection.Column + }).id('btn01') + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0100.ets + + +@Component +struct ActionEventCommoneventDragInterface0100 { + @State text: string[] = [] as string[]; + build() { + Column({ space: 10 } as ColumnOptions) { + Text('文本文本文本').fontSize(30).selection(0, 100).id('0').draggable(false).copyOption(CopyOptions.InApp).onDragEnd((event: DragEvent, extraParams?: string):void => { + this.text.push('DragEnd') + }) + Text(`回调触发:${Array.from(new Set(this.text))}`) + }.width('100%') + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0020.ets + +@Component +struct ActionEventCommonEventDragListItem0020 { + @State message: string = '拖动我'; + build() { + Column() { + Button(this.message) + .id('ActionEventCommonEventDragListItem0020') + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{ + }) + .margin({ top: 100 } as Margin) + .fontSize(50) + .fontWeight(FontWeight.Bold) + .alignRules({ + center: { anchor: '__container__', align: VerticalAlign.Center }, + middle: { anchor: '__container__', align: HorizontalAlign.Center } + }) + Text('1').fontSize(1).id("ActionEventCommonEventDragListItem0020Text") + } + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracCard0070.ets + + +@Component +struct UIActtonEventComdneventDracCard0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("card_07_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Image(this.targetImage) + .id("card_07_02") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent?: DragEvent) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let rect: Rectangle = event.getPreviewRect(); + this.imageWidth = Number(rect.width as number); + this.imageHeight = Number(rect.height as number); + event.useCustomDropAnimation = false; + this.imgState = Visibility.None; + event.setResult(DragResult.DRAG_SUCCESSFUL); + } as Callback) + } as Callback) + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("card_07_03") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0180.ets + + +@Component +struct UIAttributesImageeffectInterface0180 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(2.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0240.ets + + +@Component +struct UIAttributesModaltransitionVision0240 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0100.ets + + +@Component +struct ActionEventCommoneventDragImage0100 { + @State isDrag:string = '' + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('拖拽结果:' + this.isDrag).fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .key('img1') + .onDragStart((event: DragEvent, extraParams?: string):DragItemInfo => { + return { builder: () => { + this.pixelMapBuilder() + }, extraInfo: 'extra info' } as DragItemInfo; + }) + } + Button('获取拖拽属性').onClick((e:ClickEvent) => { + let strJson: string = inspector.getInspectorByKey('img1'); + let marq =JSON.parseJsonElement(strJson).getElement('$attrs').getString('draggable'); + this.isDrag = '' + marq + }) + .id('btn') + .margin({top:20} as Margin) + } + }.width('100%').padding(50) + } +} + + +export const FLAG_OF_FILE_52: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets new file mode 100644 index 000000000..55ee721f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets @@ -0,0 +1,380 @@ +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + $r, + DragPreviewMode, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign,ColumnOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,ClickEvent, + Resource,$r, +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineRadiuses, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0110.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0110 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineRadius({topLeft: 16, topRight: 0, bottomLeft: -1, bottomRight: 1} as OutlineRadiuses) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest10.ets + +@Component +struct ZIndexDynamicModificationTest10 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 6 //text的value: 'CBA设置ZIndex:-3 -2 -1' + this.whValueIndex = 1 //组件顺序设置为CBA + this.zIndexValueIndex = 5 //CBA设置ZIndex:-3 -2 -1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0850_504.ets + + +@Component +struct UIComponentListandgridGridInterface_0850_504 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventConnect/ActionEventConnect010.ets + + +@Component +struct ActionEventConnect010 { + private imageOne: Resource = $r('app.media.startIcon'); + @State src: Resource = this.imageOne + @State strname:string='' + build(){ + Column(){ + Image(this.src) + .id("ActionEventConnect010") + .width(100) + .height(100) + .onClick((e:ClickEvent) => { + this.strname = "onClick" + }) + Text(this.strname) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0040.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0040 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('4').width('80%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('5').width('80%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .height('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface115.ets + + +@Component +struct UIAttributesBackgroundInterface115 { + build() { + Column() { + Row() + .backgroundColor(Color.Grey) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0070.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0070 { + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:220,color:Color.Blue,offsetX:0,offsetY:0} as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({radius:280,color:Color.Pink,offsetX:0,offsetY:0} as ShadowOptions) + } + .useShadowBatching(false) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0120.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0120 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Text('Text') + .id('SubAceActionEventCommoneventDragImprove0120_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0120_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_53: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets new file mode 100644 index 000000000..4100f1bd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets @@ -0,0 +1,381 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, SizeOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Button,GradientDirection,FlexAlign,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + TextInput, + focusControl, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0050.ets + + +@Component +struct UIActtonEventComdneventDracForeground0050 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "linear-out-slow-in", + delay: 300, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0050_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0050_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization142.ets + + +@Component +struct SubAceUIComponentCommonattrFocusoptimization142 { + @State isFocus: boolean = false; + build() { + Column({ space: 50 } as ColumnOptions) { + TextInput() + .key('SubAceUIComponentCommonattrFocusoptimization142_key1') + .defaultFocus(true) + .onAppear(() => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_key1'); + }) + Button(`Button2 isFocus: 【 ${this.isFocus} 】`) + .key('SubAceUIComponentCommonattrFocusoptimization142_btn_key') + .width(300) + .height(60) + .fontSize(20) + .fontWeight(700) + .backgroundColor(Color.Pink) + .onFocus(() => { + this.isFocus = true; + }) + } + .id('SubAceUIComponentCommonattrFocusoptimization142_column') + .width('100%') + .height('100%') + .onClick((e: ClickEvent) => { + focusControl.requestFocus('SubAceUIComponentCommonattrFocusoptimization142_btn_key'); + }) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampAny/UIAttributesColorRampAny0040.ets + + +@Component +struct UIAttributesColorRampAny0040 { + build() { + Row(){ + Button('Hello,World') + .width(200).height(50) + .sweepGradient({ + center:[50,50], + start:0, + end:359, + colors:[[0xff00000,0],[0x0000ff,0.3],[0xfff001,0]] + } as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0100.ets + + +@Component +struct UIAttributesBackgroundInterface0100 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0380.ets + + +@Component +struct ActionEventCommoneventDragdefault0380 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface092.ets + + +@Component +struct UIAttributesBackgroundInterface092 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize({ width: 333 } as SizeOptions) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur4.ets + +@Component +struct linearGradientBlur4 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + + +export const FLAG_OF_FILE_54: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets new file mode 100644 index 000000000..457467aff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets @@ -0,0 +1,429 @@ +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,Flex,Text,FlexWrap,ClickEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, ColumnOptions, Button, ClickEvent, Margin, } from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Flex,Toggle,FlexAlign,ItemAlign,ToggleType, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,Row,FontWeight,GridLayoutOptions, + ForEach,Grid,GridItem,TextAlign,Margin,ColumnOptions +} from '@ohos.arkui.component' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/ActionEventRegisterComponentChangeEventCallbackGrid/040.ets + + +@Component +struct ActionEventRegisterComponentChangeEventCallbackGrid040 { + @State numbers1: String[] = ['0', '1', '2', '3', '4'] as String[] + @State numbers2: String[] = ['0', '1','2','3','4','5'] as String[] + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[Double, Double, Double, Double] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string) => { + ForEach(this.numbers1, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string) => day) + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Text('Use of GridLayoutOptions: onGetRectByIndex').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(undefined, this.layoutOptions3) { + ForEach(this.numbers2, (day: string) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height("100%") + .textAlign(TextAlign.Center) + } + .height("100%") + .width('100%') + }, (day: string) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0240_486.ets + + +@Component +struct UIComponentListandgridGridInterface_0240_486 { + @State numbers1: Array = new Array('0', '1', '2', '3', '4'); + @State numbers2: Array = new Array('0', '1','2','3','4','5'); + layoutOptions3: GridLayoutOptions = { + regularSize: [1, 1], + onGetRectByIndex: (index: number):[number,number,number,number] => { + if (index == 0) + return [0, 0, 1, 1] + else if(index==1) + return [0, 1, 2, 2] + else if(index==2) + return [0 ,3 ,3 ,3] + else if(index==3) + return [3, 0, 3, 3] + else if(index==4) + return [4, 3, 2, 2] + else + return [5, 5, 1, 1] + } + } as GridLayoutOptions + build() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers1, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(0) + .width(300) + .height(300) + Text('GridLayoutOptions的使用:onGetRectByIndex。').fontColor(0xCCCCCC).fontSize(9).width('90%') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0500.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0500 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0360.ets + + +@Component +struct ActionEventControlCallback0360 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Toggle') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Toggle'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0150.ets + + +@Component +struct UIAttributesImageEffectProjection0150 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.None) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid003.ets + +@Component +struct UIComponentGrid03 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollToIndex(13, true) + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0620.ets + + +@Component +struct UIAttributesModaltransitionVision0620 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface40.ets + + +@Component +struct AceActionEventCommoneventClickInterface40 { + @State text: string = 'y= '; + @State number1: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Button(this.text + this.number1) + .id('AceActionEventCommoneventClickInterface40') + .onClick((event: ClickEvent) => { + this.number1 = event.y; + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0050.ets + + +@Component +struct ActionEventControlCallback0050 { + @State context: string = "" + build() { + Column(){ + Flex({ wrap: FlexWrap.Wrap }) { // 子组件多行布局 + Text('1').width('50%').height(50).backgroundColor(0xF5DEB3) + Text('2').width('50%').height(50).backgroundColor(0xD2B48C) + Text('3').width('50%').height(50).backgroundColor(0xD2B48C) + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0050.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0050 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin -5px') + .focusBox({ + margin: LengthMetrics.px(-5), + }) + Button('button margin 内侧-5vp') + .focusBox({ + margin: LengthMetrics.vp(-5), + }) + Button('button margin 内侧-5fp') + .focusBox({ + margin: LengthMetrics.fp(-5), + }) + Button('button margin 内侧5') + .focusBox({ + margin: LengthMetrics.vp(5), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_55: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets new file mode 100644 index 000000000..68d5724f6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets @@ -0,0 +1,372 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Row, Margin, Grid, Edge, BarState, GridItem, Direction,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,TextAlign, + BarState,TapGesture,Margin,ListScroller,List,ListItem,ScrollSnapAlign, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, + DragPreviewMode,ColumnOptions,Color,Text,FlexAlign,Padding,Column, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0260.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0260 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.SOLID) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/SubAceActionEventCommoneventDragCard0210.ets + + +@Component +struct SubAceActionEventCommoneventDragCard0210 { + @State uri: string = ""; + @State AblockArr: string[] = [] as string[]; + @State BblockArr: string[] = [] as string[]; + @State img: string = ''; + @State isHave: boolean = false; + build() { + Column({ space: 15 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Text('Image拖拽') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image('./icon.png') + .id('SubAceActionEventCommoneventDragCard0210_btn') + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: UDC.Image = new UDC.Image(); + data.imageUri = './cat.jpg'; + let unifiedData = new UDC.UnifiedData(data); + event.setData(unifiedData); + }) + } + Column({ space: 10 } as ColumnOptions) { + Text('可释放区域') + .width('100%') + .height(80) + .fontSize(25) + .fontColor(Color.White) + .backgroundColor(Color.Pink) + Image(this.img) + .id('SubAceActionEventCommoneventDragCard0210_btn_1') + .width(100) + .height(100) + .border({ width: 1 }) + .allowDrop([UTD.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData: UDC.UnifiedData = (event as DragEvent).getData() as UDC.UnifiedData; + console.info('yxc =========1') + if (dragData != undefined) { + let arr: Array = dragData.getRecords(); + if (arr.length > 0) { + let image = arr[0] as UDC.Image; + this.uri = image.imageUri; + this.img = image.imageUri + console.info('yxc =========2' + this.img) + } else { + } + } + }) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UICoypokentScrollScrollGetitenrect/UICoypokentScrollScrollGetitenrect0260.ets + + +@Component +struct UICoypokentScrollScrollGetitenrect0260 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 + @State grid_width: number = 400 + @State grid_height:number = 300 + @State itemX:string = '' + @State itemY:string = '' + @State itemWidth:string = '' + @State itemHeight:string = '' + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .id('grid') + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width(this.grid_width) + .backgroundColor(0xFAEEE0) + .height(this.grid_height) + Text('x: '+this.itemX).fontSize(20) + Text('Y: '+this.itemY).fontSize(20) + Text('width: '+this.itemWidth).fontSize(20) + Text('height: '+this.itemHeight).fontSize(20) + Button('getItemRect').id('btn1').width(200).height(80) + .onClick((event:ClickEvent) => { + this.itemX = `${this.scroller1.getItemRect(0).x}` + this.itemY = `${this.scroller1.getItemRect(0).y}` + this.itemWidth = `${this.scroller1.getItemRect(0).width}` + this.itemHeight = `${this.scroller1.getItemRect(0).height}` + }) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrFocusenhancement/UIComponentCommonattrFocusenhancement0080.ets + + +@Component +struct UIComponentCommonattrFocusenhancement0080 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); + private listScroller: ListScroller = new ListScroller(); + @State flag: boolean = false; + build() { + Column() { + List({ space: 10, scroller: this.listScroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('item_' + item) + .width('100%') + .height(100) + .textAlign(TextAlign.Center) + .backgroundColor(0xFFFFFF) + } + }, (item: number) => String(item)) + }.focusable(false) + .padding(10) + .backgroundColor(Color.Yellow) + .height(500) + .scrollSnapAlign(this.flag ? ScrollSnapAlign.CENTER : ScrollSnapAlign.START) + Row({ space: 20 } as RowOptions) { + Button('focusable false').focusable(false) + }.height('50%') + }.onClick((e: ClickEvent)=>{}) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0050.ets + + +@Component +struct UIAttributesModaltransitionVision0050 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[500, 350] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_025.ets + +@Component +struct Grid_025 { + @State rowStart : number = 1 + @State rowEnd : number = 1 + @State columnStart : number = 1 + @State columnEnd : number = 1 + build() { + Column() { + Column() { + Text('rowStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowStart = 1; + }).id('rowStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowStart = 2; + }).id('rowStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.rowStart = 3; + }).id('rowStart3') + } + Text('rowEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.rowEnd = 1; + }).id('rowEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.rowEnd = 2; + }).id('rowEnd3') + Button("3") + .onClick((event:ClickEvent) => { + this.rowEnd = 3; + }).id('rowEnd5') + } + Text('columnStart').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnStart = 1; + }).id('columnStart1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnStart = 2; + }).id('columnStart2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnStart = 3; + }).id('columnStart3') + } + Text('columnEnd').fontSize(12) + Row() { + Button("1") + .onClick((event:ClickEvent) => { + this.columnEnd = 1; + }).id('columnEnd1') + Button("2") + .onClick((event:ClickEvent) => { + this.columnEnd = 2; + }).id('columnEnd2') + Button("3") + .onClick((event:ClickEvent) => { + this.columnEnd = 3; + }).id('columnEnd3') + } + }.height('40%') + Grid() { + GridItem() { + Text('4') + .fontSize(16) + .backgroundColor(0xFAEEE0) + .width('100%') + .height('100%') + .textAlign(TextAlign.Center) + }.rowStart(this.rowStart).rowEnd(this.rowEnd).columnStart(this.columnStart).columnEnd(this.columnEnd) // 同时设置合理的行列号 + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .width('90%').height("60%") + .border({width:1} as BorderOptions) + .direction(Direction.Ltr) + }.width('100%').margin({ top: 5 }as Margin) + } +} + + +export const FLAG_OF_FILE_56: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets new file mode 100644 index 000000000..ed1e6a8b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets @@ -0,0 +1,412 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + ImageFit, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Color +} from '@ohos.arkui.component' + +import { Entry,Component,Column,Text,Button,ColumnOptions,Margin +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage, +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,Row,$r,Builder,ResourceStr,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection,Callback, + BarState,CaretOffset,TextInputController,TextInput, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, Text, Image } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0370.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0370 { + @State count: string = "点击按钮发生变化"; + @Builder + overlayBuilder(){ + Button("手指点击") + .id("shouzhiButton") + .fontSize(30) + .onClick((e: ClickEvent) => { + this.count="发生变化啦" + }) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .margin(100) + } + build() { + Column() { + Text(this.count).fontSize(40) + Image('2.png').overlay((): void => {this.overlayBuilder()}).height(400).width(500) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0190.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0190 { + @State text: string = '' + @State passwordState: boolean = false + controller: TextInputController = new TextInputController() + build() { + Column() { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .inputFilter('[a-z]', (e: string) => { + console.log(String(e)) + } as Callback) + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 128, 64), + strokeWidth: LengthMetrics.vp(20) + }) + .padding(30) + .height('100%') + .width('100%') + } + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/ContentOnDisappear.ets + +@Component +struct ContentOnDisappear { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @State num:number = 0 + @State num2:number = 0 + @State num3:number = 0 + @State num4:number = 0 + @State num5:number = 0 + @State num6:number = 0 + @State sheetHeight:number = 300; + @State showDragBar:boolean = true; + @Builder myBuilder4() {} + @Builder myBuilder3() { + } + @Builder myBuilder2() { + } + @Builder myBuilder() { + Column() { + Button("transition modal 2").fontSize(11).id('ContentOnDisappear5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Orange, onAppear: () => { + this.num3 = this.num + this.num3+=1 + console.log("BindContentCover onAppear2.") + }, + onDisappear: () => { + this.num4 = this.num2 + this.num4+=1 + console.log("BindContentCover onDisappear2.") + }} as SheetOptions) + Text('2 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('2 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Button("close modal 1").fontSize(11).id('ContentOnDisappear6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition modal 1").fontSize(11).id('ContentOnDisappear7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height: this.sheetHeight, dragBar: this.showDragBar, backgroundColor: Color.Pink, onAppear: () => { + this.num+=1 + console.log("BindContentCover onAppear1.")}, onDisappear: () => { + this.num2+=1 + console.log("BindContentCover onDisappear1.")}} as SheetOptions) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('1 onAppear:'+String(this.num)).fontSize(20) + .margin(10) + Text('1 onDisappear:'+String(this.num2)).fontSize(20) + .margin(10) + Text('触发将被覆盖').fontSize(20) + .margin(10) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0120.ets + + +@Component +struct UIAttributesFocuscontrolInterface0120 { + @State fontColor: string = '#182431' + @State selectedFontColor: string = '#007DFF' + @State currentIndex: number = 0 + @State selectedIndex: number = 0 + private controller: TabsController = new TabsController() + private iconStr: ResourceStr = $r('app.media.startIcon'); + @Builder + tabBuilder(index: number, name: string) { + } + build() { + Column({ space: 20 } as ColumnOptions) { + Button("Focus-btn4") + .width(200) + .height(70) + .fontColor(Color.White) + Column({ space: 20 } as ColumnOptions) { + Image(this.iconStr) + .width(200) + .height(70) + .defaultFocus(true) + } + Column({ space: 20 } as ColumnOptions) { + Row({ space: 5 } as RowOptions) { + Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { + TabContent() { + Column().width('100%').height('50%').backgroundColor('#00CB87') + }//.tabBar(this.tabBuilder(0, 'green')) + .tabBar(():void =>{this.tabBuilder(0, 'green')}) + .defaultFocus(true) + TabContent() { + Column().width('100%').height('50%').backgroundColor('#007DFF') + }//.tabBar(this.tabBuilder(1, 'blue')).id('focus') + .tabBar(():void =>{this.tabBuilder(1, 'blue')}) + .id('focus') + }.defaultFocus(false) + } + }.width('100%') + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouse/ActionEventCommonEventMouse0010.ets + + +@Component +struct ActionEventCommonEventMouse0010 { + @State hoverState: string = ''; + build() { + Column({ space: 30 } as ColumnOptions) { + Text(this.hoverState).height(80) + Button("Hover测试文本--0010") + .id("ActionEventCommonEventMouse0010_01") + .margin({ top: 80 } as Margin) + .fontSize(24) + .height(80) + .onHover((isHover:boolean):void=>{ + if (isHover) { + this.hoverState = "HoverTrue" + } + }) + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0210.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0210 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Image($r('app.media.startIcon')) + .width(360) + .height(360) + .objectFit(ImageFit.Fill) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0720.ets + + +@Component +struct ActionEventCommoneventDragdefault0720 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽红色文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(300) + .height(250) + .border({width: 1}) + .fontColor(this.txt_color) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Red; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(300) + .border({ width: 1 }) + .draggable(true) + .fontColor(Color.Red) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + + +export const FLAG_OF_FILE_57: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets new file mode 100644 index 000000000..958a96881 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets @@ -0,0 +1,418 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, + BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,RowSplit,TextAlign,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { promptAction } from '@kit.ArkUI'; + +import { BusinessError } from '@ohos.base'; + +import { Column,Component,Entry,Button,Margin,FontWeight,DragEvent,Visibility,Color,Builder,PreDragStatus, + ColumnOptions,Text,Image,Row,DragResult, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,ShadowOptions +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0380.ets + + +@Component +struct UIAttributesImageeffectInterface0380 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ radius: 10, color: "#0000FF" } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface075.ets + + +@Component +struct UIAttributesBackgroundInterface075 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "280px" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceUIDragEventReportRule/SubAceUIDragEventReportRule0010.ets + + +@Component +struct SubAceUIDragEventReportRule0010 { + @State arr: Array = new Array(1, 2, 3, 4, 5, 6, 7, 8, 9,); + build() { + Column({ space: 5 } as ColumnOptions) { + List() { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Row({ space: 30 } as RowOptions) { + Button('Button' + item) + .width(100) + .height(100) + .border({ width: 1, radius: 25 }) + Text(`image item - ${item}`) + .fontColor(Color.White) + .fontSize(25) + .fontWeight(700) + } + .justifyContent(FlexAlign.Start) + .width('100%') + .padding({ left: 30, top: 30 } as Padding) + .backgroundColor(Color.Pink) + } + }, (item: Double, index: Double) => String(item)) + } + .height('90%') + .draggable(true) + .id('SubAceUIDragEventReportRule0010_list') + } + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventDragListItem/ActionEventCommonEventDragListItem0070.ets + +@Component +struct ActionEventCommonEventDragListItem0070 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + @State dragState: string = ''; + @State dragStateSuccess: string = ''; + @Builder + pixelMapBuilder() { + Column() { + Image('2.png') + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Red; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Blue; + } + } + build() { + Row() { + Column({ space: 30 } as ColumnOptions) { + Text(`拖拽状态初始值: 未拖拽`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽过程中松手: ${this.dragState}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Text(`拖拽到指定区域: ${this.dragStateSuccess}`) + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + Image('2.png') + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .visibility(this.imgState) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.backGroundColor = Color.Transparent; + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .id('DragListItem0070Image') + .onDragEnd((event: DragEvent, extraParams?: string):void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.dragStateSuccess = '拖拽成功'; + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.dragState = '拖拽失败'; + } + }) + .draggable(true) + Text(`1`).fontSize(1).id('text1').margin(40).id("DragListItem0070Text") + Column() { + Text(this.targetText) + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 }) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((event as DragEvent), (event1: DragEvent) => { + let records: Array = event1.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.targetText = plainText.textContent; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0450.ets + + +@Component +struct UIComponentCommonattrForegroundEffect450 { + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0450_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0450_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0450_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + RowSplit() { + Text('1').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('25%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('15%').height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .resizeable(true) // 可拖动 + .width('100%') + .height(100) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0450_004') + .layoutWeight(1) + } + .width('100%') + .margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0010.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0010 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0010") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurStyle1.ets + +@Component +struct TextBackgroundBlur { + build() { + Column() { + Text('BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundColor('rgba(150, 0, 0, 0.5)') + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('NONE').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.NONE) + Text('BACKGROUND_THIN ALWAYS_INACTIVE Color.Red').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + inactiveColor: Color.Red + }) + Text('BACKGROUND_THIN').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + Text('BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('90%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + } + .backgroundImageSize(ImageSize.Cover) + } +} + + +export const FLAG_OF_FILE_58: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets new file mode 100644 index 000000000..abaaf4c3c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets @@ -0,0 +1,417 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus,Margin,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface117.ets + + +@Component +struct UIAttributesBackgroundInterface117 { + build() { + Column() { + Row() + .backgroundColor(Color.Pink) + .width(600) + .height(400) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0500.ets + + +@Component +struct ActionEventCommonEventMouseStyle0500 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0500_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0500" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0500_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0030.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0030 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor rgba') + .focusBox({ + strokeColor: ColorMetrics.rgba(192, 192, 192), + }) + Button('button strokeColor Green') + .focusBox({ + strokeColor: ColorMetrics.resourceColor(Color.Green), + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: ColorMetrics.resourceColor($r('app.media.startIcon')), + }) + Button('button strokeColor fc0303') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#fc0303'), + }) + Button('button strokeColor 0xff000000') + .focusBox({ + strokeColor: ColorMetrics.resourceColor('#ff000000'), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0090.ets + + +@Component +struct ActionEventCommoneventDragGriditem0090 { + @State numbers: String[] = ['0', "1", "2"] as String[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + } + Row() { + Column() { + Text('不支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text().fontSize(15).width('100%') + } + .id("img2") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = JSON.parseJsonElement(extraParams as string).getString('extraInfo'); + this.AblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + console.log("ondrop not udmf data"); + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + Column() { + Text('支持拖拽的位置') + .fontSize('15dp') + .height('10%') + Column() { + Text(this.textContent).fontSize(15).width('100%') + } + .id("img3") + .width('100%') + .height('90%') + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.textContent = plainText.textContent; + }) + }) + } + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0810.ets + + +@Component +struct UIAttributesColorrampInterface0810 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:'90deg' + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0530.ets + + +@Component +struct UIAttributesColorrampInterface0530 { + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [0, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + this.colors= [["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Green, 1]] + } else { + this.btnShow = Visibility.Visible + this.colors= [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_59: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets new file mode 100644 index 000000000..071293fe3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets @@ -0,0 +1,482 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { State, Prop } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + TextAreaController, + Button, + TextArea, + MenuPolicy, + ClickEvent, + TextAreaOptions, + ResourceStr +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection,ListItemGroup,BarState, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0200.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0200 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.RESIZE_COVER_BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 0.5 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0300.ets + + +@Component +struct UIAttributesImageeffectInterface0300 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0090.ets + + +@Component +struct UIAttributesColorRampBlurGradient0090 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Right} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0130.ets + + +@Component +struct UIAttributesImageeffectInterface0130 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0040.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0040 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0570.ets + + +@Component +struct UIAttributesColorrampInterface0570 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + @State colors:Array<[ResourceColor, number]> = [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] as Array<[ResourceColor, number]>; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: this.colors, + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.Hidden + this.colors =[["#aaa", 0.0], [Color.Yellow, 0.3], [Color.Gray, 1]] + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + this.colors =[["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]] + } + this.flag=!this.flag + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0240.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0240 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List({ space: 10 }) { + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + ListItemGroup() { + ListItem() { + Text('a') + } + ListItem() { + Text('b') + } + ListItem() { + Text('c') + } + } + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .borderWidth(1) + .padding(50) + .justifyContent(FlexAlign.Center) + } + .id('scroll') + .scrollBar(BarState.On) + .scrollable(ScrollDirection.Vertical) + } + .justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0320.ets + + +@Component +struct SubAceActionWindowWindowCustom0320 { + controller: TextAreaController = new TextAreaController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller?.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextArea({ text: 'text', controller: this.controller } as TextAreaOptions) + .id('input') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization125.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization125 { + @State pageInfos: NavPathStack = new NavPathStack() as NavPathStack; + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + pageFourTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + Button('Button') + .width(100) + .height(40) + .defaultFocus(true) + } + } + .title('pageFour') + .backgroundColor(Color.Pink) + } + @Builder + PageMap(name: string, param: object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } else if (name === 'pageFour') { + this.pageFourTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageFour') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_four_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageFour', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('首页') + .id('SubaceUlComponentCommonAttRlfocusOptimization125_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(new NavPathStack()) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + + +export const FLAG_OF_FILE_6: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets new file mode 100644 index 000000000..9056720bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets @@ -0,0 +1,372 @@ +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle,ThemeColorMode,AdaptiveColor, + BlurStyleActivePolicy,ImageSize +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextBackgroundBlurAndEffectIndex.ets + +@Component +struct TextBackgroundBlurAndEffectIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Text('BackgroundEffect') + .fontSize(20) + .fontWeight(500) + .width('100%') + .backgroundColor('#DCDCDC') + .fontColor(Color.Blue) + .textAlign(TextAlign.Center) + .height(50) + .margin(5) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:0 BACKGROUND_THIN ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 0, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + Text('radius:100 ALWAYS_ACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_ACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE BEHIND_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_ACTIVE WITHIN_WINDOW').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 ALWAYS_INACTIVE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.ALWAYS_INACTIVE, + }) + Text('radius:100 FOLLOWS_WINDOW_ACTIVE_STATE').width('100%').textAlign(TextAlign.Start) + .width('95%') + .height(60) + .margin(5) + .borderWidth(1) + .backgroundEffect({ + radius: 100, + saturation: 2, + }) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN, { + colorMode: ThemeColorMode.LIGHT, + adaptiveColor: AdaptiveColor.DEFAULT, + scale: 1.0, + policy: BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE, + }) + } + .backgroundImageSize(ImageSize.Cover) + }.scrollBarColor(Color.Transparent) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0070.ets + + +@Component +struct UIAttributesBackgroundInterface0070 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0060.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0060 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0220.ets + + +@Component +struct UIAttributesImageeffectInterface0220 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0110.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0110 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0280.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0280 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0160.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0160 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor($r('app.media.startIcon')) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0130.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0130 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(this.mar) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(this.mar) + } + .borderWidth(1) + .resizeable(false) // 不可拖动 + .width('100%') + }.width('100%') + } +} + + +export const FLAG_OF_FILE_60: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets new file mode 100644 index 000000000..a000e51e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets @@ -0,0 +1,423 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + TextInputController, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions,TextInput,TextInputOptions, +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, + ComputedBarAttribute, +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Grid,ForEach,GridItem, + Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image' + +import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, + Grid,ForEach,ClickEvent,DragPreviewMode,Padding,DragPreviewOptions,DragInteractionOptions, + DragEvent,GridItem,CommonMethod, applyStyles, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,ResourceColor,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Text,Padding,DragEvent,Image,$r +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0320.ets + + +@Component +struct ActionEventCommoneventDragInterface0320 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height('100%') + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0100.ets + + +@Component +struct UIAttributesColorrampInterface0100 { + @State colors:Array<[ResourceColor, number]> = [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5]] as Array<[ResourceColor, number]>; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + direction: GradientDirection.Bottom, + colors: this.colors + } as LinearGradientOptions) + .animation({ + duration: 2000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.colors= [[$r('app.media.startIcon'), 0.0], [Color.Yellow, 0.5]] + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur10.ets + +@Component +struct linearGradientBlur10 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.RightTop } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragScenarios/ActionEventCommoneventDragScenarios0070.ets + + +@Component +struct ActionEventCommoneventDragScenarios0070 { + @State pixmap: image.PixelMap|undefined = undefined + private arr: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18] as number[] + @State colors: Color[] = + [Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Yellow, Color.Orange, Color.Pink, Color.Yellow, + Color.Red, Color.Blue, Color.Brown, Color.Gray, Color.Green, Color.Red, Color.Blue, Color.Brown, Color.Gray, + Color.Green] as Color[] + @State isSelectedItem: boolean[] = [] as boolean[] + @State previewData: DragItemInfo[] = [] as DragItemInfo[] + @State numberBadge: number = 0; + scroller: Scroller = new Scroller() + normalStyles(instance: CommonMethod): void { + instance.opacity(0.3) + } + selectStyles(instance: CommonMethod): void { + instance.opacity(1.0) + } + @Builder dragStartBuilder() { + Column() { + Text("builder dragStart") + .width(150) + .height(50) + .fontSize(20) + .borderRadius(10) + .textAlign(TextAlign.Center) + .fontColor(Color.Black) + .backgroundColor(Color.Pink) + } + } + build() { + Column() { + Grid(this.scroller) { + ForEach(this.arr, (item: number) => { + GridItem() { + Text('item ' + item) + .width('100%').height(100).fontSize(16) + .textAlign(TextAlign.Center).borderRadius(10) + } + .id(`${item}`) + .backgroundColor(this.colors[item]) + .draggable(true) + .selectable(true) + .selected(this.isSelectedItem[item]) + .stateStyles({ + normal: this.normalStyles, + selected: this.selectStyles + }) + .onClick((e:ClickEvent) => { + }) + .dragPreviewOptions({ mode: DragPreviewMode.AUTO } as DragPreviewOptions, + { isMultiSelectionEnabled: true, defaultAnimationBeforeLifting: true } as DragInteractionOptions) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .dragPreview(():void => { + }) + }, (item: number,index:number) => item+'') + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('80%') + .height('80%') + } + .width('100%') + .height('100%') + .backgroundColor(0xDCDCDC) + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0140.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0140 { + @State radiusValue: number = 0; + private data: string[] = ["1", "2", "3", "4"] as string[] + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + Grid() { + ForEach(this.data, (item: string,index:number) => { + GridItem() { + Text(item) + } + }) + } + .columnsTemplate('1fr 1fr') + .rowsTemplate('1fr 1fr') + .height(50) + .width(100) + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur6.ets + +@Component +struct linearGradientBlur6 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 +build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.LeftBottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_011.ets + +@Component +struct Grid1 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置columnsGap属性值为-5').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(-5) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0100.ets + + +@Component +struct UIAttributesFocuscontrolInterface0100 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): boolean { + this.str1 = "error" + return true + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller }as TextInputOptions) + .width(380) + .height(60) + .groupDefaultFocus(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + + +export const FLAG_OF_FILE_61: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets new file mode 100644 index 000000000..97f3a72d7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets @@ -0,0 +1,423 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + FontWeight, + TextArea, + CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color, + EdgeEffect, + HorizontalAlign, + FlexAlign, + ColumnOptions, + RowOptions, + AnimationStatus, + ResourceStr,$r,ImageAnimator,Margin,FillMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text,Toggle,ToggleType, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,ColumnSplitDividerStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0190_620.ets + + +@Component +struct UIComponentListandgridGridInterface_0190_620 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.Auto) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0330.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0330 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center).constraintSize({minHeight:100,maxHeight:100}) + } + .divider({startMargin:10,endMargin:10} as ColumnSplitDividerStyle) + .borderWidth(50) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface111.ets + + +@Component +struct UIAttributesBackgroundInterface111 { + build() { + Column() { + Row() + .backgroundColor(Color.Blue) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0470.ets + + +@Component +struct ActionEventControlCallback0470 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Toggle({ type: ToggleType.Button, isOn: false }) + .height(50) + .width(80) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row3.ets + +@Component +struct Row3Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(3) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest8.ets + +@Component +struct ZIndexDynamicModificationTest8 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.textValueIndex = 4 //text的value: 'ABC设置zIndex: 3 2 1' + this.zIndexValueIndex = 3 //ABC设置zIndex: 3 2 1 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0020.ets + + +@Component +struct UIAttributesImageeffectInvert0020 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0050.ets + + +@Component +struct UIAttributesFocuscontrolInterface0050 { + @State state: AnimationStatus = AnimationStatus.Initial + @State reverse: boolean = false + @State iterations: number = 1 + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 10 } as ColumnOptions) { + ImageAnimator() + .images([ + { + src: $r('app.media.startIcon') + }, + { + src: $r('app.media.startIcon') + }, + ]) + .duration(2000) + .state(this.state) + .reverse(this.reverse) + .fillMode(FillMode.None) + .iterations(this.iterations) + .width(340) + .height(240) + .margin({ top: 100 } as Margin) + .focusable(true) + Column({ space: 20 } as ColumnOptions) { + Text("Focus") + .width(200) + .height(70) + .defaultFocus(false) + .fontColor(Color.White) + .focusable(true) + Image(this.iconStr) + .width(200) + .defaultFocus(false) + .height(70) + .focusable(true) + }.width('100%') + } + } +} + + +export const FLAG_OF_FILE_62: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets new file mode 100644 index 000000000..adf25b11f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets @@ -0,0 +1,390 @@ +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin,Text, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Color, + FlexDirection, + ItemAlign, + Entry, + Text, + Image, + Component, + Flex, + Padding, + ListItem, + ClickEvent, + Scroller, + ObscuredReasons, + ScrollAlign, + Column, + List, + Button, + ForEach, + Axis, + BarState, + EdgeEffect +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + GridRow, + GridCol, + RowOptions, + Button, + Color, + DragEvent, + ClickEvent, + DragPreviewMode +} from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,TextInput,TextInputController,Margin,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0150.ets + + +@Component +struct UIAttributesFocuscontrolInterface0150 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + Button('one button ').groupDefaultFocus(true) + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 }as SearchOptions) + .searchButton('SEARCH') + .groupDefaultFocus(true) + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + .tabIndex(1) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0080.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0080 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + Button('Button') + .id('SubAceActionEventCommoneventDragImprove0080_btn') + .width('100%') + .height('100%') + .backgroundColor(Color.Pink) + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0080_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0020.ets + + +@Component +struct UIAttributesRenderFit0020 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0120.ets + + +@Component +struct UIComponentMediaImageMask0120 { + private arr: Array = new Array(0, 1, 2, 3, 4, 5, 6); + private scroller: Scroller = new Scroller(); + build() { + Column() { + List({ space: 20, initialIndex: 0, scroller: this.scroller }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center }) { + Text('item is ' + item) + Image('icon.png') + .width(100) + .height(150) + .obscured([ObscuredReasons.PLACEHOLDER]) + } + } + }, (item: Double, index: Double) => item + '') + } + .listDirection(Axis.Vertical) // 排列方向 + .scrollBar(BarState.Off) + .friction(0.6) + .divider({ + strokeWidth: 2, + color: 0xFFFFFF, + startMargin: 20, + endMargin: 20 + }) // 每行之间的分界线 + .edgeEffect(EdgeEffect.Spring) // 边缘效果设置为Spring + .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => { + console.info('first' + firstIndex) + console.info('last' + lastIndex) + console.info('center' + centerIndex) + }) + .width('90%') + .height('60%') + Button('scroll Bottom') + .onClick((e: ClickEvent) => { + this.scroller.scrollToIndex(ScrollAlign.END); + }).id('mask0120_button_01').margin(10) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0390.ets + + +@Component +struct UIAttributesModaltransitionVision0390 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: '100%', + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0190.ets + + +@Component +struct UIAttributesBcakgroundSeriable0190 { + build() { + Column({ space: 100 } as ColumnOptions) { + Row() + .backgroundImageSize(ImageSize.Contain) + .backgroundImage($r('app.media.startIcon'), ImageRepeat.X) + .width(200) + .height(200) + .border({ width: 1 } as BorderOptions) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0570.ets + + +@Component +struct UIAttributesModaltransitionVision0570 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AceActionEventCommoneventClickInterface/AceActionEventCommoneventClickInterface80.ets + + +@Component +struct AceActionEventCommoneventClickInterface80 { + @State btn_width:string = '' + @State btn_height:string = '' + @State position_x:string | undefined = '' + @State position_y:string | undefined = '' + @State g_position_x:string | undefined = '' + @State g_position_y:string | undefined = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Button('点击') + .fontSize(20) + .width(100) + .height(60) + .id('btn') + .onClick((event:ClickEvent) => { + this.btn_width = event.target.area.width.toString() + this.btn_height = event.target.area.height.toString() + this.position_x = event.target.area.position.x?.toString() + this.position_y = event.target.area.position.y?.toString() + this.g_position_x = event.target.area.globalPosition.x?.toString() + this.g_position_y = event.target.area.globalPosition.y?.toString() + }) + Text('宽:'+this.btn_width).fontSize(20).margin({top:10} as Margin) + Text('高:'+this.btn_height).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移x:'+this.position_x).fontSize(20).margin({top:10} as Margin) + Text('父组件偏移y:'+this.position_y).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移x:'+this.g_position_x).fontSize(20).margin({top:10} as Margin) + Text('窗口偏移y:'+this.g_position_y).fontSize(20).margin({top:10} as Margin) + } + .width(300) + .height(400) + .border({width: 1}) + .margin(30) + } +} + + +export const FLAG_OF_FILE_63: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets new file mode 100644 index 000000000..a20c41cbf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets @@ -0,0 +1,376 @@ +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import { Entry,Component,Visibility,Color,DragEvent,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Grid,ForEach,GridItem,GridItemStyle,PreDragStatus, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0270.ets + + +@Component +struct UIAttributesModaltransitionVision0270 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.LARGE, '50%', 100] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0180.ets + + +@Component +struct UIAttributesColorRampBlurGradient0180 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(-10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0290.ets + + + +@Component +struct ActionEventCommonEventMouseStyle0290 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_OPEN; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0290_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0290" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0290_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur3.ets + +@Component +struct linearGradientBlur3 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0010.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0010 { + build() { + Column() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0020.ets + + +@Component +struct UIAttributesImageEffectProjection0020 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0790.ets + + +@Component +struct UIAttributesColorrampInterface0790 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0, + end:"90" + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragGriditem/ActionEventCommoneventDragGriditem0030.ets + + +@Component +struct ActionEventCommoneventDragGriditem0030 { + @State numbers: String[] = ['0', "1", "2"] as string[] + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess: Boolean = false + @State textContent: string = ""; + @State backGroundColor: Color = Color.Transparent; + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + } + } + build() { + Column() { + Text('GridItem拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Grid() { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem({ style: GridItemStyle.PLAIN }) { + Text('this is abstract') + .id("img1") + .width('100%') + .height('100%') + } + .backgroundColor(0xF9CF93) + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr') + .rowsTemplate('1fr 1fr') + .columnsGap(4) + .rowsGap(4) + .width('60%') + .backgroundColor(0xFAEEE0) + .height(150) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = 'this is abstract'; + data.textContent = 'this is content this is content'; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_64: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets new file mode 100644 index 000000000..a3975dc7c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets @@ -0,0 +1,417 @@ +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, +} from '@ohos.arkui.component' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback,ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,Video,TextAlign,HorizontalAlign,ScrollDirection, + VideoController, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, NavPathStack, Margin,ForEach, + NavigationMode +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component, Column,ColumnOptions,Flex,FlexDirection,FlexAlign,ItemAlign, + Radio,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0330.ets + + +@Component +struct ActionEventControlCallback0330 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { + Column() { + Text('Radio1') + Radio({ value: 'Radio1', group: 'radioGroup' }).checked(true) + .height(50) + .width(50) + } + Column() { + Text('Radio2') + Radio({ value: 'Radio2', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .id('Radio') + .onChange((value: boolean):void => { + let strJson: string = inspector.getInspectorByKey('Radio'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Column() { + Text('Radio3') + Radio({ value: 'Radio3', group: 'radioGroup' }).checked(false) + .height(50) + .width(50) + .onChange((isChecked: boolean):void => { + console.log('Radio3 status is ' + isChecked) + }) + } + } + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0040.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0040 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeColor null') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor undefined') + .focusBox({ + strokeColor: undefined, + }) + Button('button strokeColor abcd') + .focusBox({ + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionGestureRegister/ActionGestureRegister0040.ets + + +@Component +struct ActionGestureRegister0040 { + private arr: number[] = [0, 1, 2, 3] as number[] + @State isActive: boolean = false + @State dex: number = 0 + build() { + Column() { + Navigation(new NavPathStack()) { + List({ space: 12, initialIndex: 0 }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + } + }, (item: number) => item.toString()) + } + .height('100%') + .margin({ top: 12, left: 12 } as Margin) + } + .mode(NavigationMode.Split) + .hideTitleBar(true) + .hideToolBar(true) + }.height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0240.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0240 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DASHED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0430.ets + + +@Component +struct UIAttributesImageeffectInterface0430 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: $r('app.media.startIcon'), + offsetY: $r('app.media.startIcon') + } as ShadowOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0590.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0590 { + @State radiusValue: number = 0; + controller: VideoController = new VideoController(); + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + Video({ + src: '', + controller: this.controller + }) + .width('100%') + .height(200) + .autoPlay(false) + .controls(true) + .foregroundEffect({ radius: this.radiusValue }) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0240816.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0240816 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0240816_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(3); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0240816_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .enableScrollInteraction(false) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0010.ets + + +@Component +struct UIAttributesModaltransitionAvoid0010 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 50; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[450, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Percent+.ets + +@Component +struct Percent_zheng { + build() { + Column() { + Text('扩展尺寸: 20%').fontSize(30).margin(30) + Row() { + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '20%', bottom: '20%', right: '20%', left: '20%' } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve } as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + + +export const FLAG_OF_FILE_65: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets new file mode 100644 index 000000000..b63239282 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets @@ -0,0 +1,419 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,TranslateOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Visibility, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,GradientDirection,FlexAlign,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0160.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0160 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0160_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0160_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampDfx/UIAttributesColorrampDfx0010.ets + + +@Component +struct UIAttributesColorrampDfx0010 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.1,0.1],[1,1]], direction: GradientDirection.Bottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0750.ets + + +@Component +struct UIAttributesColorrampInterface0750 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesOutlineColor/UIAttributesOutlineColor0010.ets + + +@Component +struct UIAttributesOutlineColor0010 { + build() { + Column() { + Row() { + } + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineWidth(5) + .outlineColor(0xFFFF4777) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0220.ets + + +@Component +struct UIAttributesImageEffectProjection0220 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0080_215.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0080_215 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).borderRadius(20) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0160.ets + + +@Component +struct UIAttributesImageEffectProjection0160 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .visibility(Visibility.Hidden) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_label.ets + +@Component +struct ButtonLabel { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: -3, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + maxFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: $r('app.media.startIcon'), + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: '20', + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 12, + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: -9, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 0, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 10, + maxFontSize: 8, + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0270.ets + + +@Component +struct UIAttributesGraphictransformationInterface0270 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('translate,设置参数{x:40,y:30}') + .width(100) + .translate({x:40,y:30} as TranslateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/list_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollbarScrolledge/UIComponentScrollScrollbarScrolledge0070.ets + + +@Component +struct UIComponentScrollScrollbarScrolledge0070 { + @State numbers: Array = new Array() + scroller1: Scroller = new Scroller() + aboutToAppear(): void { + for (let i = 0;i < 100;i++) { + this.numbers.push(i + '') + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + }.selectable(false) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .multiSelectable(true) + .scrollBar(BarState.Off) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('changeScrollEdge').onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom, { + velocity: undefined + }) + }).id('ScrollScrollbarScrolledge0070_001') + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_66: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets new file mode 100644 index 000000000..146be696b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets @@ -0,0 +1,421 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color, + GradientDirection +} from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + BorderStyle, + GestureGroup, + BorderOptions, + PanGesture, + LongPressGesture, + GestureMode +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,$r,Image,DragEvent,Padding, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color,ScaleOptions,TranslateOptions,RotateOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Color, + Builder, + RelativeContainer, + Image, + $r +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback, + ComputedBarAttribute,EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0120290.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0120290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachStart" + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + this.msgInfo= this.msgInfo + "\ntrigger Grid onReachEnd" + }).id('UIComponentListandgridGridEventEnhancement0120290'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0010.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0010 { + @Builder BackgroundBuilder() { + RelativeContainer(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.width(400).height(400).backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0250.ets + + +@Component +struct UIAttributesImageEffectProjection0250 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: false} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0040.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0040 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().skew(0, 0); + @State translateX: number = 0; + @State translateY: number = 0; + @State scaleX: number = 1; + @State scaleY: number = 1; + @State rotateAngle: number = 0; + build() { + Column() { + Column() { + } + .scale({ x: this.scaleX, y: this.scaleY} as ScaleOptions) + .translate({ x: this.translateX, y: this.translateY} as TranslateOptions) + .rotate({ angle: this.rotateAngle} as RotateOptions) + .height(50) + .width(50) + .backgroundColor('red') + Button('scale') + .id('UIAttributesGraphicTransformationSkew0040_001') + .margin({ top: 50 } as Margin) + .onClick((e:ClickEvent) => { + this.scaleX = 2; + this.scaleY = 2; + }) + Button('translate') + .id('UIAttributesGraphicTransformationSkew0040_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.translateX = -50; + this.translateY = -50; + }) + Button('rotate') + .id('UIAttributesGraphicTransformationSkew0040_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.rotateAngle = 45; + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0430.ets + + +@Component +struct ActionEventCommoneventDragInterface0430 { + @State text: string = ''; + build() { + Column({ space: 10 } as ColumnOptions) { + Column() { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + } + .borderWidth(2) + .width(100) + .height(100) + .draggable(true) + .id('0') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width('100%') + .height(250) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.text = ` + x:${Number(event.getPreviewRect().x as number).toFixed(0)}, + y:${Number(event.getPreviewRect().y as number).toFixed(0)}, + width:${Number(event.getPreviewRect().width as number).toFixed(0)}, + height:${Number(event.getPreviewRect().height as number).toFixed(0)}` + console.log(`Rectangle:${this.text}`) + }) + .padding({ top: 50 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes290.ets + + +@Component +struct UIAttributesTouchableInteraction290 { + @State value: string = ''; + @State count: number = 0; + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @State borderStyles: BorderStyle = BorderStyle.Solid; + build() { + Column() { + Text('Click ') + .fontSize(28) + .id('UIAttributesTouchableInteraction290') + .hitTestBehavior(HitTestMode.Transparent) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + GestureGroup(GestureMode.Parallel, + LongPressGesture({ repeat: true }) + .onAction((event?: GestureEvent) => { + if (event && event.repeat) { + this.count++ + } + this.value = 'LongPress onAction'; + }), + PanGesture() + .onActionStart(() => { + this.borderStyles = BorderStyle.Dashed; + }) + .onActionUpdate((event?: GestureEvent) => { + if (event) { + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + this.borderStyles = BorderStyle.Solid; + this.value += 'PanGesture onAction'; + }) + ) + .onCancel(() => { + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1420.ets + + +@Component +struct UIAttributesBackgroundInterface1420 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + direction:GradientDirection.Bottom, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0460_322.ets + + +@Component +struct UIComponentListandgridGridInterface_0460_322 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth('90%') + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_67: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets new file mode 100644 index 000000000..eda35c229 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets @@ -0,0 +1,392 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions } from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,Padding} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { BusinessError } from '@ohos.base' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DrawableDescriptor,ImageContent,Resource,Position,Flex,FlexDirection,ItemAlign,FlexAlign,Grid,GridItem +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign,Button,ClickEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0120.ets + + +@Component +struct UIAttributesImageEffectProjection0120 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .opacity(0.5) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0060.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0060 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + ColumnSplit() { + Text('1').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('100%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('100%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(500) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0300.ets + + +@Component +struct ActionEventCommoneventDragdefault0300 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 30 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentSnapshotAttribute/UIComponentSnapshotAttribute0990.ets + + +@Component +struct UIComponentSnapshotAttribute0990 { + @State positionX: number = 20 + @State positionY: number = 20 + @State value: string = ''; + build() { + Column() { + Button("组件") + .id("Button_001") + .position({ x: this.positionX, y: this.positionY } as Position) + Text(this.value) + .width("95%") + .height(200) + .borderWidth(2) + Grid() { + GridItem() { + Button("windowoffset设置x为负数").onClick((event:ClickEvent) => { + this.positionX = -40 + }) + .id("UIComponentSnapshotAttribute0990_001") + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/SystemBarEffectIndex.ets + +@Component +struct systemBarEffectIndex { + build() { + Column({ space: 5 } as ColumnOptions) { + Column() + .width(150).height(10) + .systemBarEffect() + .border({radius:5}) + .margin({bottom:80} as Margin) + } + .width('100%') + .height('100%') + .padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_017.ets + +@Component +struct Grid07 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State Position: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('Grid设置grid大小300*150,griditem大小90*40。 maxCount设置为-2').fontSize(18).margin({bottom: 10, top: 10} as Margin) + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsGap(5) + .layoutDirection(GridDirection.Row) + .rowsGap(10) + .friction(0.6) + .minCount(3) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .maxCount(-2) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.Position = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.Position = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0030.ets + + +@Component +struct UIActtonEventComdneventDracForeground0030 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "fast-out-slow-in", + delay: 200, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + }as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0030_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0030_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_68: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets new file mode 100644 index 000000000..3a5785269 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets @@ -0,0 +1,445 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Image, + Builder, + Menu +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemGroup,MenuItemOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,Stack,Alignment,TransitionEffect,Image,animateTo,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0400.ets + + +@Component +struct UIAttributesComponentContentFillingModeInterface0400 { + @State isShow: boolean = false + build() { + Stack({ alignContent: Alignment.Center }) { + if (this.isShow) { + Image('icon.png') + .autoResize(false) + .clip(true) + .width(300) + .height(400) + .offset({ y: 100 } as Position) + .geometryTransition("picture", { follow: false }) + .transition(TransitionEffect.OPACITY) + } else { + Column() { + Column() { + Image('2.png') + .width('100%').height('100%') + }.width('100%').height('100%') + } + .width(80) + .height(80) + .borderRadius(20) + .clip(true) + .geometryTransition("picture") + .transition(TransitionEffect.OPACITY) + } + } + .renderFit(RenderFit.TOP_LEFT) + .id('stackId') + .onClick((e:ClickEvent) => { + animateTo({ duration: 1000 }, ():void => { + this.isShow = !this.isShow + }) + }) + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/buttonDynamic9.ets + +@Component +struct buttonDynamicExample9 { + @State buttonType: ButtonType = ButtonType.Circle + @State stateEffect: boolean = true + @State textTest: string = '按钮类型测试' + onPageShow() { + this.stateEffect = false + this.buttonType = ButtonType.Circle + } + build() { + Column({ space: 15 } as ColumnOptions) { + Text(this.textTest).fontSize(9).fontColor(0xCCCCCC).width('90%') + Button({ type: this.buttonType, stateEffect: this.stateEffect} as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .onClick((e:ClickEvent) => { + console.log('ButtonType.Normal') + }).key('button9') + }.width('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0020.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0020 { + @State isbgcColor:boolean = false + @State isClick:boolean = false + @State opacity1:number = 1.0 + onButtonClick(){ + this.opacity1 = 0.5 + this.isClick = true + this.isbgcColor = true + } + build() { + Column(){ + Row(){ + Text('Text子组件') + .backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .blendMode(BlendMode.SRC_IN) + .margin({left:100,top:50} as Margin) + }.width('100%').height(200).backgroundColor(this.isbgcColor == true ? Color.Red : Color.Transparent) + .opacity(this.opacity1) + Button("NoChildNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0570.ets + + +@Component +struct UIAttributesBackgroundInterface0570 { + build() { + Column({ space: 5 } as ColumnOptions) { + Row() {} + .width(200) + .height(200) + .sweepGradient({ + center: [50, 50], + start: "0.5trun", + end: "1turn", + colors: [[Color.Blue, 0.0], [Color.Pink,0.3], [Color.Yellow, 1.0]] + }) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0120.ets + + +@Component +struct UIAttributesColorRampBlurGradient0120 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.5,0.5],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0280.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0280 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Menu() { + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + MenuItemGroup() { + MenuItem({ content: '菜单选项a' } as MenuItemOptions) + MenuItem({ content: '菜单选项b' } as MenuItemOptions) + MenuItem({ content: '菜单选项c' } as MenuItemOptions) + } + .borderWidth(1) + .margin(10) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0240.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0240 { + @State message: string = 'Hello' + @Builder privateBuilder() { + Menu().overlay((): void => {this.privateBuilderTwo()}).height(600).width("100%").margin({ top: 100 } as Margin) + } + @Builder privateBuilderTwo() { + Image("2.png").height(300).margin({ top: 100 } as Margin) + } + build() { + Row() { + Column() {} + .width('100%') + .height('100%') + .backgroundColor(Color.Green) + }.overlay((): void => {this.privateBuilder()}) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0040.ets + + +@Component +struct UIAttributesModaltransitionAnimator0040 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0540.ets + + +@Component +struct ActionEventCommonEventMouseStyle0540 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.RUNNING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0540_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0540" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0540_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_69: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets new file mode 100644 index 000000000..53531d565 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets @@ -0,0 +1,333 @@ +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + FlexAlign +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import curves from '@ohos.curves'; + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment, + } from '@ohos.arkui.component' + +import { + Entry, + Component, + Column, + Color, + Builder, + Progress +} from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, CalendarPicker, FontWeight,CalendarAlign } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin,Button, + DragEvent,TextAreaOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0110.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragNondragenhance/0050.ets + + +@Component +struct ActionEventCommoneventDragNondragenhance0050 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[] + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' } as TextAreaOptions) + .id('DragNondragenhance_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.dragInfo.push('DragEnter') + }) + Button('可拖入按钮').margin({ left: 40, top: 20 } as Margin) + .id('DragNondragenhance_001') + .draggable(true) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0470.ets + + +@Component +struct UIAttributesColorrampInterface0470 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0010.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0010 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_LEFT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0550.ets + + +@Component +struct UIAttributesImageeffectInterface0550 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0260.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0260 { + private selectedDate: Date = new Date('2024-03-05') + @Builder + privateBuilder() { + CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) + .id("CalendarPicker") + .edgeAlign(CalendarAlign.END) + .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) + .margin(10) + .onChange((value:Date):void => { + console.info("CalendarPicker onChange:" + JSON.stringify(value)) + }) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0040.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0040 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect(null) + .id('UIAttributesClivkreboundeffectInterface0040_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0070.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0070 { + @Builder BackgroundBuilder() { + Progress({value:0}).width(400).height(400).backgroundColor(Color.Green) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder) + } +} + +// from /home/x00931626/UITest/PixelStretch/entry/src/main/ets/testability/pages/PixelStretchEffectOptions/Num_Per.ets + +@Component +struct Num_Per { + build() { + Column() { + Text('上下30%,左右50').fontSize(30).margin(30) + Row(){ + Blank() + Image($r('app.media.startIcon')) + .overlay('png', { align: Alignment.Center } as OverlayOptions) + .pixelStretchEffect({ top: '30%', bottom: '30%', left: 50, right: 50 } as PixelStretchEffectOptions) + .animation({ curve: curves.springMotion() as Curve|ICurve} as AnimateParam) + .width(200) + .height(200) + Blank() + }.margin(120).width(400).height(400).border({ width: 2, color: 'red', style: BorderStyle.Solid} as BorderOptions) + }.height('80%') + } +} + +// from /home/x00931626/UITest/openapi_rh/entry/src/main/ets/testability/pages/ComponentPopupBoxMenuTest/UIApperanceDarkMode0010.ets + + +@Component +struct UIApperanceDarkMode0010 { + @State message: string = 'log:'; + build() { + Column() { + Text(this.message).margin({ top: 20 } as Margin) + Button('setDarkMode is Dark').fontSize(20).margin(20) + Button('setDarkMode is 5').fontSize(20) + }.height('100%').width('100%').justifyContent(FlexAlign.Start) + } +} + + +export const FLAG_OF_FILE_7: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets new file mode 100644 index 000000000..70b2734d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets @@ -0,0 +1,362 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + Video, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + Padding, + ColumnOptions, + TextAlign, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, ClickEvent, Button, Builder, Column, Color, Alignment, DismissDialogAction } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0490.ets + + + +@Component +struct UIAttributesFloatingLayerOverlay0490 { + @Builder + privateBuilder() { + Column(){ + Button('one button dialog') + .id("changeTextColor") + .onClick((e: ClickEvent) => { + }) + } + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()},{align:Alignment.Center,offset:{x:0,y:100}}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0320.ets + + +@Component +struct UIAttributesModaltransitionVision0320 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%'] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.FIT_CONTENT, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0360.ets + + +@Component +struct UIAttributesModaltransitionVision0360 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: 420, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0300.ets + + +@Component +struct ActionEventCommonEventMouseStyle0300 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.HAND_POINTING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0300_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0300" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0300_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0510.ets + + +@Component +struct UIAttributesColorrampInterface0510{ + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[50,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/CommonEventDragListItem/CommonEventDragListItem0080.ets + + +@Component +struct CommonEventDragListItem0080 { + @State status: string = ''; + @State arr: Array = new Array(0, 1, 2, 3, 4, 5) + build() { + Column({ space: 5 } as ColumnOptions) { + List({ space: 20, initialIndex: 0 }) { + ForEach(this.arr, (item: number) => { + ListItem() { + Text('' + item) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + } + }, (item: Double, index: Double) => item + '') + } + .width('90%') + .height('70%') + .scrollBar(BarState.Off) + .id('view-1') + .dragPreviewOptions({}, { isMultiSelectionEnabled: true }) + .onDragStart((event: DragEvent, extraParams?: string): (() => void) => { + }) + .onDragEnd((event: DragEvent, extraParams?: string): void => { + if (event.getResult() === DragResult.DRAG_SUCCESSFUL) { + this.status = "SUCCESSFUL" + } else if (event.getResult() === DragResult.DRAG_FAILED) { + this.status = "FAILED" + } else if (event.getResult() === DragResult.DRAG_CANCELED) { + this.status = "CANCELED" + } + }) + Text('拖拽:' + this.status) + .fontSize(30) + .margin(30) + } + .width('100%') + .height('100%').backgroundColor(0xDCDCDC).padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_70: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets new file mode 100644 index 000000000..d6c995948 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets @@ -0,0 +1,405 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + PatternLock,HorizontalAlign,ScrollDirection,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, ClickEvent, GestureEvent, Margin, RotationGesture } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, + ColumnOptions,DragEvent, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + ButtonType, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0490.ets + + +@Component +struct UIAttributesColorrampInterface0490 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:20 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0070.ets + + +@Component +struct ActionEventCommoneventDragImage0070 { + @State uri: string = "" + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('目标组件').fontSize(20) + Image($r(this.uri)) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop(null) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let img = arr[0] as unifiedDataChannel.Image; + this.uri = img.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_005.ets + +@Component +struct onlyColumnMaxCount { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State maxCountValue: number = 8 + onPageShow() { + console.info('onlyColumnMaxCount onPageShow') + this.maxCountValue = 4 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .maxCount(this.maxCountValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0630.ets + + +@Component +struct UIAttributesModaltransitionVision0630 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0410.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0410 { + @State angle: number = 0; + @State rotateValue: number = 0; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .onClick((e: ClickEvent): void => { + this.angle=this.angle+60 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('RotationGesture is onActionStart'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.angle = this.rotateValue + event.angle; + } + console.info('RotationGesture is onActionEnd'); + }) + .onActionEnd(() => { + this.rotateValue = this.angle; + console.info('RotationGesture is onActionEnd'); + }) + .onActionCancel(() => { + console.info('RotationGesture is onActionCancel'); + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionInteration/UIAttributesModaltransitionInteration0070.ets + + +@Component +struct UIAttributesModaltransitionInteration0070 { + @State isShow: boolean = false + @State desc: boolean = false; + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Text(`Button 2 click:${this.desc}`) + Button("Button 2") + .id('button2') + .margin({top: 20} as Margin) + .onClick((e:ClickEvent) => { + this.desc = true; + }) + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height:SheetSize.MEDIUM, + enableOutsideInteractive: true, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0130.ets + + +@Component +struct UIComponentCommonattrGrayscale0130 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [48, 58] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0350.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0350 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + PatternLock() + .sideLength(200) + .autoReset(true) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_71: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets new file mode 100644 index 000000000..eb0b05ee8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets @@ -0,0 +1,415 @@ +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Color,$r,Margin,Row, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,Row,Alignment,Color,Stack, + Position,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TabsController,Tabs,Text,TabContent,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + ResourceStr, + Resource, + Menu, + MenuItemOptions, + $r, + MenuItem +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/TextLightUpEffectIndex.ets + +@Component +struct TextBackgroundBlurStyle1 { + build() { + Column() { + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.5') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.5) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为-1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(-1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0.2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0.2) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为0') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(0) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为1') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(1) + Text('创建一个Text组件,为组件设置图像渐亮效果lightUpEffect,入参为2') + .letterSpacing(0) + .fontSize(12) + .border({ width: 1 }) + .padding(10) + .width('50%') + .lightUpEffect(2) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0130.ets + + +@Component +struct UIComponentBackgroundimage0130 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton155.ets + + +class Tmp155 { + iconStr2: ResourceStr = $r('app.media.startIcon') + set(val: Resource) { + this.iconStr2 = val + } +} +@Component +struct UlComponentCommonattrlfocusoptimizatton155 { + @State select: boolean = true + private iconStr: ResourceStr = $r('app.media.startIcon') + private iconStr2: ResourceStr = $r('app.media.startIcon') + @Builder + SubMenu() { + Menu() { + MenuItem({ content: "复制", labelInfo: "Ctrl+C" } as MenuItemOptions) + MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" } as MenuItemOptions) + } + } + @Builder + MyMenu() { + Menu() { + MenuItem({ + startIcon: this.iconStr, + content: "菜单选项", + endIcon: $r('app.media.startIcon'), + builder: this.SubMenu + } as MenuItemOptions) + .id('UlComponentCommonattrlfocusoptimizatton_155_2') + } + } + build() { + Button('click for Menu') + .id('UlComponentCommonattrlfocusoptimizatton_155_1') + .bindMenu(this.MyMenu) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0370.ets + + +@Component +struct ActionEventControlCallback0370 { + @State context: string = "hello" + @State index: number = 2 + private controller1: TabsController = new TabsController() + build() { + Column() { + Text(this.context) + Tabs({ controller: this.controller1 }) { + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Pink) + } + .tabBar('pink') + TabContent() { + Column().width('100%').height('100%').backgroundColor(Color.Yellow) + }.tabBar('yellow') + } + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id = JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type = JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + .height('80%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton150.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton150 { + build() { + Column() { + Button("支持自定义内容弹出框") + .id('UlComponentCommonattrlfocusoptimizatton_150_1') + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @Builder + buildContent(): void { + Column() { + TextInput({ placeholder: 'input ...' }) + Button('count is odd').fontSize(30).height(50).margin({ top: 20 } as Margin) + TextArea({ + placeholder: 'The text area can hold an unlimited amount of text. input your word...', + }) + .placeholderFont({ size: 16, weight: 400 }) + .width(336) + .height(56) + .margin(20) + .fontSize(16) + .fontColor('#182431') + .backgroundColor('#FFFFFF') + Search({ placeholder: 'Type to search...', }) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + } + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0080.ets + + +@Component +struct ActionEventCommonEventMouseStyle0080 { + @State stateList: string[] = [] as string[]; + build() { + Column({ space: 30 } as ColumnOptions) { + Stack() { + Row() + .id("ActionEventCommonEventMouseStyle0080_01") + .width(200) + .height(200) + .align(Alignment.Start) + .backgroundColor(Color.Red) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.EAST); + } else { + cursorControl.restoreDefault(); + } + }) + Row() + .id("ActionEventCommonEventMouseStyle0080_02") + .width(200) + .height(200) + .position({ x: 100 } as Position) + .backgroundColor(Color.Orange) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(pointer.PointerStyle.WEST); + } else { + cursorControl.restoreDefault(); + } + }) + }.alignContent(Alignment.Start) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0290.ets + + +@Component +struct ActionEventCommoneventDragImage0290 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State backGroundColor: Color = Color.Transparent; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image($r('app.media.startIcon')) + .id("img1") + .border({ color: Color.Black, width: 1 }) + .width(100) + .height(100) + .draggable(true) + .margin({ left: 15 } as Margin) + .onDragStart((event: DragEvent, extraParams?: string):(() => void)=>{}) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Image(this.targetImage) + .id("img2") + .width(this.imageWidth) + .height(this.imageHeight) + .draggable(true) + .margin({ left: 15 } as Margin) + .border({ color: Color.Black, width: 1 }) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((dragEvent: DragEvent,extraParams?: string):void => { + this.getDataFromUdmf(dragEvent, (event1: DragEvent) => { + event1.useCustomDropAnimation = true; + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_72: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets new file mode 100644 index 000000000..f8f9b620d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets @@ -0,0 +1,394 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,Image,$r, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + TextAlign, + Alignment +} from '@ohos.arkui.component'; + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer'; + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ClickEvent,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, + ClickEvent,Image,DragEvent,DragResult,Visibility,Row,$r,DragBehavior, +} from '@ohos.arkui.component' + +import inspector from '@ohos.arkui.inspector' + +import { State } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Column, + Component, + Color, + Scroll, + Row, + FlexAlign, + TextAlign, + OutlineStyle, + Dimension, + EdgeColors +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/RowOutlineColorIndex.ets + +@Component +struct RowOutlineColorIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Row() { + Text('验证组件的外描边颜色outlineColor取值类型为EdgeColors时').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle).outlineWidth(15 as Dimension) + .outlineColor({left:0xFFff4777, right:0xFFff4777, top:0xFFff4777, bottom:0xFFff4777} as EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0180.ets + + +@Component +struct UIAttributesBackgroundInterface0180 { + build() { + Column() { + Row() { + Text("BACKGROUND_THIN") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_THIN) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0120.ets + + +@Component +struct UIAttributesBcakgroundSeriable0120 { + @State top: number = 0 + @State bottom: number = 0 + @State left: number = 150 + @State right: number = 50 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:0,left:150,bottom:0,right:50}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragImage/ActionEventCommoneventDragImage0190.ets + + +@Component +struct ActionEventCommoneventDragImage0190 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State result:string = '' + build() { + Column({space:10} as ColumnOptions) { + Text(this.result).fontSize(20).fontColor(Color.Red) + Column(){ + Text('目标组件').fontSize(20) + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('发起方').fontSize(20) + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent,extraParams?: string):(()=>void) => { + event.dragBehavior = DragBehavior.MOVE + event?.setResult(DragResult.DROP_ENABLED) + let img: unifiedDataChannel.Image = new unifiedDataChannel.Image(); + img.imageUri = 'app.media.icon'; + let data1: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data1); + img.imageUri = 'app.media.img2'; + let data2: unifiedDataChannel.UnifiedData = new unifiedDataChannel.UnifiedData(img); + (event as DragEvent).setData(data2); + }) + .onDragEnd((event: DragEvent,extraParams?: string):void => {}) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0060.ets + + +@Component +struct ActionEventCommonEventMouseStyle0060 { + build() { + Column({ space: 50 } as ColumnOptions) { + Button("Button1") + .id("ActionEventCommonEventMouseStyle0060_01") + .onClick((e:ClickEvent) => { + cursorControl.setCursor(pointer.PointerStyle.SCREENSHOT_CHOOSE); + }) + Button("Button2") + .id("ActionEventCommonEventMouseStyle0060_02") + .onClick((e:ClickEvent) => { + cursorControl.restoreDefault(); + }) + } + .width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0100.ets + + +@Component +struct UIAttributesModaltransitionVision0100 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:['50%', SheetSize.FIT_CONTENT, SheetSize.LARGE] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0660.ets + + +@Component +struct UIAttributesBackgroundInterface0660 { + build() { + Column() { + Row() + .width("100%") + .height('90%') + .backgroundImage("cat.jpg") + .backgroundImagePosition(Alignment.Bottom) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0520.ets + + +@Component +struct ActionEventCommoneventDragdefault0520 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_007.ets + +@Component +struct onlyColumnRowsGap { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State rowsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnRowsGap onPageShow') + this.rowsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .rowsGap(this.rowsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_73: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets new file mode 100644 index 000000000..de1c7e273 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets @@ -0,0 +1,429 @@ +import { Entry, Component,Column,Row,Button,ClickEvent,FlexAlign,Margin,Stack,Alignment,List,ForEach, + ListItem,Text,TextAlign,ListOptions,AlphabetIndexer,FontWeight,IndexerAlign,BlurStyle,Color,Stack, + FontStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, + ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,BorderStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,FlexAlign, + TextOverflow,BorderStyle,FlexDirection,ItemAlign,Flex,FlexOptions +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + + +// from /home/x00931626/UITest/muxed_case1_rh/entry/src/main/ets/testability/pages/Button/Button02.ets + + +@Component +struct Button02 { + @State obj: object | null = null; + @State text: string = ''; + build() { + Column() { + Button('Button02_0020') + .id('Button02_0020') + .backgroundColor(Color.Pink) + .onClick((event:ClickEvent) => { + this.obj = inspector.getInspectorTree(); + this.text = String(this.obj); + }) + Row() { + Text(this.text) + .id('Button02_TextArea') + .width(400) + .height(400) + .margin(20) + .fontSize(16) + .border({ width: 5, color: 0x317AF7, radius: 10, style: BorderStyle.Solid }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(18) + } + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0060.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0060 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White).margin({left:100,top:50} as Margin) + .border({width:2.5,color:Color.Blue,style:BorderStyle.Solid}) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0090.ets + + +@Builder +function builder10090(text: string) { + builder20090(text) +} +@Builder +function builder20090(text: string) { + Text(text) + .fontSize(50) +} +@Component +struct SubAceActionWindowWindowCustom0090 { + @State statel: string = 'text1'; + @Builder + builder3(text: string) { + builder20090(text) + this.builder4(text) + } + @Builder + builder4(text: string) { + Text(text).fontSize(50) + } + build() { + Column() { + builder10090(this.statel) + this.builder3(this.statel) + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0110.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0110 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("small black focus box") + .enabled(false) + .focusBox({ + margin: new LengthMetrics(0), + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0130.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0130 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.5 }) + .id('UIAttributesClivkreboundeffectInterface0130_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes50.ets + + +@Component +struct UIAttributesTouchableInteraction50 { + @State rotateAngle: number = 0; + @State speed: number = 1; + build() { + Column() { + Text("SwipeGesture speed\n" + this.speed) + .border({ width: 3 } as BorderOptions) + .width(300) + .height(200) + .margin(100) + .rotate({ angle: this.rotateAngle }) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction50') + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent) => { + if (event) { + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface122.ets + + +@Component +struct UIAttributesBackgroundInterface122 { + build() { + Column() { + Row() + .backgroundColor(0x0000ff) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0150.ets + + +@Component +struct UIAttributesImageeffectInterface0150 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .grayscale(0.0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0270.ets + + +@Component +struct UIAttributesBcakgroundSeriable0270 { + build() { + Column({ space: 100 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0010.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0010 { + private arrayA: string[] = ['安'] as string[] // A + private arrayB: string[] = ['卜', '白', '包', '毕', '丙'] as string[] // B + private arrayC: string[] = ['曹', '成', '陈', '催'] as string[] // C + private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢'] as string[] // L + private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G', + 'H', 'I', 'J', 'K', 'L', 'M', 'N', + 'O', 'P', 'Q', 'R', 'S', 'T', 'U', + 'V', 'W', 'X', 'Y', 'Z'] + @State radius: number = 0 + build() { + Column() { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0010_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0010_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0010_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Stack({ alignContent: Alignment.Start }) { + Row() { + List({ space: 20, initialIndex: 0 } as ListOptions) { + ForEach(this.arrayA, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayB, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayC, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + ForEach(this.arrayL, (item: string,index:number) => { + ListItem() { + Text(item) + .width('80%') + .height('5%') + .fontSize(30) + .textAlign(TextAlign.Center) + } + }, (item: string,index:number) => item) + } + .width('50%') + .height('100%') + AlphabetIndexer({ arrayValue: this.value, selected: 0 }) + .autoCollapse(false) + .selectedColor(0xFFFFFF)// 选中项文本颜色 + .popupColor(0xFFFAF0)// 弹出框文本颜色 + .selectedBackgroundColor(0xCCCCCC)// 选中项背景颜色 + .popupBackground(0xD2B48C)// 弹出框背景颜色 + .usingPopup(true)// 是否显示弹出框 + .selectedFont({ size: 16, weight: FontWeight.Bolder })// 选中项字体样式 + .popupFont({ size: 30, weight: FontWeight.Bolder })// 弹出框内容的字体样式 + .itemSize(28)// 每一项的尺寸大小 + .alignStyle(IndexerAlign.Left)// 弹出框在索引条右侧弹出 + .popupItemBorderRadius(24)// 设置提示弹窗索引项背板圆角半径 + .itemBorderRadius(14)// 设置索引项背板圆角半径 + .popupBackgroundBlurStyle(BlurStyle.NONE)// 设置提示弹窗的背景模糊材质 + .popupTitleBackground(0xCCCCCC)// 设置提示弹窗首个索引项背板颜色 + .popupSelectedColor(0x00FF00) + .popupUnselectedColor(0x0000FF) + .popupItemFont({ size: 30, style: FontStyle.Normal }) + .popupItemBackgroundColor(0xCCCCCC) + .onSelect((index: number):void => { + console.info(this.value[index] + ' Selected!') + }) + .onRequestPopupData((index: number):string[] => { + if (this.value[index] == 'A') { + return this.arrayA // 当选中A时,弹出框里面的提示文本列表显示A对应的列表arrayA,选中B、C、L时也同样 + } else if (this.value[index] == 'B') { + return this.arrayB + } else if (this.value[index] == 'C') { + return this.arrayC + } else if (this.value[index] == 'L') { + return this.arrayL + } else { + return [] as string[] // 选中其余子母项时,提示文本列表为空 + } + }) + .onPopupSelect((index: number):void => { + console.info('onPopupSelected:' + index) + }) + .backgroundColor(Color.Pink) + .foregroundEffect({ radius: this.radius }) + } + .width('100%') + .height('100%') + } + .layoutWeight(1) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_74: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets new file mode 100644 index 000000000..450fa6818 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets @@ -0,0 +1,337 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Column, + Component, + FlexAlign, + TextAlign, + Scroll, + Divider, + Color, + OutlineStyle, + Dimension, + ResourceColor, + EdgeColors, + EdgeOutlineWidths, + OutlineRadiuses, + EdgeOutlineStyles +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import uiEffect from "@ohos.graphics.uiEffect"; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,AttributeModifier,ButtonAttribute,Stack,$r, + BlendApplyType +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,List,ForEach,ListItem,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0040.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0040 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Text('Text子组件').fontSize(50).fontColor(this.isClick == true ? Color.Green : Color.White) + .margin({left:100,top:50} as Margin).position({x:50,y:50} as Position) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("OnlyOneNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0030.ets + + +@Component +struct ActionEventCommoneventDragText0030 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .selection(0, 1000) + .draggable(true) + .fontSize(30) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAvoid/UIAttributesModaltransitionAvoid0020.ets + + +@Component +struct UIAttributesModaltransitionAvoid0020 { + @State isShow: boolean = false + arr: number[] = this.genArr(); + genArr(): number[] { + const arr: number[] = []; + for (let i = 0; i < 5; i++) { + arr.push(i + 1); + } + return arr; + } + @Builder + myBuilder() { + Column() { + List() { + ForEach(this.arr, (item: number,index:number) => { + ListItem() { + Text(`item ${item}`).height(40) + } + }) + } + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({ top: 20 } as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + height: SheetSize.LARGE, + preferType: SheetType.BOTTOM + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/blender/BlenderModeApplyType3.ets + +let blender1: uiEffect.BrightnessBlender = { + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}; +let blender2: uiEffect.BrightnessBlender = uiEffect.createBrightnessBlender({ + cubicRate: 0.5, + quadraticRate: 0.5, + linearRate: 0.5, + degree: 0.5, + saturation: 0.5, + positiveCoefficient: [2.3, 4.5, 2.0], + negativeCoefficient: [0.5, 2.0, 0.5], + fraction: 0.5 +}); +@Component +struct ModifierButton { + build() { + Stack() { + Scroll(){ + Column() { + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Button('🙂 🛒 🌞 modifier TEST FAST') + .fontSize(20).margin(10) + Text('🙂 🛒 🌞 modifier TEST OFFSCREEN') + .fontSize(20).margin(10) + Image($r('app.media.startIcon')) + .width(300).height(200) + Image($r('app.media.startIcon')) + .width(300).height(200) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/OutlinePropertiesIndex.ets + +@Component +struct OutlinePropertiesIndex { + @State message: string = 'Hello World'; + build() { + Scroll() { + Column() { + Column() { + Text('使用EdgeColors的方式设置各边的边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(15 as Dimension) + .outlineColor({ left: '#e3bbbb', right: Color.Blue, top: Color.Red, bottom: Color.Green } as ResourceColor | EdgeColors) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用EdgeOutlineWidths的方式设置各边的边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth({top: 4,right: 0,bottom: -1,left: 1} as EdgeOutlineWidths) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlineradius的方式设置每一边边框的圆角').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .outlineRadius({topLeft:16, topRight:0, bottomLeft:-1, bottomRight:1} as OutlineRadiuses) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用Edgeoutlinestyle的方式设置每一边边框的样式').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle({ + top:OutlineStyle.DASHED, + right:OutlineStyle.DOTTED, + bottom:OutlineStyle.SOLID, + left:OutlineStyle.DASHED + } as EdgeOutlineStyles) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineColor的方式设置边框颜色').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + Divider().margin(9) + Column() { + Text('使用outlineWidth的方式设置边框宽度').width('100%').textAlign(TextAlign.Start) + } + .outlineStyle(0 as OutlineStyle) + .outlineWidth(5 as Dimension) + .outlineColor(0xAFEEEE) + .justifyContent(FlexAlign.Center) + .borderWidth(1) + .margin(5) + .width('95%') + .height(90) + } + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0110.ets + + +@Component +struct UiAttributesFloatingLayerInterface0110 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.BottomStart}) + } + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur13.ets + +@Component +struct linearGradientBlur13 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0, 0], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + + +export const FLAG_OF_FILE_75: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets new file mode 100644 index 000000000..1a07a28d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets @@ -0,0 +1,396 @@ +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Color,DragItemInfo,Button,Row,DragEvent,Builder,Text +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import image from '@ohos.multimedia.image'; + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TextInputController,ClickEvent,ClickEvent,TextInput, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, ImageSize } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface094.ets + + +@Component +struct UIAttributesBackgroundInterface094 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImageSize(ImageSize.Auto) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0340.ets + + +@Component +struct ActionEventCommoneventDragdefault0340 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ right: 150 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0060.ets + + +@Component +struct UIAttributesBackgroundInterface0060 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.LIGHT, adaptiveColor: AdaptiveColor.AVERAGE } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0060.ets + + +@Component +struct UIAttributesColorRampBlurGradient0060 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0.6,0.6],[1,1]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0540.ets + + +@Component +struct UIAttributesColorrampInterface0540 { + @State centerX: number = 0; + @State radius:string='20%' + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow, 1]], + radius: this.radius, + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.radius='50%' + this.btnShow = Visibility.None + } else { + this.radius='50%' + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0170.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0170 { + build() { + Row() { + Column() { + Button('Button-MIDDLE') + .width(106) + .clickEffect({ level: ClickEffectLevel.MIDDLE, scale: 0.2 }) + .id('UIAttributesClivkreboundeffectInterface0170_001') + Button('Button-LIGHT') + .width(106) + .margin(20) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: 0.1 }) + .id('UIAttributesClivkreboundeffectInterface0170_002') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0230.ets + + +@Component +struct UIAttributesFocuscontrolInterface0230 { + @State focusOnTouchValue: boolean = false + @State text: string = '' + controller: TextInputController = new TextInputController() + build() { + Column() { + Button("focusOnTouch true") + .id('UIAttributesFocuscontrolInterface0230_001') + .width(200) + .height(70) + .fontColor(Color.White) + .onClick((e: ClickEvent) => { + this.focusOnTouchValue = true + }) + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .id('focus') + .fontColor(Color.Black) + .focusOnTouch(this.focusOnTouchValue) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0030.ets + + +@Component +struct UIAttributesBackgroundInterface0030 { + build() { + Row() { + } + .backgroundBlurStyle( + BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT } + ) + .width('100%') + .height('60') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragPreview/ActionEventCommoneventDragPreview0010.ets + + +@Component +struct UIActionEventCommonEventDragPreview0010{ + @State pixmap: image.PixelMap | undefined = undefined + @Builder + DraggingBuilder() { + Column() { + Text("DraggingBuilder") + .fontColor(Color.White) + } + .width(100) + .height(100) + .backgroundColor(Color.Blue) + } + @State dragItemInfo: DragItemInfo = { + pixelMap: this.pixmap, + builder: () => { + this.DraggingBuilder() + }, + extraInfo: "DragItemInfoTest" + } as DragItemInfo + build() { + Row() { + Column() { + Button('拖拽') + .id("dragButton") + .width("30%") + .draggable(false) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .dragPreview(this.dragItemInfo) + } + .width("100%") + } + .height("100%") + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0180.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0180 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0180_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0180_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.position.x; + let y = event.target.area.position.y; + let globalX = event.target.area.globalPosition.x; + let globalY = event.target.area.globalPosition.y; + console.log(`positionX: ${this.x}, positionY: ${y}, globalX: ${globalX}, globalY: ${globalY}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0470.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0470 { + @State hei:number = 100; + @State mar:number = 20; + build() { + Column(){ + RowSplit() { + Text('1').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('2').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('3').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + Text('4').width(40).height(this.hei).backgroundColor(0xD2B48C) + .textAlign(TextAlign.Center) + Text('5').width(40).height(this.hei).backgroundColor(0xF5DEB3) + .textAlign(TextAlign.Center) + } + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + + +export const FLAG_OF_FILE_76: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets new file mode 100644 index 000000000..d1d128e70 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets @@ -0,0 +1,404 @@ +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, + FlexAlign,$r,ImageFit,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, BlurStyle, Text, Position } from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0170.ets + + +@Component +struct ActionEventCommonEventMouseStyle0170 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.NORTH_SOUTH; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0170_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0170" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0170_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0780.ets + + +@Component +struct ActionEventCommoneventDragdefault0780 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '第一行可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Column(){ + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + Text('第二行文本').fontSize(20) + Text('第三行文本').fontSize(20) + } + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0120.ets + + +@Component +struct ActionEventCommoneventDragInput0120 { + @State flagNum: number = 0; + @State text: string = ''; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: '0123456789abcdefg', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .defaultFocus(true) + .draggable(true) + .textFont({ + size: 20 + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.text = 'DragStart' + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 6) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + this.text + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0080.ets + + +@Component +struct UIAttributesBlendModeBlendModeMix0080 { + @State isClick:boolean = false + onButtonClick(){ + this.isClick = true + } + build() { + Column(){ + Row(){ + Row(){ + Text('Text子组件').fontSize(20).fontColor(this.isClick == true ? Color.Pink :Color.White).margin({left:50,top:50} as Margin) + }.width('100%').height(150).backgroundColor(Color.Pink) + }.width('100%').height(200).backgroundColor(Color.Green) + Button("ManyNode") + .height(50) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .margin({ top: '20px' } as Margin) + .onClick((e:ClickEvent)=>{ + this.onButtonClick() + }) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0190.ets + + +@Component +struct UIAttributesBackgroundInterface0190 { + build() { + Column() { + Row() { + Text("BACKGROUND_ULTRA_THICK") + } + .position({ x: 100, y: 100 } as Position) + .width(200) + .height(100) + .backgroundBlurStyle(BlurStyle.BACKGROUND_ULTRA_THICK) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesHovereffectDoubleStrokeInterface/0250.ets + + +@Component +struct UIAttributesHovereffectDoubleStrokeInterface0250 { + build() { + Row() { + Text('Hello World') + .width(200) + .height(100) + .backgroundColor(Color.Blue) + .outlineStyle(OutlineStyle.DOTTED) + .outlineWidth(5) + .outlineColor(Color.Red) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIAttributesBcakgroundSeriable/UIAttributesBcakgroundSeriable0140.ets + + +@Component +struct UIAttributesBcakgroundSeriable0140 { + @State top: number = 150 + @State bottom: number = 30 + @State left: number = 0 + @State right: number = 0 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('{top:220,left:0,bottom:20,right:0}') + Image($r('app.media.startIcon')) + .resizable({ + slice: { + left: this.left, + right: this.right, + top: this.top, + bottom: this.bottom + } + }) + .width(200) + .height(200) + .border({ width: 2, color: Color.Pink } as BorderOptions) + .objectFit(ImageFit.None) + } + .justifyContent(FlexAlign.Start).width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_77: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets new file mode 100644 index 000000000..adedb053e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets @@ -0,0 +1,486 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Button,cursorControl,Text, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, + DatePicker,FlexAlign,HorizontalAlign,Margin,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign, + Padding, +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, SwipeGesture, PanGesture, GestureEvent, Image, Text } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry,Component,Builder,Column,TextInput,Margin,Button,SheetSize,SheetType,ClickEvent,Color,SheetOptions, + FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, +$$,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionAnimator/UIAttributesModaltransitionAnimator0070.ets + + +@Component +struct UIAttributesModaltransitionAnimator0070 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: 200, + preferType: SheetType.POPUP, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.justifyContent(FlexAlign.Center) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionSafearea/UIAttributesModaltransitionSafearea0090.ets + + +@Component +struct UIAttributesModaltransitionSafearea0090 { + @State isShow: boolean = false + @Builder + myBuilder() { + Column() { + TextInput() + .id("input1") + TextInput() + .id("input2") + .margin({bottom: 60} as Margin) + }.justifyContent(FlexAlign.End) + .width('100%') + .height('100%') + } + build() { + Column() { + Button('bindSheet') + .id('button1') + .margin({top: 20} as Margin) + .bindSheet(this.isShow, this.myBuilder, { + height: SheetSize.FIT_CONTENT, + preferType: SheetType.BOTTOM, + } as SheetOptions) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + }.backgroundColor(Color.Green) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0160.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0160 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, {align:Alignment.Bottom}) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0310.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0310 { + @State offsetX: number = 0; + @State offsetY: number = 0; + @State positionX: number = 0; + @State positionY: number = 0; + @Builder + overlayBuilder(){ + Button("按键") + .id("overlayButton") + .fontSize(28) + .height(100) + .width(200) + .padding(20) + .border({ width: 3 }) + .translate({ x: this.offsetX, y: this.offsetY, z: 0 }) + .gesture( + PanGesture() + .onActionStart((event: GestureEvent|undefined) => { + console.info('Pan start'); + }) + .onActionUpdate((event: GestureEvent|undefined) => { + if(event){ + this.offsetX = this.positionX + event.offsetX; + this.offsetY = this.positionY + event.offsetY; + } + }) + .onActionEnd(() => { + this.positionX = this.offsetX; + this.positionY = this.offsetY; + }) + ) + } + build() { + Column() { + Image("2.png").overlay((): void => {this.overlayBuilder()}).height(400).width(500); + Text("测试").fontSize(1).id("ceshitext") + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentPreventdefault/UIComponentPreventdefault0020.ets + + +@Component +struct UIComponentPreventdefault0020 { + build() { + Column({ space: 5 } as ColumnOptions) { + Button("触摸").id("UIComponentPreventdefault0020") + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0730.ets + + +@Component +struct UIAttributesColorrampInterface0730 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[["rgba(0,0,255,0.5)",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0110.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0110 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2100-1-1'), + selected: new Date('2024-12-02') + }) + .margin({ top: 60 } as Margin) + .foregroundEffect({ radius: this.radiusValue }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0280.ets + + +@Component +struct UIAttributesColorrampInterface0280 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('Button') + .width(400) + .height(60) + .linearGradient({ + colors:[[0x0000ff,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0320.ets + + +@Component +struct UIAttributesImageeffectInterface0320 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesRenderFit/UIAttributesRenderFit0070.ets + + +@Component +struct UIAttributesRenderFit0070 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + @State strText: string = "Hello"; + build() { + Column() { + Text(this.strText) + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.TOP_RIGHT) + .borderWidth(1) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, ():void => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + Button("hide") + .onClick((e:ClickEvent) => { + this.strText = "" + }) + .id('hide_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0160.ets + + +@Component +struct ActionEventCommonEventMouseStyle0160 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.WEST_EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0160_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0160" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0160_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_78: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets new file mode 100644 index 000000000..968566465 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets @@ -0,0 +1,358 @@ +import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,SweepGradientOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + $r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Visibility, + DragEvent, + UnifiedData,UniformDataType, + List, + CustomBuilder, + ForEach, + ListItem, + Image, + DragItemInfo, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0370.ets + + +@Component +struct UIAttributesColorrampInterface0370 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[-10,10], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:60 + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes110.ets + + +@Component +struct UIAttributesTouchableInteraction110 { + @State uri: string = "" + @State AblockArr: Array = new Array() + @State BblockArr: Array = new Array() + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .width(100) + .height(100) + .border({ width: 1 } as BorderOptions) + .visibility(this.AVisible) + .draggable(true) + .hitTestBehavior(HitTestMode.None) + .id('UIAttributesTouchableInteraction110') + .onDragMove((): void => { + this.uri = 'onDragLeave'; + }) + .onDragStart(undefined) + .onDragEnd((event: DragEvent): void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + Row() { + Column(){ + Text('不允许释放区域(显示不允许角标但可以释放)') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.AblockArr, (item:string, index:number):void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .height('90%') + .width('100%') + .allowDrop([UniformDataType.TEXT]) + .border({width: 1} as BorderOptions) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number): void => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1} as BorderOptions) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string) => item) + } + .id('UIAttributesTouchableInteraction110_1') + .border({width: 1} as BorderOptions) + .height('90%') + .width('100%') + .allowDrop([UniformDataType.IMAGE]) + .onDrop((event?: DragEvent, extraParams?: string) => { + console.log("enter onDrop") + let dragData:UnifiedData = (event as DragEvent).getData() as UnifiedData; + this.dragSuccess = true + }) + } + .height("50%") + .width("45%") + .border({ width: 1 } as BorderOptions) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0290.ets + + +@Component +struct UIAttributesImageeffectInterface0290 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(0.5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0260.ets + + +@Component +struct UIAttributesColorrampInterface0260 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),-0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0080.ets + + +@Component +struct UIAttributesImageEffectProjection0080 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .sweepGradient({center: [100, 100], start: 0, end: 300, colors: [[Color.Red, 0], [Color.Yellow, 0.5], [Color.Blue, 1]]} as SweepGradientOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0160.ets + + +@Component +struct UIComponentBackgroundimage0160 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/BindSheet/entry/src/main/ets/testability/pages/BindSheet/HightNumber.ets + +@Component +struct HightNumber { + @State isShow:boolean = false + @State isShow2:boolean = false + @State isShow3:boolean = false + @State isShow4:boolean = false + @Builder myBuilder4() {} + @Builder myBuilder3() { + Column() { + Button("transition modal 4").fontSize(11).id('HightNumber1') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow4 = true; + }) + .bindSheet(this.isShow4, this.myBuilder4, { + height:SheetSize.MEDIUM , dragBar: true, + backgroundColor: Color.Brown, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + } as SheetOptions) + Button("close ALPHA").fontSize(11).id('HightNumber2') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow3 = false; + }) + } + .width('100%') + .height('100%') + } + @Builder myBuilder2() { + Column() { + Button(" height5000").fontSize(11).id('HightNumber3') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow3 = true; + }) + .bindSheet(this.isShow3, this.myBuilder3, { + height: 5000, dragBar: true, + backgroundColor: Color.Red, + onAppear: () => { + console.log("BindContentCover onAppear.") + }, + onDisappear: () => { + console.log("BindContentCover onDisappear.") + } + }) + Button("close DEFAULT").fontSize(11).id('HightNumber4') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent) => { + this.isShow2 = false; + }) + }.width('100%') + .height('100%') + } + @Builder myBuilder() { + Column() { + Button("transition DEFAULT").fontSize(11).id('HightNumber5') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow2 = true; + }).bindSheet(this.isShow2, this.myBuilder2, {height:300 , dragBar: true, backgroundColor: Color.Orange, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + Button("close NONE").fontSize(11).id('HightNumber6') + .margin(10) + .fontSize(20) + .onClick((e:ClickEvent)=>{ + this.isShow = false; + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("transition NONE").fontSize(11).id('HightNumber7') + .onClick((e:ClickEvent) => { + this.isShow = true + }) + .fontSize(20) + .margin(10) + .bindSheet(this.isShow, this.myBuilder, {height:500 , dragBar: true, backgroundColor: Color.Pink, onAppear: () => {console.log("BindContentCover onAppear.")}, onDisappear: () => {console.log("BindContentCover onDisappear.")}}) + } + .justifyContent(FlexAlign.Center) + .backgroundColor("#ff49c8ab") + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_79: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets new file mode 100644 index 000000000..f44252e40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets @@ -0,0 +1,401 @@ +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import window from '@ohos.window'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + $r, + DragPreviewMode, +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, + Row,Text,Position,DragEvent, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import Window from '@ohos.window' + +import common from '@ohos.app.ability.common'; + +import { Entry, Component,Column,RowSplit,Text,TextAlign,Button,ClickEvent +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl, +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0270.ets + + +@Component +struct ActionEventCommonEventMouseStyle0270 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.COLOR_SUCKER; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0270_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0270" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0270_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0190.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0190 { + @State hei:number = 100; + @State pad:number = 20; + build() { + Column(){ + Button('PaddingChange').onClick((e:ClickEvent)=>{ + this.pad = 80; + }).id('padding') + RowSplit() { + Text('1').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('2').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('3').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + Text('4').width('20%').height(this.hei).backgroundColor(0xD2B48C).textAlign(TextAlign.Center) + Text('5').width('20%').height(this.hei).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center) + } + .padding(this.pad) + .height(100) + .borderWidth(1) + .resizeable(true) // 可拖动 + .width('100%') + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesBlendModeBlendModeMix/UIAttributesBlendModeBlendModeMix0110.ets + + +interface location{ + x:number, + y:number +} +@Component +struct UIAttributesBlendModeBlendModeMix0110 { + @State isDragging: boolean = false; + @State textPosition: Position = { x: 100, y: 100 } as Position; + @State newTextPosition: Position = { x: 200, y: 200 } as Position; + @State textOpacity: number = 1.0; + onDragBegin(event: DragEvent, extraParams?: string) { + this.isDragging = true; + } + onDrag(event: DragEvent, extraParams?: string):void { + this.textPosition = { + x: event.getDisplayX() - 25, + y: event.getDisplayY() - 25 + }; + } + onDragOver(event: DragEvent, extraParams?: string):void { + this.isDragging = false; + } + simulateDrag() { + this.isDragging = true; + this.textPosition = this.newTextPosition; + setTimeout(() => { + this.isDragging = false; + this.textPosition = { x: 100, y: 100 } as Position; + }, 1500); + } + build() { + Column(){ + Row(){ + Text('drag') + .position(this.textPosition) + .fontSize(24) + .fontColor(this.isDragging ? Color.Black : Color.White) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(()=>void)=>{ + this.onDragBegin(event, extraParams) + return ()=>{} + }) + .onDragMove((event: DragEvent, extraParams?: string):void=>{ + this.onDrag(event,extraParams) + }) + .onDragEnd((event: DragEvent, extraParams?: string):void=>{ + this.onDragOver(event,extraParams) + }) + } + .backgroundColor(Color.Green) + .width('100%') + .height(300) + .opacity(this.isDragging ? 0.5 : 1.0) + Button('drag') + .height(50) + .width(100) + .margin({ top: 20 } as Margin) + .fontColor(Color.Black) + .backgroundColor(Color.Red) + .onClick((e:ClickEvent) => { + this.simulateDrag() + }) + .id('buttonId') + } + .opacity(this.textOpacity) + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0100.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0100 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + Image($r('app.media.startIcon')) + .id('SubAceActionEventCommoneventDragImprove0100_btn') + .width('100%') + .height('100%') + .draggable(true) + .dragPreviewOptions({ + mode: [DragPreviewMode.AUTO, DragPreviewMode.ENABLE_DEFAULT_RADIUS] + }) + .onDragStart((event: DragEvent): (() => void) => { + console.info('start drag...'); + }) + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0100_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0330.ets + + +@Component +struct ActionEventCommoneventDragdefault0330 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({ top: 250 } as Margin) + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0640.ets + + +@Component +struct UIAttributesColorrampInterface0640 { + @State repeat:boolean=false + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:0,end:90, + repeating:this.repeat + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.repeat=!this.repeat + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.btnShow = Visibility.None + } else { + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + + +export const FLAG_OF_FILE_8: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets new file mode 100644 index 000000000..10f405090 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets @@ -0,0 +1,405 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { KeyCode } from '@ohos.multimodalInput.keyCode'; + +import { + State, +} from '@ohos.arkui.stateManagement' + +import { Entry,Component,Text,Column,Image,$r,Margin,DragEvent +} from '@ohos.arkui.component' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Slider,Text,SliderStyle,SliderChangeMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, + OnWillScrollCallback,OnScrollCallback, ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0310603.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0310603 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0310603_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Bottom) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0310603_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index: number) => { + ForEach(this.numbers, (day: string, index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index: number) => day) + }, (day: string, index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0510.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0510 { + @State radius: number = 0 + @State inSetValueOne: number = 30 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0510_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0510_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0510_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Row() { + Slider({ + value: this.inSetValueOne, + min: 0, + max: 100, + style: SliderStyle.InSet + }) + .blockColor('#191970') + .trackColor('#ADD8E6') + .selectedColor('#4169E1') + .showTips(true) + .onChange((value: number, mode: SliderChangeMode):void => { + this.inSetValueOne = value + console.info('value:' + value + 'mode:' + mode.toString()) + }) + .foregroundEffect({ radius: this.radius }) + Text(this.inSetValueOne + .toFixed(0)) + .fontSize(20) + } + .width('80%') + } + } + .id('UIComponentCommonattrForegroundEffect0510_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0400.ets + + +@Component +struct UIAttributesColorrampInterface0400 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .radialGradient({ + center:[0,50], + colors:[["#aaa",0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + radius:"20%", + repeating:true + } as RadialGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1400.ets + + +@Component +struct UIAttributesBackgroundInterface1400 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'AAA', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/AnalyseActionEventCommoneventDrag/AnalyseActionEventCommoneventDrag0200.ets + + +@Component +struct AnalyseActionEventCommoneventDrag0200 { + build() { + Column() { + Image($r('app.media.startIcon')).width(150).height(150) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).border({width:1}).id('img') + Text('这是一个text').fontSize(30).width(100).height(80).margin({top: 30} as Margin) + .draggable(true).onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }).id('txt') + }.margin(30) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0770.ets + + +@Component +struct ActionEventCommoneventDragdefault0770 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文本' + @State txt_color:Color = Color.Black + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontColor(Color.Blue) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + this.txt_color = Color.Blue + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontColor(Color.Blue) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + }.margin({top:50} as Margin) + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0290_722.ets + + +@Component +struct UIComponentListandgridGridInterface_0290_722 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(500) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_80: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets new file mode 100644 index 000000000..d49c28eb2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets @@ -0,0 +1,374 @@ +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row,RowOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + Text,FlexAlign,HorizontalAlign,ScrollDirection,Margin +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + TapGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Column, + Margin, + Alignment, + Image, + $r, + Color, + Builder +} from '@ohos.arkui.component'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, ClickEvent, SwipeGesture, SwipeDirection, GestureEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0420.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0420 { + @State rotateAngle: number = 0; + @State speed: number = 1; + @Builder + overlayBuilder(){ + Button("子按键") + .id("sonButton") + .fontSize(10) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void=> { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .onClick((e: ClickEvent): void => { + this.rotateAngle=this.rotateAngle+120 + }) + .height(50) + .width(100) + .padding(20) + .border({ width: 3 }) + .margin(100) + .backgroundColor(Color.Pink) + } + build() { + Column() { + Button("父按键") + .id("fatherButton") + .fontSize(50) + .rotate({ angle: this.rotateAngle }) + .gesture( + SwipeGesture({ direction: SwipeDirection.Vertical }) + .onAction((event: GestureEvent|undefined): void => { + if(event){ + this.speed = event.speed; + this.rotateAngle = event.angle; + } + }) + ) + .height(200) + .width(300) + .padding(20) + .border({ width: 3 }) + .margin(100) + .overlay((): void => {this.overlayBuilder()}) + } + .height("100%") + .width("100%") + .backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0270155.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0270155 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0270155_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollToIndex(5); + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0270155_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .animation({ + duration: 1000, + curve: Curve.Ease + }) + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundSelfDrawing/UIAttributesBackgroundSelfDrawing0150.ets + + +@Component +struct UIAttributesBackgroundSelfDrawing0150 { + @Builder BackgroundBuilder() { + Column(){ + Image($r('app.media.startIcon')) + .height(50) + .width(50) + }.backgroundColor(Color.Brown) + } + build() { + Column() { + }.width(400).height(400) + .background(this.BackgroundBuilder, ) + .backgroundColor(Color.Gray) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes230.ets + + +@Component +struct UIAttributesTouchableInteraction230 { + @State value: string = '' + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction230') + .hitTestBehavior(HitTestMode.Transparent) + .gesture( + TapGesture({ count: 1 }) + .onAction((event: GestureEvent) => { + if (event) { + this.value = 'onAction'; + } + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0330.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0330 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0200.ets + + +@Component +struct ActionEventCommoneventDragdefault0200 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .margin({top:250} as Margin) + .width(100) + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp') + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0050.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0050 { + build() { + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(2)").tabIndex(2) + Column({ space: 20 } as ColumnOptions) { + Button("tabIndex(1)").tabIndex(1) + } + Column({ space: 20 } as ColumnOptions) { + Button("未设置") + } + } + } +} + + +export const FLAG_OF_FILE_81: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets new file mode 100644 index 000000000..93a112880 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets @@ -0,0 +1,411 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,RotationGesture, + BorderOptions +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + Button, + GridRow, + GridCol, + Color, + DragEvent, + ClickEvent, + FontWeight, + Padding, +} from '@ohos.arkui.component'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions,Image,$r, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,Flex,FlexAlign,ItemAlign,ToggleType,Toggle, + Text,ToggleOptions, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, + Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,ShadowOptions,Color,Button,ClickEvent,ButtonType, + Margin,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0050.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0050 { + @State status: boolean = true + build() { + Column({space:10} as ColumnOptions) { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Green, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Button(this.status ? "usingShadowBatching" : "closedShadowBatching", { type: ButtonType.Normal }) + .width("70%") + .borderRadius(8) + .margin({top:20} as Margin) + .id("button") + .onClick((e:ClickEvent) => { + this.status = !this.status + }) + } + .useShadowBatching(this.status) + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0040.ets + + +@Component +struct UIComponentCommonattrGrayscale0040 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backgroundBlurStyle( + BlurStyle.Thin, { + blurOptions: { grayscale: [48, 58] } + }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0230.ets + + +@Component +struct UIAttributesModaltransitionVision0230 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[SheetSize.MEDIUM, '40%', 450] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + height: SheetSize.LARGE, + preferType: SheetType.CENTER, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlcallback0310.ets + + +@Component +struct ActionEventControlCallback0310 { + @State context: string = "" + build() { + Column({ space: 20 } as ColumnOptions) { + Flex({ justifyContent: FlexAlign.SpaceEvenly, alignItems: ItemAlign.Center }) { + Toggle({ type: ToggleType.Switch, isOn: false } as ToggleOptions) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .id('Switch') + .onChange((value: boolean) => { + let strJson: string = inspector.getInspectorByKey('Switch'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getString('$ype'); + this.context = `type:${type}, id:${id}, checked: ${value}` + }) + } + Text(this.context) + }.width('100%').padding(24) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0670.ets + + +@Component +struct ActionEventCommoneventDragdefault0670 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Image(this.uri) + .width(100) + .height(100) + .border({width: 1}) + .backgroundColor(Color.Red) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .width(100) + Column(){ + Text('A位置中间Image拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions){ + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + Image($r('app.media.startIcon')).width(100).height(100).border({ width: 1 }) + } + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0220.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0220 { + build() { + Column() { + GridRow() { + GridCol({ span: 6 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0220_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader220 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0430_891.ets + + +@Component +struct UIComponentListandgridGridInterface_0430_891 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarWidth(1) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes270.ets + + +@Component +struct UIAttributesTouchableInteraction270 { + @State value: string = ''; + @State angle: number = 0; + @State rotateValue: number = 0; + build() { + Column() { + Text('Click ').fontSize(28) + .id('UIAttributesTouchableInteraction270') + .hitTestBehavior(HitTestMode.Transparent) + .rotate({ angle: this.angle }) + .gesture( + RotationGesture() + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.angle = this.rotateValue + event.angle; + } + }) + .onActionEnd((event: GestureEvent) => { + this.rotateValue = this.angle; + this.value = 'RotationGesture onActionEnd'; + }) + ) + Text(this.value) + } + .height(200) + .width(300) + .padding(20) + .border({ width: 3 } as BorderOptions) + .margin(30) + } +} + + +export const FLAG_OF_FILE_82: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets new file mode 100644 index 000000000..5cceeb5aa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets @@ -0,0 +1,482 @@ +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,List,NavigationMode,ListItem, + NavPathStack,NavDestination,Navigation,ListOptions,ForEach,TextAlign,NavPathInfo +} from '@ohos.arkui.component' + +import { State,Provide,Consume } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0010_995.ets + + +@Component +struct UIComponentListandcridGridUxconsistency_0010_995 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({style: GridItemStyle.NONE} as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracInterface0160.ets + + +@Component +struct UIActtonEventComdneventDracInterface0160 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("acttonEvebt_0160_1") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text(this.targetText) + .id("acttonEvebt_0160_2") + .width('100%') + .height(100) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .margin(15) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentGrid/UIComponentGrid004.ets + +@Component +struct IndexeJpB3 { + @State numbers: Array = new Array('0', '1', '2', '3', '4', '5', '6', '7', '8', '9') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + columnsTemplateValue: string = "1fr 1fr 1fr 1fr" + @State cachedCount: number = 1 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height('100%') + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + } + .cachedCount(this.cachedCount) + .columnsTemplate(this.columnsTemplateValue) + .columnsGap(20) + .rowsGap(20) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('scrollToIndex equal to 30') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.columnsTemplateValue = "repeat(auto-fit, 90px)" + this.cachedCount = 3 + }).id('btn01') + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0040.ets + + +@Component +struct UIAttributesImageeffectInterface0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0900.ets + + +@Component +struct UIAttributesColorrampInterface0900 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[$r('app.media.startIcon'), 0.0], [Color.Pink, 0.5], [Color.Yellow, 1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton132.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton132 { + @Provide({alias:'pageInfos'}) pageInfos: NavPathStack = new NavPathStack() + private arr: string[] = ['pushpageOne']; + @Builder + PageMap(name: string) { + if (name === "pushpageOne") { + pageOne() + } + } + build() { + Column() { + Navigation(this.pageInfos) { + List({ space: 12 } as ListOptions) { + ForEach(this.arr, (item:string, index: number) => { + ListItem() { + Text(item) + .width("100%") + .height(72) + .backgroundColor('#FFFFFF') + .borderRadius(24) + .fontSize(16) + .fontWeight(500) + .textAlign(TextAlign.Center) + .id('pushpageOneID') + .onClick((): void=>{ + this.pageInfos.pushPath(new NavPathInfo(item,undefined)) + }) + } + }, (item:String,index:number) => String(item)) + } + .width("90%") + .margin({ top: 12 } as Margin) + } + .mode(NavigationMode.Stack) + .navDestination(this.PageMap) + } + .height('100%') + .width('100%') + .backgroundColor('#F1F3F5') + } +} +@Component +export struct pageOne { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Button('button1') + .id('button1') + .onClick((): void => { + }) + Button('button2') + .id('button2') + .onClick((): void => { + this.pageInfos.pop() + }) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + }.title("pushpageOne1Title") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + .id('popID') + } +} +@Component +export struct pageTwo { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent2") + }.width('100%').height('100%') + }.title("NavDestinationTitle2") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} +@Component +export struct pageThree { + @Consume('pageInfos') pageInfos: NavPathStack; + build() { + NavDestination() { + Column() { + Text("NavDestinationContent3") + }.width('100%').height('100%') + }.title("NavDestinationTitle3") + .onBackPressed(() => { + const popDestinationInfo = this.pageInfos.pop() // 弹出路由栈栈顶元素 + console.log('pop' + '返回值' + JSON.stringify(popDestinationInfo)) + return true + }) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0460.ets + + +@Component +struct ActionEventCommonEventMouseStyle0460 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0460_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0460" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0460_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + + +export const FLAG_OF_FILE_83: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets new file mode 100644 index 000000000..f80c0b1cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets @@ -0,0 +1,313 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect,Visibility, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + FlexAlign,Color,Margin,Text,TextInput, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0540.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0540 { + @State radius: number = 0 + build() { + Column({ space: 10 } as ColumnOptions) { + Row() { + Button('radius:10') + .key('UIComponentCommonattrForegroundEffect0540_001') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius += 10 + }) + Button('radius0') + .key('UIComponentCommonattrForegroundEffect0540_002') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius = 0 + }) + Button('radius:-10') + .key('UIComponentCommonattrForegroundEffect0540_003') + .fontSize(20) + .onClick((e:ClickEvent) => { + this.radius -= 10 + }) + } + .width('100%') + .justifyContent(FlexAlign.SpaceEvenly) + .margin({ bottom: 20 } as Margin) + Scroll() { + Column() { + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + Text('我是占位 Text') + .width('100%') + .height('20%') + .fontSize(28) + TextInput({ placeholder: 'I am TextInput' }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 20, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .fontColor(Color.Black) + .foregroundEffect({ radius: this.radius }) + } + } + .id('UIComponentCommonattrForegroundEffect0540_004') + .layoutWeight(1) + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0050.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0050 { + @State y: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`y: ${this.y}`) + .id('touchEventAttribute0050_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0050_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + let x = event.target.area.globalPosition.x; + this.y = event.target.area.globalPosition.y; + console.log(`globalX: ${x}, globalY: ${this.y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface076.ets + + +@Component +struct UIAttributesBackgroundInterface076 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg') + .backgroundImagePosition({ x: "280px", y: "90%" } as Position) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0210_300.ets + + +@Component +struct UIComponentListandgridGridInterface_0210_300 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State numbers1: Array = new Array('0', '1'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers1, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .rowsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0780.ets + + +@Component +struct UIAttributesColorrampInterface0780 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50],colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + start:-90, + end:90 + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0290.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0290 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + .visibility(Visibility.Hidden) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0290_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_84: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets new file mode 100644 index 000000000..a0311f67e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets @@ -0,0 +1,418 @@ +import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ObscuredReasons, + ClickEvent, + Column, + Margin, + Text, + Button, + Image, + Curve, + PlayMode, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base' + +import animator, { AnimatorResult,AnimatorOptions} from '@ohos.animator'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Image,DragEvent,UnifiedData,PreDragStatus,Rectangle,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,GradientDirection} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ColumnLinearGradient.ets + +@Component +struct LinearGradientExample { + build() { + Row() { + Column() + .width(300) + .height(200) + .linearGradient({ + angle: 90, + direction: GradientDirection.Bottom, + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]], + repeating: true + }).margin(5) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActtonEventComdneventDracCard/UIActtonEventComdneventDracForeground0090.ets + + +@Component +struct UIActtonEventComdneventDracForeground0090 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @State backGroundColor: Color = Color.Yellow; + @State myScale: number = 1 + @State duration: number = 300 + private TAG: string = '[AnimatorTest]' + private backAnimator: AnimatorResult | undefined = undefined + private flag: boolean = false + @State wid: number = 100 + @State hei: number = 100 + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + private PreDragChange(preDragStatus: PreDragStatus): void { + if (preDragStatus == PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION) { + this.backGroundColor = Color.Yellow; + } else if (preDragStatus == PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + || preDragStatus == PreDragStatus.PREVIEW_LANDING_FINISHED) { + this.backGroundColor = Color.Yellow; + } + } + create() { + let _this = this + this.backAnimator = animator.create({ + duration: 2000, + easing: "extreme-deceleration", + delay: 500, + fill: "forwards", + direction: "normal", + iterations: 1, + begin: 100, + end: 600 + } as AnimatorOptions) + if(this.backAnimator!==null && this.backAnimator!==undefined){ + (this.backAnimator as AnimatorResult).onFinish = () => { + this.flag = true + console.info('sally----- backAnimator onfinish') + } + (this.backAnimator as AnimatorResult).onRepeat = () => { + console.info('sally----- backAnimator repeat') + } + (this.backAnimator as AnimatorResult).onCancel = () => { + console.info('sally----- backAnimator cancel') + } + (this.backAnimator as AnimatorResult).onFrame = (value: number) => { + this.wid = value + this.hei = value + } + } + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id("UIActtonEventComdneventDracForeground0090_01") + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onPreDrag((status: PreDragStatus) => { + this.PreDragChange(status); + } as Callback) + .backgroundColor(this.backGroundColor) + }.width('45%') + .height('100%') + Column() { + Column() { + Text(this.abstractContent).fontSize(20).width('100%').id("UIActtonEventComdneventDracForeground0090_02") + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0050.ets + + +@Component +struct UIComponentMediaImageMask0050 { + @State widthSize: number = 200 + @State heightSize: number = 200 + @State flag: boolean = true + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .animation({ + duration: 2000, + curve: Curve.EaseOut, + iterations: 1, + playMode: PlayMode.Normal + }) + .obscured([ObscuredReasons.PLACEHOLDER]) + Button('start Animation').onClick((e: ClickEvent) => { + if (this.flag) { + this.widthSize = 150 + this.heightSize = 60 + } else { + this.widthSize = 250 + this.heightSize = 100 + } + this.flag = !this.flag + }).id('mask0050_button_01').margin(5) + }.width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentScrollScrollCetitemrect/UIComponentScrollScrollCetitemrect0240.ets + + +@Component +struct UIComponentScrollScrollCetitemrect0240 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 10 + @State str: string = '' + build() { + Column({ space: 5 } as ColumnOptions) { + Text(this.str).fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + .position({ x: 100, y: this.gridPosition } as Position) + .offset({ x: 1, y: this.gridPosition } as Position) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + Button('获取位置') + .id('UIComponentScrollScrollCetitemrect0240_001') + .onClick((event:ClickEvent) => { + this.str = JSON.stringify(this.scroller1.getItemRect(0)) + }) + Button('改变位置') + .id('UIComponentScrollScrollCetitemrect0240_002') + .onClick((event:ClickEvent) => { + this.gridPosition = 20 + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0230.ets + + +@Component +struct ActionEventCommoneventDragInput0230 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0060.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0060 { + build() { + Column() { + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 220, + color: Color.Yellow, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + Column() + .width("70%") + .height(70) + .borderRadius(10) + .shadow({ + radius: 280, + color: Color.Red, + offsetX: 0, + offsetY: 0 + } as ShadowOptions) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + + +export const FLAG_OF_FILE_85: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets new file mode 100644 index 000000000..d5ce6bd60 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets @@ -0,0 +1,453 @@ +import UDC from '@ohos.data.unifiedDataChannel'; + +import UTD from '@ohos.data.uniformTypeDescriptor'; + +import { BusinessError } from '@ohos.base'; + +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + XComponentController, + CopyOptions, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Color, + Margin, + ClickEvent, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + TextArea, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions +} from '@ohos.arkui.component' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,Text,Image,BlurStyle, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, TimePickerResult, TimePicker,FontWeight } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions,TextAlign, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrBackgroundColoring/UIComponentCommonattrBackgroundColoring0070.ets + + +@Component +struct UIComponentCommonattrBackgroundColoring0070 { + build() { + Row() { + Column() { + Image('cat.jpg') + .width(250) + .height(150) + .margin(20) + .shadow({ + radius: 10, + color: ColoringStrategy.INVERT + } as ShadowOptions) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0240136.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0240136 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + this.msgInfo= "trigger Grid onScrollStop" + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0240136'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0530.ets + + +@Component +struct ActionEventCommoneventDragdefault0530 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State text_align:TextAlign = TextAlign.Start + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .textAlign(this.text_align) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + this.text_align = TextAlign.Center + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .width(150) + .textAlign(TextAlign.Center) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0680.ets + + +@Component +struct UIAttributesImageeffectInterface0680 { + build() { + Column() { + Row() { + Text() + .width(300) + .height(350) + .backgroundImage('2.png') + .backdropBlur(10) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0270.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0270 { + @State isMilitaryTime: boolean = false + private selectedTime: Date = new Date('2022-07-22T08:00:00') + @Builder + privateBuilder() { + TimePicker({ + selected: this.selectedTime, + }) + .useMilitaryTime(this.isMilitaryTime) + .onChange((value: TimePickerResult):void => { + if(value.hour >= 0) { + this.selectedTime.setHours(value.hour, value.minute) + console.info('select current date is: ' + JSON.stringify(value)) + } + }) + .disappearTextStyle({color: Color.Red, font: {size: 15, weight: FontWeight.Lighter}}) + .textStyle({color: Color.Black, font: {size: 20, weight: FontWeight.Normal}}) + .selectedTextStyle({color: Color.Blue, font: {size: 30, weight: FontWeight.Bolder}}) + .width(565) + } + build() { + Column() { + }.overlay((): void => {this.privateBuilder()}).height(500).width(500).backgroundColor(Color.Pink) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0240.ets + + +@Component +struct UIAttributesImageeffectInterface0240 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .hueRotate(180) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrGrayscale/UIComponentCommonattrGrayscale0150.ets + + +@Component +struct UIComponentCommonattrGrayscale0150 { + build() { + Row() { + Column() { + Text('原图:') + Image('cat.jpg') + .width(250) + .height(150) + Text('对比图:') + Image('cat.jpg') + .width(250) + .height(150) + .backdropBlur(20, { grayscale: [128, 128] }) + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0110.ets + + +@Component +struct UIComponentBackgroundimage0110 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/Polymorphic/SubAceActionEventCommineventDragXcomponentdataunity0950.ets + + +@Component +struct SubAceActionEventCommineventDragXcomponentdataunity0950 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Column() { + Text('this is abstract') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + .fontSize(20) + .width('100%') + }.margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + .onDragStart((event: DragEvent): (() => void) => { + }) + }.width('45%') + .height('100%') + Column() { + TextArea({ placeholder: 'please input words' }) + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_1') + .copyOption(CopyOptions.InApp) + .width('100%') + .height(50) + .draggable(true) + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + .id('SubAceActionEventCommineventDragXcomponentdataunity0950_2') + } + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 }) + .allowDrop([UTD.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent, extraParams?: string) => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + }) + }) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + + +export const FLAG_OF_FILE_86: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets new file mode 100644 index 000000000..754a7c707 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets @@ -0,0 +1,341 @@ +import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture, + FontWeight, Alignment, Direction, ClickEvent } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,List,ListItem,ForEach,Flex,ClickEvent, + Alignment,Stack,FlexDirection,ItemAlign,TextAlign,BarState,Padding,Text,Button,cursorControl +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0530.ets + + +@Component +struct ActionEventCommonEventMouseStyle0530 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.LOADING; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0530_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0530" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0530_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0540.ets + + +@Component +struct UIAttributesModaltransitionVision0540 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, undefined) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0120.ets + + +@Component +struct ActionEventCommoneventDragdefault0120 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .visibility(this.AVisible) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + let ret = event.getResult(); + if(ret == 0) { + console.log("enter ret == 0") + this.AVisible = Visibility.Hidden; + } else { + console.log("enter ret != 0") + this.AVisible = Visibility.Visible; + } + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('可释放区域') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + console.log(`dragData arr is null`) + } + } else { + console.log(`dragData is undefined`) + } + console.log("ondrop udmf data"); + this.dragSuccess = true + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0450.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0450 { + @State fontColor: Color = Color.Blue; + @Builder + privateBuilderThree() { + Text("三级overlay文本").fontSize(40).fontWeight(FontWeight.Bolder).fontColor(this.fontColor) + } + @Builder + privateBuilderTwo() { + Text("二级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderThree()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + } + @Builder + privateBuilder() { + Column() { + Text("一级overlay文本") + .fontSize(40) + .fontWeight(FontWeight.Bolder) + .overlay((): void => {this.privateBuilderTwo()}, { align: Alignment.Center, offset: { x: 0, y: 50 } }) + .fontColor(this.fontColor) + Button("点击改变") + .id("changeTextColor") + .margin({ top: 200 } as Margin) + .fontColor("#ff6bf2de") + .onClick((e: ClickEvent) => { + this.fontColor = Color.Yellow + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor(Color.Green) + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingCapirenderfit/0120.ets + + +@Component +struct UIAttributesComponentContentFillingCapirenderfit0120 { + @State width1: number = 100; + @State height1: number = 30; + flag: boolean = true; + build() { + Column() { + Text("Hello") + .width(this.width1) + .height(this.height1) + .renderFit(RenderFit.RESIZE_CONTAIN_TOP_LEFT) + .margin(20) + Button("animate") + .onClick((e:ClickEvent) => { + animateTo({ curve: Curve.Ease }, () => { + if (this.flag) { + this.width1 = 150; + this.height1 = 50; + } else { + this.width1 = 100; + this.height1 = 30; + } + this.flag = !this.flag; + }) + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_87: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets new file mode 100644 index 000000000..9ee3ce3b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets @@ -0,0 +1,397 @@ +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,RotateOptions,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Column, Component, Button, ColumnOptions,TextInputController,TextInput ,Text,TextInputOptions} from '@ohos.arkui.component'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Text,Row,RowOptions, + Color,DragEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0040.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0040 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.BOTTOM_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 3 : 1, y: this.SetAnimation.isAnimation ? 3 : 1 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.4, 0.8) as ICurve } as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0460.ets + + +@Component +struct ActionEventCommoneventDragdefault0460 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '可拖拽文字' + @State font_weight:number = 0 + build() { + Row({space:10} as RowOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(100) + .height(100) + .fontWeight(this.font_weight) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.uri = this.txt + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Text(this.txt) + .fontSize(20) + .fontWeight(800) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => {}) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + this.font_weight = 800 + }) + } + }.width('100%').padding(50) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0140.ets + + +@Component +struct ActionEventCommoneventDragInput0140 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .defaultFocus(true) + .id('0') + .fontSize(30) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('DragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + this.textList.push('DragLeave'); + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrag'); + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1380.ets + + +@Component +struct UIAttributesBackgroundInterface1380 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:'10px', + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterAction/UIAttributesFocuscontrolInterAction0020.ets + + +@Component +struct UIAttributesFocuscontrolInterAction0020 { + @State str: string = 'aa' + @State str1: string = '' + controller: TextInputController = new TextInputController() + fun(): number { + if (typeof this.str == 'number') { + return Number(this.str); + } else { + this.str1 = "error" + return 0 + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + TextInput({ placeholder: 'input ...', controller: this.controller } as TextInputOptions) + .width(380) + .height(60) + .tabIndex(this.fun()) + Text(this.str1).width(50) + }.width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0170.ets + + +@Component +struct UIAttributesColorRampBlurGradient0170 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0]] as Array<[Double, Double]>, direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0300.ets + + +@Component +struct UIAttributesColorrampInterface0300 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["#0000ff",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0090.ets + + +@Component +struct UIAttributesGraphictransformationInterface0090 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('rotate,默认参数') + .width(100) + .rotate({x:0,y:0,z:0,angle:0,centerX:"50%",centerY:"50%"} as RotateOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0150.ets + + +@Component +struct ActionEventCommoneventDragdefault0150 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + build() { + Column() { + Row() { + Column(){ + Text('B位置') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Image(item) + .width(100) + .height(100) + .border({width: 1}) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.IMAGE]) + .onDrop((event: DragEvent, extraParams?: string):void => { + let dragData:unifiedDataChannel.UnifiedData = (event as DragEvent).getData() as unifiedDataChannel.UnifiedData; + if(dragData != undefined) { + let arr:Array = dragData.getRecords(); + if(arr.length > 0) { + let image = arr[0] as unifiedDataChannel.Image; + this.uri = image.imageUri; + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.uri); + } else { + } + } else { + } + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ right: 12 } as Margin) + } + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Column(){ + Text('A位置Image拖拽') + .fontSize('30dp').margin({ top: 30 } as Margin) + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .border({ width: 1 }) + .draggable(true) + .backgroundColor(Color.Red) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => {}) + }.margin({left:30} as Margin) + } + }.width('100%') + } +} + + +export const FLAG_OF_FILE_88: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets new file mode 100644 index 000000000..76c7328c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets @@ -0,0 +1,400 @@ +import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,$r, + Image,Resource,Padding,ResourceStr,ImageFit +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,ShadowOptions,Color,Margin,ColumnOptions,Button, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + FontWeight, + ButtonType, + Stack, + TouchEvent, + Position, + Color, + Flex, + FlexAlign, + ItemAlign, + ResourceStr, + ImageSize, + FlexDirection, + ResourceStr, + Builder, + Margin +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { Entry, Component,Column,ColumnOptions,Image,Text,FlexAlign,ScaleOptions,Margin, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Color,Column,List,ListOptions,ForEach,ListItem,TextAlign,Text, + Margin,FlexAlign,HorizontalAlign,ShadowOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,DataChangeListener,IDataSource, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,LazyForEach,EdgeEffect,ScrollState,DataOperation, + OnScrollCallback,ComputedBarAttribute +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0840_624.ets + + +class BasicDataSource implements IDataSource { + private listeners: Array = new Array(); + private originDataArray: Array = new Array(); + public totalCount(): number { + return 0; + } + public getData(index: number):string { + return this.originDataArray[index]; + } + registerDataChangeListener(listener: DataChangeListener): void { + if (this.listeners.indexOf(listener) < 0) { + console.info('add listener'); + this.listeners.push(listener); + } + } + unregisterDataChangeListener(listener: DataChangeListener): void { + const pos = this.listeners.indexOf(listener); + if (pos >= 0) { + console.info('remove listener'); + this.listeners.splice(pos, 1); + } + } + notifyDataReload(): void { + this.listeners.forEach(listener => { + listener.onDataReloaded(); + }) + } + notifyDataAdd(index: number): void { + this.listeners.forEach(listener => { + listener.onDataAdd(index); + }) + } + notifyDataChange(index: number): void { + this.listeners.forEach(listener => { + listener.onDataChange(index); + }) + } + notifyDataDelete(index: number): void { + this.listeners.forEach(listener => { + listener.onDataDelete(index); + }) + } + notifyDataMove(from: number, to: number): void { + this.listeners.forEach(listener => { + listener.onDataMove(from, to); + }) + } + notifyDatasetChange(operations: DataOperation[]):void{ + this.listeners.forEach(listener => { + listener.onDatasetChange(operations); + }) + } +} +class MyDataSource extends BasicDataSource { + private dataArray: Array = new Array(); + public totalCount(): number { + return this.dataArray.length; + } + public getData(index: number):string { + return this.dataArray[index]; + } + public addData(index: number, data: string): void { + this.dataArray.splice(index, 0, data); + this.notifyDataAdd(index); + } + public pushData(data: string): void { + this.dataArray.push(data); + this.notifyDataAdd(this.dataArray.length - 1); + } + public deleteData(index: number): void { + this.dataArray.splice(index, 1); + this.notifyDataDelete(index); + } + public changeData(index: number): void { + this.notifyDataChange(index); + } + operateData():void { + const totalCount = this.dataArray.length; + const batch=5; + for (let i = totalCount; i < totalCount + batch; i++) { + this.dataArray.push(`Hello ${i}`) + } + this.notifyDataReload(); + } +} +@Component +struct UIComponentListandgridGridInterface_0840_624 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + private data: MyDataSource = new MyDataSource(); + aboutToAppear() { + for (let i = 0; i <= 29; i++) { + this.data.pushData(`${i}`); + } + } + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + LazyForEach(this.data, (day: string,index:number) => { + LazyForEach(this.data, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 }; + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)); + console.info(String(scrollState)); + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart"); + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop"); + }) + .onReachStart(() => { + this.gridPosition = 0; + console.info("XXX" + "Grid onReachStart"); + }) + .onReachEnd(() => { + this.gridPosition = 2; + console.info("XXX" + "Grid onReachEnd"); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectUseShadowBatching/UIAttributesImageEffectUseShadowBatching0020.ets + + +@Component +struct UIAttributesImageEffectUseShadowBatching0020 { + @State dataList: number[] = [] as number[] + colors: Color[] = [Color.Blue, Color.Green, Color.Red, Color.Yellow] as Color[] + aboutToAppear(): void { + for (let index = 0; index < 100; index++) { + this.dataList.push(index); + } + } + build() { + Column() { + List({ space: 10 } as ListOptions) { + ForEach(this.dataList, (index: number,i:number) => { + ListItem() { + Text(index.toString()) + .width("100%") + .textAlign(TextAlign.Center) + }.shadow({ radius: 50, color: this.colors[index%4] } as ShadowOptions) + .height(40) + .borderRadius(8) + .margin({ right: 10, left: 10 } as Margin) + }) + }.useShadowBatching(true) + } + .width("100%") + .height("100%") + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphictransformationInterface/UIAttributesGraphictransformationInterface0390.ets + + +@Component +struct UIAttributesGraphictransformationInterface0390 { + build() { + Column({space:3} as ColumnOptions){ + Image('cat.jpg') + .width(100) + Text('scale:{y:1.5}') + Image('cat.jpg') + .width(100) + .scale({y:1.5} as ScaleOptions) + .margin({top:8} as Margin) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0280.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0280 { + @State mainColor:Color=Color.Orange; + @Builder + privateBuilder() { + Column(){ + Button("点击改变主控件背景色").onClick((e: ClickEvent) => { + this.mainColor=Color.Pink + }).height(30).width(150).margin({top:30,right:60} as Margin) + }.height(100).width("100%").backgroundColor("#F26BED").id("changeButton") + } + build() { + Column() { + Text('主控件文字背景').backgroundColor(this.mainColor).fontSize(50).margin({top:300,right:60} as Margin); + }.overlay((): void => {this.privateBuilder()},{offset:{x:0,y:80}}).height(500).width(500).backgroundColor("#ff6bf2b8") + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0400.ets + + +@Component +struct UIAttributesImageeffectInterface0400 { + build() { + Column({ space: 5 } as ColumnOptions) { + Image('2.png') + .width(200) + .height(250) + .shadow({ + radius: 10, + color: Color.Pink, + offsetX: -50, + offsetY: 50 + } as ShadowOptions) + .margin({ left: 10 } as Margin) + Button('aaa') + .width(150) + .height(50) + .backgroundColor(Color.Red) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0110.ets + + +@Component +struct UIAttributesImageeffectInterface0110 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .contrast(1) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIComponentBackgroundimage/UIComponentBackgroundimage0120.ets + + +@Component +struct UIComponentBackgroundimage0120 { + private iconStr: ResourceStr = $r('app.media.startIcon'); + build() { + Column({ space: 5 } as ColumnOptions) { + Image(this.iconStr) + .objectFit(ImageFit.Fill) + .width('100%') + .layoutWeight(1) + } + .width('100%').height('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyInterface/UIAttributesTransparencyInterface0030.ets + + +@Component +struct UIAttributesTransparencyInterface0030 { + @State opacityValue: number = 1; + build() { + Column() { + Text('Hello World') + .backgroundColor(0xAFEEEE) + .opacity(this.opacityValue) + Button('opacity:0') + .onClick((e:ClickEvent) => { + this.opacityValue = 0; + }) + .width(200) + .height(40) + .fontSize(16) + .backgroundColor('#007DFF') + .margin(20) + .id('buttonId') + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + + +export const FLAG_OF_FILE_89: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets new file mode 100644 index 000000000..08349baf6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets @@ -0,0 +1,390 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import componentUtils from '@ohos.arkui.componentUtils'; + +import { Entry, Component,Column,ColumnSplit,Text,TextAlign, + Grid,GridItem, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color, HorizontalAlign, ImageRepeat } from '@ohos.arkui.component'; + +import pointer from '@ohos.multimodalInput.pointer' + +import { Column,WrappedBuilder, TouchEvent,Entry, + Component,Margin,FlexAlign,TextInputOptions, + ClickEvent,ColumnOptions,InputType,TextInput,ListScroller,Button,ClickEvent, + List,ListItem,ForEach,FlexDirection,ItemAlign,BarState,Padding,Stack,Alignment,Flex,cursorControl, + FlexDirection,ItemAlign,Text,TextAlign +} from '@ohos.arkui.component' + +import { BuilderNode } from '@ohos.arkui.node' + +import { State } from '@ohos.arkui.stateManagement' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState,SearchController, + Color,TextInputController,Margin,TextInput,SearchOptions, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIAttributesFocuscontrolInterface/UIAttributesFocuscontrolInterface0140.ets + + +@Component +struct UIAttributesFocuscontrolInterface0140 { + @State text: string = '' + controller: TextInputController = new TextInputController() + controller1: SearchController = new SearchController() + @State changeValue: string = '' + build() { + Column({ space: 5 }as ColumnOptions) { + TextInput({ text: this.text, placeholder: 'input your word...', controller: this.controller }) + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .caretColor(Color.Blue) + .width('95%') + .height(40) + .margin(20) + .fontSize(14) + .groupDefaultFocus(true) + .fontColor(Color.Black) + Button('one button ') + Search({ value: this.changeValue, placeholder: 'Type to search...', controller: this.controller1 } as SearchOptions) + .searchButton('SEARCH') + .width('95%') + .height(40) + .backgroundColor('#F5F5F5') + .placeholderColor(Color.Grey) + .placeholderFont({ size: 14, weight: 400 }) + .textFont({ size: 14, weight: 400 }) + }.width('100%').margin({ top: 5 }as Margin) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventMouseStyle/ActionEventCommonEventMouseStyle0120.ets + + +@Component +struct ActionEventCommonEventMouseStyle0120 { + scrollControl: ListScroller = new ListScroller(); + currentStyle: pointer.PointerStyle = pointer.PointerStyle.EAST; + @State arr: number[] = [ + 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 42, 43, 44] as number[]; + @State arrStyle: pointer.PointerStyle[] = [ + pointer.PointerStyle.DEFAULT, + pointer.PointerStyle.EAST, + pointer.PointerStyle.WEST, + pointer.PointerStyle.SOUTH, + pointer.PointerStyle.NORTH, + pointer.PointerStyle.WEST_EAST, + pointer.PointerStyle.NORTH_SOUTH, + pointer.PointerStyle.NORTH_EAST, + pointer.PointerStyle.NORTH_WEST, + pointer.PointerStyle.SOUTH_EAST, + pointer.PointerStyle.SOUTH_WEST, + pointer.PointerStyle.NORTH_EAST_SOUTH_WEST, + pointer.PointerStyle.NORTH_WEST_SOUTH_EAST, + pointer.PointerStyle.CROSS, + pointer.PointerStyle.CURSOR_COPY, + pointer.PointerStyle.CURSOR_FORBID, + pointer.PointerStyle.COLOR_SUCKER, + pointer.PointerStyle.HAND_GRABBING, + pointer.PointerStyle.HAND_OPEN, + pointer.PointerStyle.HAND_POINTING, + pointer.PointerStyle.HELP, + pointer.PointerStyle.MOVE, + pointer.PointerStyle.RESIZE_LEFT_RIGHT, + pointer.PointerStyle.RESIZE_UP_DOWN, + pointer.PointerStyle.SCREENSHOT_CHOOSE, + pointer.PointerStyle.SCREENSHOT_CURSOR, + pointer.PointerStyle.TEXT_CURSOR, + pointer.PointerStyle.ZOOM_IN, + pointer.PointerStyle.ZOOM_OUT, + pointer.PointerStyle.MIDDLE_BTN_EAST, + pointer.PointerStyle.MIDDLE_BTN_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH, + pointer.PointerStyle.MIDDLE_BTN_NORTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_EAST, + pointer.PointerStyle.MIDDLE_BTN_SOUTH_WEST, + pointer.PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST, + pointer.PointerStyle.HORIZONTAL_TEXT_CURSOR, + pointer.PointerStyle.CURSOR_CROSS, + pointer.PointerStyle.CURSOR_CIRCLE, + pointer.PointerStyle.LOADING, + pointer.PointerStyle.RUNNING + ] as pointer.PointerStyle[]; + build() { + Stack({ alignContent: Alignment.TopStart }) { + Column({ space: 30 } as ColumnOptions) { + Button("滚动测试项到顶部") + .id("ActionEventCommonEventMouseStyle0120_101") + .onClick((e:ClickEvent) => { + let styleIndex = this.arrStyle.indexOf(this.currentStyle); + if (styleIndex > -1) { + this.scrollControl.scrollToIndex(styleIndex, true); + } + }) + List({ space: 20, initialIndex: 0, scroller: this.scrollControl }) { + ForEach(this.arr, (item: number, index: number) => { + ListItem() { + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center }) { + Text('' + item) + .width('100%') + .height(50) + .fontSize(20) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + .flexShrink(1) + } + } + .id("ActionEventCommonEventMouseStyle0120" + "_" + item) + .onHover((isHover: boolean):void => { + if (isHover) { + cursorControl.setCursor(this.arrStyle[index]); + } else { + cursorControl.restoreDefault(); + } + }) + }, (item: number) => String(item)) + }.width('70%') + .scrollBar(BarState.On) + .friction(0.6) + }.width('100%') + } + .width('100%') + .height('100%') + .id("ActionEventCommonEventMouseStyle0120_100") + .backgroundColor(0xDCDCDC) + .padding({ bottom: 150 } as Padding) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface105.ets + + +@Component +struct UIAttributesBackgroundInterface105 { + build() { + Column() { + Row() + .backgroundImage('cat.jpg', ImageRepeat.X) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesShapecroppingRowsplit/UIAttributesShapecroppingRowsplit0080.ets + + +@Component +struct UIAttributesShapecroppingRowsplit0080 { + build() { + Column() { + Grid(){ + GridItem(){ + ColumnSplit(){ + Text('1').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + Text('2').width(100).height(100).backgroundColor(0xD2B48C).textAlign(TextAlign.Center).margin(10) + Text('3').width(100).height(100).backgroundColor(0xF5DEB3).textAlign(TextAlign.Center).margin(10) + }.borderWidth(1).resizeable(true) + } + } + .id('button') + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_001.ets + +@Component +struct onlyColumnBarState { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State BarValue: BarState = BarState.Off + onPageShow() { + console.info('onlyColumnBarState onPageShow') + this.BarValue = BarState.On + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .scrollBar(this.BarValue) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEvents/UIComponentListandgridGridEvents_0030_237.ets + + +@Component +struct UIComponentListandgridGridEvents_0030_237 { + @State numbers: Array = new Array(); + @State numbers2: Array = new Array(); + scroller1: Scroller = new Scroller(); + @State text: string = 'drag'; + @State text1: string = 'drag'; + @Builder pixelMapBuilder() { + Column() { + Text(this.text) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + } + aboutToAppear() { + for (let i = 1;i <= 12; i++) { + this.numbers.push(i + '') + } + for (let i = -12;i <=-1; i++) { + this.numbers2.push(i + '') + } + } + changeIndex(index1: number, index2: number) { //交换数组位置 + let temp: string; + temp = this.numbers[index1]; + this.numbers[index1] = this.numbers[index2]; + this.numbers[index2] = temp; + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDragLeave( (event: ItemDragInfo, itemIndex: number) => { + this.text1 = 'onItemDragLeave'; + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Grid(this.scroller1) { + ForEach(this.numbers2, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width(80) + .height(80) + .textAlign(TextAlign.Center) + } + }) + } + .columnsTemplate('1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .editMode(true) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder | undefined => { + this.text = this.numbers[itemIndex]; + return this.pixelMapBuilder(); + } as OnItemDragStartCallback | undefined) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => { + if (!isSuccess || insertIndex >= this.numbers.length) { + return; + } + this.changeIndex(itemIndex, insertIndex); + }) + Text(this.text1) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_9: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets new file mode 100644 index 000000000..659cc3ed4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets @@ -0,0 +1,515 @@ +import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, + TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,ButtonOptions,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Text, Select, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Grid,Text,ClickEvent,GridItem,Text,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, + SheetSize,Resource, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment } from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, + animateTo,ButtonType,ClickEvent,Visibility,PlayMode, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,Row,Text, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0020.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0020 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button strokeWidth 负数') + .focusBox({ + strokeWidth: LengthMetrics.px(-20) + }) + Button('button strokeWidth 小数') + .focusBox({ + strokeWidth: LengthMetrics.vp(0.5), + }) + Button('button strokeWidth -null') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth undefined') + .focusBox({ + strokeWidth: undefined, + }) + Button('button strokeWidth 0') + .focusBox({ + strokeWidth: LengthMetrics.px(0), + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0620.ets + + +@Component +struct UIAttributesImageeffectInterface0620 { + build() { + Column() { + Row() { + Text('test') + .blur(0) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1340.ets + + +@Component +struct UIAttributesBackgroundInterface1340 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Pink,0.3],[0xD3E0DC,0.4],[Color.Red,0.6]], + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0030.ets + + +@Component +struct UIAttributesImageeffectInvert0030 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.8, + high: 0.3, + threshold: 0.5, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0520.ets + + +@Component +struct UIAttributesColorrampInterface0520 { + @State centerX: number = 0; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .radialGradient({ + center: [this.centerX, 50], + colors: [["#aaa", 0.0], [Color.Pink, 0.3], [Color.Yellow,1]], + radius: '20%', + repeating: false + } as RadialGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.centerX = 50 + this.btnShow = Visibility.None + } else { + this.centerX = 0 + this.btnShow = Visibility.Visible + } + this.flag=!this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0150.ets + + +@Component +struct UiAttributesFloatingLayerInterface0150 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .overlay("Winter is a beautiful season.",{align:Alignment.TopEnd}) + } + } +} + +// from /home/x00931626/UITest/datepicker_rh/entry/src/main/ets/testability/pages/UIAttributesModaltransitionVision/UIAttributesModaltransitionVision0080_2.ets + + +@Component +struct UIAttributesModaltransitionVision0080_2 { + @State isShow: boolean = false + arr: number[] = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20] as number[]; + @Builder + myBuilder() { + Column() { + ForEach(this.arr, (item: number,index:number) => { + Text(`item ${item}`).height(40) + }) + } + .width('100%') + .height('100%') + } + build() { + Column() { + Button("bind sheet") + .id('button1') + .margin({top: 20} as Margin) + .bindSheet($$(this.isShow), this.myBuilder, { + detents:[100, 200, 300] as [SheetSize|String|Double|Resource, SheetSize|undefined|String|Double|Resource, SheetSize|undefined|String|Double|Resource], + preferType: SheetType.BOTTOM, + }) + .onClick((e:ClickEvent) => { + this.isShow = true; + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0060.ets + + +@Component +struct ActionEventControlCallback0060 { + @State context: string = "" + build() { + Column(){ + Grid(){ + GridItem(){ + Text("gritItem") + .fontSize(20) + .width(300) + .height(200) + .backgroundColor(Color.Red) + } + } + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0380.ets + + +@Component +struct ActionEventControlCallback0380 { + @State context: string = "hello" + @State index: number = 2 + build() { + Column() { + Text(this.context) + Select([{ value: 'aaa'}, + { value: 'bbb'}, + { value: 'ccc'}, + { value: 'ddd'}]) + .selected(this.index) + .height(50) + .width(250) + .onSelect(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/Button/entry/src/main/ets/testability/pages/button/button_borderRadius.ets + +@Component +struct ButtonBorderRadius { + @State text: string = '' + build() { + Column({ space: 15 } as ColumnOptions) { + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .borderRadius(50) + Button({ type: ButtonType.Normal } as ButtonOptions) + .backgroundColor(0x317aff) + .width(100) + .height(80) + .margin({top:10} as Margin) + .labelStyle({}) + .borderRadius(50) + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 1, + maxFontSize: 20, + font: { + size: 30, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 16, + maxFontSize: 20, + font: { + size: 10, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bolder, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Bold, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Lighter, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Medium, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + Row(){ + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + Button({ type: ButtonType.Normal } as ButtonOptions) + .width(100) + .height(80) + .labelStyle({ + overflow: TextOverflow.Clip, + maxLines: 1, + minFontSize: 20, + maxFontSize: 20, + heightAdaptivePolicy: TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST, + font: { + size: 20, + weight: FontWeight.Normal, + family: 'cursive', + style: FontStyle.Italic + } + }) + }.width('80%') + }.width('100%').margin({ top: 30 } as Margin) + } +} + + +export const FLAG_OF_FILE_90: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets new file mode 100644 index 000000000..29b9c24cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets @@ -0,0 +1,357 @@ +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, UserView,Image,ImageFit, Scroller, + Scroll,FontWeight,TextArea,CopyOptions, + ForEach, + Search, + SafeAreaType, + ScrollDirection, + BarState, + Color,TabsController,ResourceStr,Builder, $r,Row,Tabs,BarPosition,TabContent, + EdgeEffect,HorizontalAlign,FlexAlign,ColumnOptions,RowOptions } from '@ohos.arkui.component'; + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin,ResourceColor, + Color,Padding,RowOptions,Flex,FlexDirection,CustomBuilder,Placement,PopupStateChangeParam,CustomPopupOptions,Position +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r, LinearGradientBlurOptions, + GradientDirection +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import promptAction from '@ohos.promptAction'; + +import { Entry, Component, Column, Row,TextAlign,Color,Image,$r,DragEvent,Visibility, + Text,ImageError,DragResult,DragBehavior, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,ColumnOptions,Padding, + Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment,RadialGradientOptions, + AttributeModifier,RowAttribute,Resource,AlignRuleOption +} from '@ohos.arkui.component' + +import { State, AppStorage } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/animations/entry/src/main/ets/testability/pages/radialGradient/radialGradientResource.ets + +@Component +struct radialGradientResource { + @State sizeW: number = 100 + build() { + Column({ space: 5 } as ColumnOptions) { + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(100) + .height(100) + .radialGradient({ + center: ['50%', '50%'], + radius: $r('app.media.startIcon'), + colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 1.0]] + } as RadialGradientOptions) + Row() + .width(this.sizeW) + .height(this.sizeW) + } + .width('100%') + .padding({ top: 30 } as Padding) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragCard/ActionEventCommoneventDragCard0170.ets + + +@Component +struct ActionEventCommoneventDragCard0170 { + @State formId: number = 0; + build() { + Column() { + Row() { + Text("onDrop设置DragResult") + .textAlign(TextAlign.Center) + .fontSize(18) + .backgroundColor(Color.Blue) + } + Text('draggable(true)+onDragStart') + .fontSize(20) + Image($r('app.media.startIcon')) + .id('image') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + console.log("onDragStart") + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + }) + .draggable(true) + .size({ width: 100, height: 100 }) + .visibility(Visibility.Visible) + .onError((err:ImageError):void => { + console.log(`fail to add form, err: ${JSON.stringify(err)}`); + }) + Row().height(10) + Column() { + Text('DROP_ENABLED') + } + .id('ActionEventCommoneventDragCard0170_002') + .height(200) + .width('100%') + .border({ width: 1 }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + event.setResult(DragResult.DROP_ENABLED) + event.dragBehavior = DragBehavior.COPY + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + }) + } + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur14.ets + +@Component +struct linearGradientBlur14 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(10, { fractionStops: [[0.5, 0.5], [1, 1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/BasicFrame/entry/src/main/ets/testability/pages/ImageLinearGradientBlur.ets + +@Component +struct ImageLinearGradientBlur { + build() { + Column({ space: 5 } as ColumnOptions) { + Image($r('app.media.startIcon')) + .width('90%') + .height('90%') + .linearGradientBlur(undefined, { fractionStops: [[0,0],[0,0.33],[1,0.66],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton170.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton170 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_170_2') + .width(380) + .height(60) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_170_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + +// from /home/x00931626/UITest/focusevent_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrDrawingoptimization/UIComponentCommonattrDrawingoptimization0080.ets + + +@Component +struct UIComponentCommonattrDrawingoptimization0080 { + build() { + Column({ space: 30 } as ColumnOptions) { + Button('button margin 10px、strokeColor Color、strokeWidth 20vp') + .focusBox({ + margin: LengthMetrics.px(10), + strokeColor: ColorMetrics.rgba(255, 255, 128), + strokeWidth: LengthMetrics.px(20) + }) + Button('button margin 5vp、strokeColor app、strokeWidth 20lpx') + .focusBox({ + margin: LengthMetrics.lpx(20), + strokeColor: ColorMetrics.rgba(255, 128, 255), + strokeWidth: LengthMetrics.px(5) + }) + }.justifyContent(FlexAlign.Center) + .padding(30) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0200.ets + + +@Component +struct ActionEventCommoneventDragInput0200 { + @State flagNum: number = 0; + @State textList: string[] = [] as string[]; + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5 } as ColumnOptions) { + Column({ space: 10 } as ColumnOptions) { + Column({ space: 5 } as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }) + .width(200) + .height(60) + .draggable(true) + .defaultFocus(true) + .id('textArea') + .fontSize(30) + .onFocus(() => { + this.textAreaController.setTextSelection(0, 100) + }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.textList.push('onDragStart'); + }) + .onDragEnd((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnd'); + }) + .onDragMove((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragMove'); + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }) + .width(200) + .height(60) + .draggable(true) + .id('textInput') + .fontSize(30) + .onFocus(() => { + this.textInputController.setTextSelection(0, 100) + }) + .onDragEnter((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDragEnter'); + }) + .onDragLeave((event: DragEvent, extraParams?: string):void => { + }) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.textList.push('onDrop'); + }) + Search({ + value: 'Search', + controller: this.SearchController + }) + .width(200) + .height(60) + .id('search') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(() => { + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5 } as ColumnOptions) { + Text(`回调:${ + Array.from(new Set(this.textList)) + }`).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_91: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets new file mode 100644 index 000000000..bee25337d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets @@ -0,0 +1,351 @@ +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Length,TouchEvent,Button, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Column,Text,Rating, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, + Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, +DragEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_003.ets + +@Component +struct onlyColumnGapGrid { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State columnsGapValue: number = 1 + onPageShow() { + console.info('onlyColumnGapGrid onPageShow') + this.columnsGapValue = 10 + } + build() { + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string, index:number) => { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string, index:number) => day) + }, (day: string, index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .edgeEffect(EdgeEffect.Spring) + .columnsGap(this.columnsGapValue) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0320.ets + + +@Component +struct UIAttributesColorrampInterface0320 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[["rgba(0,0,255,0.5)",0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0210.ets + + +@Component +struct UIAttributesImageEffectProjection0210 { + build() { + Column() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + .offset({x:$r('app.media.startIcon'), y:$r('app.media.startIcon')} as Position) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0250.ets + + +@Component +struct ActionEventCommoneventDragInput0250 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(2, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragText/ActionEventCommoneventDragText0160.ets + + +@Component +struct ActionEventCommoneventDragText0160 { + @State textContent: string = ""; + @State dragInfo: string[] = [] as string[]; + private textController: TextController = new TextController() + aboutToAppear(): void { + this.textController.closeSelectionMenu() + } + build() { + Column({ + space: 20 + } as ColumnOptions) { + Text(`拖动回调触发:${ this.dragInfo.length > 0 ? this.dragInfo : '未触发Drag' }`) + TextArea({ placeholder: '请拖入内容' }) + .id('DragText_002') + .copyOption(CopyOptions.InApp) + .draggable(true) + .onDragEnter((event:DragEvent):void => { + this.dragInfo.push('DragEnter'); + }) + Text('可拖入文本').margin({ left: 40, top: 20 } as Margin) + .copyOption(CopyOptions.InApp) + .id('DragText_001') + .fontSize(30) + .selection(0, 1000) + .draggable(true) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + this.dragInfo.push('DragStart'); + }) + .onDragEnd((event:DragEvent):void => { + this.dragInfo.push('DragEnd'); + }) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0650.ets + + +@Component +struct UIAttributesColorrampInterface0650 { + @State startX: number = 0; + @State endX: number = 90; + @State btnShow: Visibility = Visibility.Visible; + flag: boolean = true; + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .type(ButtonType.Normal) + .width(100) + .height(100) + .sweepGradient({ + center: [0, 50], + colors: [[Color.Blue, 0.0], [Color.Pink, 0.3], [Color.Yellow, 1.0]], + start: this.startX, + end: this.endX, + repeating: false + } as SweepGradientOptions) + .visibility(this.btnShow) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + animateTo({ + duration: 2000, + playMode: PlayMode.Normal, + }, () => { + if (this.flag) { + this.startX=20 + this.endX=140 + this.btnShow = Visibility.None + } else { + this.startX=0 + this.endX=90 + this.btnShow = Visibility.Visible + } + this.flag = !this.flag + }) + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0390.ets + + +@Component +struct ActionEventControlCallback0390 { + @State context: string = "hello" + build() { + Column() { + Text(this.context) + Rating() + .height(50) + .width(250) + .onChange(():void => { + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + .id("text") + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/ActionEventCommonEventTouchAttribute/ActionEventCommonEventTouchAttribute0020.ets + + +@Component +struct ActionEventCommonEventTouchAttribute0020 { + @State x: Length | undefined = ''; + build() { + Column() { + Column() { + Text(`x: ${this.x}`) + .id('touchEventAttribute0020_txt') + .fontSize(50) + Button('onTouch') + .id('touchEventAttribute0020_onTouch') + .margin({ top: 20 } as Margin) + .width(100) + .height(50) + .onTouch((event: TouchEvent) => { + this.x = event.target.area.globalPosition.x; + let y = event.target.area.globalPosition.y; + console.log(`globalX: ${this.x}, globalY: ${y}`); + }) + } + .width(300) + .height('100%') + .margin(10) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_92: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets new file mode 100644 index 000000000..da4f3a132 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets @@ -0,0 +1,384 @@ +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Visibility,Column,Text,Flex,FlexDirection,ItemAlign,FlexAlign, + Image,$r,Color,DragEvent,Margin,List,ForEach,ListItem,Row, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Color,FlexAlign, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback,ComputedBarAttribute} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import dragController from '@ohos.arkui.dragController'; + +import UDC from '@ohos.data.unifiedDataChannel'; + +import { Entry, Component, Column, TextAreaController,TextInputController, + SearchController,ColumnOptions,TextInput,TextArea,Search, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInput/ActionEventCommoneventDragInput0090.ets + + +@Component +struct ActionEventCommoneventDragInput0080 { + @State flagNum: number = 0 + textAreaController: TextAreaController = new TextAreaController(); + textInputController: TextInputController = new TextInputController(); + SearchController: SearchController = new SearchController(); + build() { + Column({ space: 5} as ColumnOptions) { + Column({space: 10} as ColumnOptions) { + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: 'TextArea', + controller: this.textAreaController + }).width(200).height(60) + .draggable(true) + .id('0') + .fontSize(30) + .defaultFocus(true) + .onFocus(()=>{ + this.textAreaController.setTextSelection(0, 100) + }) + TextInput({ + text: 'TextInput', + controller: this.textInputController + }).width(200).height(60) + .draggable(true) + .id('1') + .fontSize(30) + .onFocus(()=>{ + this.textInputController.setTextSelection(0, 100) + }) + Search({ + value: 'Search', + controller: this.SearchController + }).width(200).height(60) + .id('2') + .draggable(true) + .textFont({ + size: 30 + }) + .onFocus(()=>{ + this.SearchController.setTextSelection(0, 100) + }) + } + Column({ space: 5} as ColumnOptions) { + TextArea({ + text: '', + }).width(300).height(60).id('3') + } + } + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0040.ets + + +@Component +struct UIAttributesColorrampInterface0040 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + repeating:false + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0470_052.ets + + +@Component +struct UIComponentListandgridGridInterface_0470_052 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 2fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(0xff0000) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesTransparencyRenderGroup/UIAttributesTransparencyRenderGroup0040.ets + + +@Component +struct UIAttributesTransparencyRenderGroup0040 { + build() { + Column() { + Row() { + Row() { + Row() + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(1) + } + .backgroundColor(Color.Black) + .width(100) + .height(100) + .opacity(0.8) + } + .opacity(0.6) + .backgroundColor(Color.White) + .width(150) + .height(150) + .renderGroup(false) + .justifyContent(FlexAlign.Center) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0090.ets + + +@Component +struct ActionEventCommoneventDragdefault0090 { + @State uri: string = "" + @State AblockArr: string[] = [] as string[] + @State BblockArr: string[] = [] as string[] + @State AVisible: Visibility = Visibility.Visible + @State dragSuccess :Boolean = false + private txt:string = '可拖拽文本' + build() { + Column() { + Text('Image拖拽') + .fontSize('30dp') + Flex({ direction: FlexDirection.Row, alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceAround }) { + Text(this.txt).backgroundColor(Color.Yellow).fontColor(Color.Red) + .draggable(true) + .id('img1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + .margin({ bottom: 20 } as Margin) + Row() { + Column(){ + Text('拖拽到这里') + .fontSize('15dp') + .height('10%') + List(){ + ForEach(this.BblockArr, (item:string, index:number) => { + ListItem() { + Text(item).fontSize(20) + } + .margin({ left: 30 , top : 30} as Margin) + }, (item:string,index:number) => item) + } + .border({width: 1}) + .height('90%') + .width('100%') + .allowDrop([uniformTypeDescriptor.UniformDataType.TEXT]) + .onDrop((event: DragEvent, extraParams?: string):void => { + this.BblockArr.splice(JSON.parseJsonElement(extraParams as string).getDouble('insertIndex'), Number(0), this.txt); + }) + } + .id('img2') + .height("50%") + .width("45%") + .border({ width: 1 }) + .margin({ left: 12 } as Margin) + } + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface114.ets + + +@Component +struct UIAttributesBackgroundInterface114 { + build() { + Column() { + Row() + .backgroundColor(Color.Green) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0270_967.ets + + +@Component +struct UIComponentListandgridGridInterface_0270_967 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .constraintSize({ maxWidth: 200 }) + .rowsTemplate("repeat(auto-fit,90px)") + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0140.ets + + +@Component +struct UIAttributesColorRampBlurGradient0140 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[2,2]], direction: GradientDirection.None} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0080.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0080 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT }) + .id('UIAttributesClivkreboundeffectInterface0080_001') + } + .width('100%') + .height('100%') + } + } +} + + +export const FLAG_OF_FILE_93: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets new file mode 100644 index 000000000..edb9fcdd4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets @@ -0,0 +1,408 @@ +import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, + List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import matrix4 from '@ohos.matrix4'; + +import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, + Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + ImageSize, + ColumnOptions, + Toggle,ToggleType +} from '@ohos.arkui.component' + +import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; + +import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + DragPreviewMode, + DragEvent, + Color +} from '@ohos.arkui.component' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture,Padding, + PinchGesture +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes30.ets + + +@Component +struct UIAttributesTouchableInteraction30 { + @State Text: string = 'Text PinchGesture'; + @State scaleValue: number = 1; + @State pinchValue: number = 1; + @State pinchX: number = 0; + @State pinchY: number = 0; + build() { + Column() { + Text(this.Text) + .id('UIAttributesTouchableInteraction30') + .width('90%') + .height(50) + .hitTestBehavior(HitTestMode.None) + .width(180).height(80) + .scale({ x: this.scaleValue, y: this.scaleValue, z: 1 }) + .gesture( + PinchGesture({ fingers: 2 }) + .onActionStart((event: GestureEvent) => { + }) + .onActionUpdate((event: GestureEvent) => { + if (event) { + this.scaleValue = this.pinchValue * event.scale; + this.pinchX = event.pinchCenterX; + this.pinchY = event.pinchCenterY; + } + }) + .onActionEnd((event: GestureEvent) => { + this.pinchValue = this.scaleValue; + this.Text = 'PinchGesture success'; + }) + ) + }.padding({ top: 30 } as Padding).width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0140.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0140 { + @Builder + OverlayNode() { + Column() { + Text("overlayNode") + .fontSize(20) + .fontColor(Color.Black) + .id('UIAttributesFloatingLayerOverlay0140_001') + .backgroundColor(Color.White) + .width(180) + .height(180) + .draggable(true) + .dragPreviewOptions({ mode: [DragPreviewMode.ENABLE_DEFAULT_SHADOW, DragPreviewMode.ENABLE_DEFAULT_RADIUS] }) + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + }) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.White) + } + build() { + Column() { + Text('background') + .width(360) + .height(360) + .overlay((): void => { + this.OverlayNode() + }, { offset: { x: 0, y: 0 } }).backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0160.ets + + +@Component +struct UiAttributesFloatingLayerInterface0160 { + build() { + Column() { + Image('2.png') + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center}) + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface116.ets + + +@Component +struct UIAttributesBackgroundInterface116 { + build() { + Column() { + Row() + .backgroundColor(Color.Orange) + .width(600) + .height(400) + } + .backgroundColor(Color.Pink) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesSelectedStyle/UIAttributesSelectedStyle0110.ets + + +@Component +struct UIAttributesSelectedStyle0110 { + build() { + Column({ space: 10 } as ColumnOptions) { + Toggle({ type: ToggleType.Switch, isOn: false }) + .selectedColor('#007DFF') + .switchPointColor('#FFFFFF') + .onChange((isOn: boolean):void => { + console.info('Component status:' + isOn) + }) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesGraphicTransformationSkew/UIAttributesGraphicTransformationSkew0020.ets + + +@Component +struct UIAttributesGraphicTransformationSkew0020 { + @State matrix: matrix4.Matrix4Transit = matrix4.identity().translate({ x: 0, y: 0, z: 0 } as matrix4.TranslateOption); + build() { + Column() { + Column() { + Column() { + } + .transform(this.matrix) + .height(50) + .width(50) + .backgroundColor('red') + } + .height(60) + .width(60) + .backgroundColor(Color.Gray) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + Button('x+10') + .id('UIAttributesGraphicTransformationSkew0020_001') + .margin({ top: 100 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y+10') + .id('UIAttributesGraphicTransformationSkew0020_002') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 10, z: 0 } as matrix4.TranslateOption); + }) + Button('z+10') + .id('UIAttributesGraphicTransformationSkew0020_003') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: 10 } as matrix4.TranslateOption); + }) + Button('x-10') + .id('UIAttributesGraphicTransformationSkew0020_004') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: -10, y: 0, z: 0 } as matrix4.TranslateOption); + }) + Button('y-10') + .id('UIAttributesGraphicTransformationSkew0020_005') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: -10, z: 0 } as matrix4.TranslateOption); + }) + Button('z-10') + .id('UIAttributesGraphicTransformationSkew0020_006') + .margin({ top: 10 } as Margin) + .onClick((e:ClickEvent) => { + this.matrix = matrix4.identity().translate({ x: 0, y: 0, z: -10 } as matrix4.TranslateOption); + }) + } + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + .width("100%") + .height("100%") + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0160.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0160 { + build() { + Column() { + GridRow() { + GridCol({ span: 2 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0160_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader160 { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UiAttributesFloatingLayerInterface0040.ets + + +@Component +struct UiAttributesFloatingLayerInterface0040 { + build() { + Column() { + Image("2.png") + .width(300) + .height(240) + .position({x:50,y:100} as Position) + .overlay("Winter is a beautiful season.",{align:Alignment.Center,offset:{x:-50,y:0}}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIComponentCommonattrForegroundEffect/UIComponentCommonattrForegroundEffect0230.ets + + +@Component +struct UIComponentCommonattrForegroundEffect0230 { + @State radiusValue: number = 0; + build() { + Column({ space: 10 } as ColumnOptions) { + Scroll() { + Column({ space: 10 } as ColumnOptions) { + Row() { + }.height(600) + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + } + List() { + ListItem() { + Text('alist') + } + .width('100%') + .borderWidth(1) + .foregroundEffect( + { radius: this.radiusValue } + ) + } + Button('radius: 10') + .id('button1') + .onClick((e:ClickEvent) => { + this.radiusValue = 10; + }) + Button('radius: 0') + .id('button2') + .onClick((e:ClickEvent) => { + this.radiusValue = 0; + }) + Button('radius: -10') + .id('button3') + .onClick((e:ClickEvent) => { + this.radiusValue = -10; + }) + } + .width('100%') + .padding(50) + .justifyContent(FlexAlign.Center) + .alignItems(HorizontalAlign.Center) + } + .id('scroll') + .scrollable(ScrollDirection.Vertical) + } + .width('100%') + .height('100%') + } +} + + +export const FLAG_OF_FILE_94: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets new file mode 100644 index 000000000..f1522ffd1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets @@ -0,0 +1,437 @@ +import curves from '@ohos.curves'; + +import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, + Margin,AnimateParam,ScaleOptions,ICurve, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + Row, + Text, + Column, + Button, + Margin, + ClickEvent, + Alignment, + Builder, + PinchGesture, + GestureEvent, + Image, + Direction, + FontWeight +} from '@ohos.arkui.component'; + +import { State } from '@ohos.arkui.stateManagement'; + +import { + Entry, + Component, + Text, + Column, + Margin, + TextAlign, + Color +} from '@ohos.arkui.component'; + +import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; + +import { Entry, Component,Row,Column,Button,ClickEffectLevel, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, + Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection, + BackgroundBlurStyleOptions,ImageSize,BlurStyle,ThemeColorMode,AdaptiveColor,Position +} from '@ohos.arkui.component' + +import { State,AppStorage } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import I18n from '@ohos.i18n'; + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,ScrollState, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction, GridDirection,ListOptions, BorderOptions} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + ClickEvent, + TextInputController, + Button, + TextInput, + MenuPolicy +} from '@ohos.arkui.component' + + +// from /home/x00931626/UITest/window_rh/entry/src/main/ets/testability/pages/SubAceActionWindowWindowCustom/SubAceActionWindowWindowCustom0340.ets + + +@Component +struct SubAceActionWindowWindowCustom0340 { + controller: TextInputController = new TextInputController(); + build() { + Column() { + Button('button') + .onClick((e: ClickEvent) => { + this.controller.setTextSelection(0, 3, { menuPolicy: MenuPolicy.SHOW }) + }) + .id('button') + TextInput({ text: "123456", controller: this.controller }) + .id('input') + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorRampBlurGradient/UIAttributesColorRampBlurGradient0070.ets + + +@Component +struct UIAttributesColorRampBlurGradient0070 { + build() { + Row(){ + Image('cat.jpg') + .width(400) + .linearGradientBlur(10, { fractionStops: [[0,0],[1,1]], direction: GradientDirection.RightBottom} as LinearGradientBlurOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/Grid/entry/src/main/ets/testability/pages/Grid_024.ets + +@Component +struct Grid_024 { + @State numbers: Array = new Array() + @State dirction: Direction = Direction.Auto + @State layoutDirection: GridDirection|undefined = GridDirection.Row + aboutToAppear() { + for (let i = 1; i <= 150; i++) { + this.numbers.push(i + '') + } + } + build() { + Column() { + Column() { + Text('镜像').fontSize(12) + Row() { + Button("Auto") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionAuto_024') + Button("Ltr") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Ltr; + }).id('DirectionLtr_024') + Button("Rtl") + .onClick((event:ClickEvent) => { + this.dirction = Direction.Rtl; + }).id('DirectionRtl_024') + } + Text('layoutDirection').fontSize(12) + Row() { + Button("Row") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Row + }).id("layoutDirectionRow") + Button("RowReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.RowReverse + }).id("layoutDirectionRowReverse_024") + } + Row() { + Button("Column") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.Column + }).id("layoutDirectionColumn") + Button("ColumnReverse") + .onClick((event:ClickEvent) => { + this.layoutDirection = GridDirection.ColumnReverse + }).id("layoutDirectionColumnReverse_024") + } + Text('layoutDirection').fontSize(12) + Row() { + Button("汉语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("zh-Hans"); + }).id('chineseLang') + Button("阿拉伯语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ar-EG"); + }).id('arLang') + Button("维吾尔语") + .onClick((event:ClickEvent) => { + I18n.System.setAppPreferredLanguage("ug"); + }).id('ugLang') + } + } + .width('100%') + .height('40%') + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(20) + .minCount(3) + .cellLength(0) + .layoutDirection(this.layoutDirection) + .direction(this.dirction) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0740.ets + + +@Component +struct UIAttributesColorrampInterface0740 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,0.0],[Color.Pink,0.3],[Color.Yellow,1.0]], + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/BlurEffect/ThemeColorMode_Dark.ets + +@Component +struct ThemeColorMode_Dark { + build() { + Column() { + Row() { + } + .width('50%') + .height('50%') + .backgroundBlurStyle(BlurStyle.Thin, { colorMode: ThemeColorMode.DARK, adaptiveColor: AdaptiveColor.DEFAULT, scale: 1.0 } as BackgroundBlurStyleOptions) + .position({ x: '15%', y: '30%' } as Position) + } + .height('100%') + .width('100%') + .backgroundImage($r('app.media.startIcon')) + .backgroundImageSize(ImageSize.Cover) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesClivkreboundeffectInterface/UIAttributesClivkreboundeffectInterface0060.ets + + +@Component +struct UIAttributesClivkreboundeffectInterface0060 { + build() { + Row() { + Column() { + Button('Button') + .width(106) + .clickEffect({ level: ClickEffectLevel.LIGHT, scale: -1 }) + .id('UIAttributesClivkreboundeffectInterface0060_001') + } + .width('100%') + .height('100%') + } + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0520.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0520 { + build() { + Row() { + Column() {} + .width(500) + .height(500) + .backgroundColor(Color.Pink) + .margin({ top: 100 } as Margin) + }.overlay("“1234567890",{align:Alignment.Center}) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0510.ets + + +@Component +struct ActionEventControlCallback0510 { + @State change: string = '' + build() { + Column({ space: 20 } as ColumnOptions) { + Text(this.change).fontSize(10).fontColor(Color.Pink) + Search({ value: 'content510' }) + .id("ActionEventControlCallback0510_01") + .searchButton('Search') + .caretStyle({ color: Color.Transparent }) + .width('80%') + .height(80) + } + .margin({ top: 35 } as Margin) + .width('80%') + .height('80%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface1360.ets + + +@Component +struct UIAttributesBackgroundInterface1360 { + build() { + Column() { + Text('text') + .linearGradient({ + colors:[[Color.Red,0],[Color.Yellow,0.3],[Color.Blue,0.6]], + angle:0, + }) + .height(50) + .width(100) + .textAlign(TextAlign.Center) + }.width('100%').margin({ top: 350 } as Margin) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesFloatingLayerOverlay0290.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0290 { + @State imagePath:string="2.png"; + @Builder + privateBuilderTwo() { + Text("一段文本").fontSize(40).fontWeight(FontWeight.Bolder) + } + @Builder + privateBuilder() { + Column(){ + Image(this.imagePath).height(500).margin({top:70} as Margin) + .overlay((): void => {this.privateBuilderTwo()},{align:Alignment.Center}) + Button("点击改变图片") + .margin({top:30} as Margin) + .backgroundColor("#ff6b9df2") + .fontColor("#ff6bf2de") + .id("changeImagePath") + .onClick((e: ClickEvent) => { + this.imagePath="openeye.png" + }) + } + } + build() { + Column() { + } + .overlay((): void => {this.privateBuilder()}) + .height("100%") + .width("100%") + .backgroundColor("#ff6bf2d7") + .direction(Direction.Rtl) + } +} + +// from /home/x00931626/UITest/BlurEffect/entry/src/main/ets/testability/pages/linearGradientBlur/linearGradientBlur18.ets + +@Component +struct linearGradientBlur18 { +private_resource1:Resource = $r('app.media.startIcon') +@State image_src: Resource = this.private_resource1 + build() { + Column() { + Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center } as FlexOptions) { + Row({ space: 5 } as RowOptions) { + Image(this.image_src) + .linearGradientBlur(80, { fractionStops: [[0,0],[0,0.33],[1,1]], direction: GradientDirection.Bottom } as LinearGradientBlurOptions) + } + } + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesComponentContentFillingModeInterface/0330.ets + + +class SetSlt { + isAnimation: boolean = true + set(): void { + this.isAnimation = !this.isAnimation; + } +} +@Component +struct UIAttributesComponentContentFillingModeInterface0330 { + @State SetAnimation: SetSlt = new SetSlt(); + build() { + Column() { + Text('ArkUI') + .fontWeight(FontWeight.Bold) + .fontSize(12) + .fontColor(Color.White) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xf56c6c) + .width(100) + .height(100) + .renderFit(RenderFit.TOP_RIGHT) + .scale({ x: this.SetAnimation.isAnimation ? 1 : 2, y: this.SetAnimation.isAnimation ? 1 : 2 } as ScaleOptions) + .animation({ curve: curves.springMotion(0.8, 0.4) as ICurve} as AnimateParam) + .margin({ top: 120 } as Margin) + Button("animate") + .margin({ top: 200 } as Margin) + .onClick((e:ClickEvent) => { + this.SetAnimation.set(); + }).id('animate_button') + }.width('100%').height('100%') + } +} + + +export const FLAG_OF_FILE_95: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets new file mode 100644 index 000000000..f8427f172 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets @@ -0,0 +1,459 @@ +import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + TextAttribute, + Column, + Component, + Button, + ButtonAttribute, + ClickEvent, + UserView, + Image, + ImageFit, + Scroller, + Scroll, + ColumnOptions, + ForEach, + ResponseType, + Placement, + Search, + AdaptiveColor, + Flex, + ListItem, + FlexDirection, + ItemAlign, + SafeAreaType, + MenuItem, + ScrollDirection, + XComponentController, + RowOptions, + NavDestination, + NavPathStack, + NavigationMode, + BarState, + FontWeight, + CustomBuilder, + Builder, + TouchEvent, + TouchType, + DragEvent, + UnifiedData, + Navigation, + Color, + Margin, + Row, + ButtonType, + DragResult, + DragItemInfo, + Visibility, + $r, + MenuItemOptions, + ResourceStr, + Menu, + List, + EdgeEffect, + HorizontalAlign, + FlexAlign, + SizeOptions, + PageMapBuilder, + NavPathInfo +} from '@ohos.arkui.component' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Builder, + Component, + Column, + Text, + Image, + ColumnOptions, + List, + FlexAlign, + ForEach, + Padding, + ListItem, + Row, + RowOptions, + GridCol, + Button, + GridRow, + FontWeight, + Padding, + Color, + DragEvent, + ClickEvent +} from '@ohos.arkui.component'; + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, + ClickEvent,$r, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,SearchController,TextInputController,TextInputOptions,Line ,SearchOptions,CancelButtonSymbolOptions,CancelButtonStyle +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,Row,Image,InvertOptions, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, + BorderOptions,GridItemOptions,GridDirection,GridItemStyle +} from '@ohos.arkui.component' + +import { + State, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandcridGridUxconsistency/UIComponentListandcridGridUxconsistency_0050_922.ets + + +interface style { + style: GridItemStyle +} +@Component +struct UIComponentListandcridGridUxconsistency_0050_922 { + @State numbers: Array = new Array('1', '2', '3', '4', '5') + @State style1:style = { + style: GridItemStyle.NONE + } as style + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Grid() { + ForEach(this.numbers, (day: string,index: number) => { + GridItem({ style: GridItemStyle.NONE } as GridItemOptions) { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(80).height(80).borderWidth(2).borderColor(Color.Red).id(day.toString()) + }, (day: string,index: number) => day) + } + .height(300) + .cellLength(50) + .layoutDirection(GridDirection.Row) + } + .width(400).margin(10) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInvert/UIAttributesImageeffectInvert0040.ets + + +@Component +struct UIAttributesImageeffectInvert0040 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .invert({ + low: 0.3, + high: 0.8, + threshold: 1, + thresholdRange: 1 + } as InvertOptions) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton151.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton151 { + @State changeValue: string = '' + searchController: SearchController = new SearchController() + build() { + Column() { + Button("ComponentDialog") + .id('ComponentDialog') + .onClick((): void => { + }) + TextArea({text:"我是TextArea我是Text"}) + .defaultFocus(true) + Search({ value: this.changeValue, placeholder: '请输入内容', controller: this.searchController } as SearchOptions) + .onChange((value: string):void => { + this.changeValue = value + }) + .margin(20) + Button('获取焦点') + .onClick((): void => { + }) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } + @State text: string = '' + controller: TextInputController = new TextInputController( + ) + @Builder + buildContent(): void { + Column() { + TextInput({ + text: this.text, + placeholder: '请输入内容', + controller: this.controller, + } as TextInputOptions) + .defaultFocus(true) + .onChange((value: string): void => { + this.text = value + }) + .cancelButton({ style: CancelButtonStyle.CONSTANT } as CancelButtonSymbolOptions) + Line() + TextArea({text:"我是TextArea我是Text"}) + } + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0280.ets + + +@Component +struct UIAttributesImageeffectInterface0280 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .sepia(-5) + } + .height('100%') + } + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0080.ets + + +@Component +struct UIAttributesColorrampInterface0080 { + @State angleY:number=0 + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .linearGradient({ + colors:[[$r('app.media.startIcon'),0.0],[Color.Pink,0.5]], + direction:GradientDirection.Bottom, + angle:this.angleY + } as LinearGradientOptions) + .animation({ + duration: 1000, + }) + Button('animation') + .width(300) + .height(50) + .id('changeRd1') + .onClick((e:ClickEvent) => { + this.angleY=90 + }) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/SubAceActionEventCommoneventDragImprove/SubAceActionEventCommoneventDragImprove0150.ets + + +@Component +struct SubAceActionEventCommoneventDragImprove0150 { + build() { + Column() { + GridRow() { + GridCol({ span: 4 }) { + }.backgroundColor(Color.Pink) + } + .height(200) + .backgroundColor(0xd2cab3) + Text('1').id('SubAceActionEventCommoneventDragImprove0150_btn_1').fontColor(Color.White) + } + .width('100%') + .height('100%') + .justifyContent(FlexAlign.Center) + } +} +@Component +struct MyHeader { + private title: string = 'title'; + build() { + Row() { + Text(this.title) + .fontColor(Color.White) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .padding({ left: 5, top: 5 } as Padding) + } + .width('100%') + .height(30) + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0890.ets + + +@Component +struct UIAttributesColorrampInterface0890 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(100) + .height(100) + .sweepGradient({ + center:[0,50], + colors:[[Color.Blue,-0.2],[Color.Pink,0.3],[Color.Yellow,1.0]] + } as SweepGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/SubAceUIComponentCommonattrFocusoptimization/SubAceUIComponentCommonattrFocusoptimization143.ets + + +@Component +struct SubaceUlComponentCommonAttRlfocusOptimization143 { + @State pageInfos: NavPathStack = new NavPathStack(); + @Builder + pageOneTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageOne') + .backgroundColor(Color.Pink) + } + @Builder + pageTwoTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageTwo') + .backgroundColor(Color.Yellow) + } + @Builder + pageThreeTmp() { + NavDestination() { + Column({ space: 10 } as ColumnOptions) { + } + } + .title('pageThree') + .backgroundColor(Color.Orange) + } + @Builder + PageMap(name: string, param: Object) { + if (name === 'pageOne') { + this.pageOneTmp() + } else if (name === 'pageTwo') { + this.pageTwoTmp() + } else if (name === 'pageThree') { + this.pageThreeTmp() + } + } + build() { + Column({ space: 10 } as ColumnOptions) { + Row({ space: 20 } as RowOptions) { + Button('pageOne') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_one_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageOne', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageTwo') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_two_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageTwo', null) + this.pageInfos.pushPath(navPathInfo) + }) + Button('pageThree') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_three_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + let navPathInfo: NavPathInfo = new NavPathInfo('pageThree', null) + this.pageInfos.pushPath(navPathInfo) + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Row() { + Button('Back') + .id('SubaceUlComponentCommonAttRlfocusOptimization143_back_btn') + .backgroundColor(Color.Pink) + .onClick((e: ClickEvent) => { + this.pageInfos.pop() + }) + } + .width('100%') + .height('20%') + .justifyContent(FlexAlign.Center) + Navigation(this.pageInfos) { + Column({ space: 10 } as ColumnOptions) { + } + } + .mode(NavigationMode.Auto) + .borderWidth(1) + .width('90%') + .height('40%') + .clip(true) + .title('Navigation') + .navDestination(this.PageMap as PageMapBuilder) + } + } +} + + +export const FLAG_OF_FILE_96: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets new file mode 100644 index 000000000..14cf9bdb0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets @@ -0,0 +1,376 @@ +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, + EdgeEffect,GridItemAlignment,ScrollState +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, + TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { UIContext, Router } from '@ohos.arkui.UIContext'; + +import { AppStorage } from '@ohos.arkui.stateManagement'; + +import { Entry, Component, Column, Image, List, Navigation, Row, Text, + ListItem,NavDestination, Margin, Flex, FontWeight,Button,ColumnOptions, + TouchEvent, +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; + +import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position,Row, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageEffectProjection/UIAttributesImageEffectProjection0260.ets + + +@Component +struct UIAttributesImageEffectProjection0260 { + build() { + Column() { + Row() { + Image('') + .width(200) + .height(200) + .shadow({color: Color.Green, radius: 10, fill: false} as ShadowOptions) + } + .shadow({color: Color.Orange, radius: 10, fill: true} as ShadowOptions) + }.width('100%').height('100%').justifyContent(FlexAlign.Center) + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesBackgroundInterface/UIAttributesBackgroundInterface0130.ets + + +@Component +struct UIAttributesBackgroundInterface0130 { + build() { + Column() { + Row() { + Text("LIGHT") + } + .backgroundBlurStyle(BlurStyle.Thin,{colorMode:ThemeColorMode.LIGHT}) + .width(200) + .height(100) + } + .backgroundColor('#08f5faf7') + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventTouchScenarios/ActionEventCommoneventTouchScenarios0020.ets + + +@Component +struct ActionEventCommoneventTouchScenarios0020 { + @State textContent: string = ""; + build() { + Column({ space: 20 } as ColumnOptions) { + Button("ontouch").onTouch((event:TouchEvent):void => { + this.textContent = 'onTouch' + }) + .id("TouchScenarios0020") + Text(this.textContent) + }.width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridInterface/UIComponentListandgridGridInterface_0280_218.ets + + +@Component +struct UIComponentListandgridGridInterface_0280_218 { + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + scroller1: Scroller = new Scroller(); + @State gridPosition: number = 0 ; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBarWidth(-5) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)); + console.info(String(last)); + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragInterface/ActionEventCommoneventDragInterface0750.ets + + +@Component +struct ActionEventCommoneventDragInterface0750 { + @State arr: string[] = [] as string[] + @State arr2: string[] = [] as string[] + private mIndex: number = -1 + private startIndex: number = -1 + @State text: string = 'drag' + @State msgInfo: string = '' + private listType: number = -1 + aboutToAppear(): void { + for (let i = 0; i < 5; i++) { + this.arr.push(i+"") + } + for (let i = 0; i < 5; i++) { + this.arr2.push(i+"") + } + } + @Builder + pixelMapBuilder() { //拖拽过程样式 + Column() { + Text(this.text) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xF5F5F5) + } + } + changeIndex(type: number, itemIndex: number, insertIndex: number) { //交换数组位置 + let temp: string; + if (this.listType == type && type == 1) { + temp = this.arr[itemIndex]; + this.arr[itemIndex] = this.arr[insertIndex]; + this.arr[insertIndex] = temp; + } else if (this.listType == type && type == 2) { + temp = this.arr2[itemIndex]; + this.arr2[itemIndex] = this.arr2[insertIndex]; + this.arr2[insertIndex] = temp; + } else if (this.listType != type && type == 1) { + temp = this.arr2[insertIndex]; + this.arr.splice(insertIndex, 1, this.text); + this.arr2.splice(this.startIndex, 1, temp); + } else if (this.listType != type && type == 2) { + temp = this.arr[insertIndex]; + this.arr2.splice(insertIndex, 1, this.text); + this.arr.splice(this.startIndex, 1, temp); + } + } + build() { + Column() { + Text(this.msgInfo); + List({ space: 10 } as ListOptions) { + ForEach(this.arr, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list1"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onItemMove((from: number, to: number):boolean => { + console.info('pkgg 1 onItemMove 列表元素发生移动时触发,from:' + from + ' to:' + to) + this.mIndex = -1 + if (from == to) { + return false + } else { + return true + } + }) + .onItemDragStart((event: ItemDragInfo, itemIndex: number):CustomBuilder => { + console.info('pkgg 1 onItemDragStart 开始拖拽列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + this.text = this.arr[itemIndex] + "" + this.startIndex = itemIndex + this.listType = 1 + return ()=>{this.pixelMapBuilder()} + }) + .onItemDragEnter((event: ItemDragInfo):void => { + console.info('pkgg 1 onItemDragEnter 拖拽进入列表元素范围内时触发,x:' + event.x + ' y:' + event.y) + }) + .onItemDragMove((event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + if (this.mIndex != itemIndex) { + this.mIndex = itemIndex + console.info('pkgg 1 onItemDragMove 拖拽在列表元素范围内移动时触发,x:' + event.x + ' y:' + event.y + + ' itemIndex:' + + itemIndex + ' insertIndex:' + insertIndex) + } + }) + .onItemDragLeave((event: ItemDragInfo, itemIndex: number):void => { + console.info('pkgg 1 onItemDragLeave 拖拽离开列表元素时触发,x:' + event.x + ' y:' + event.y + ' itemIndex:' + + itemIndex) + }) + .onItemDrop((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + if (!isSuccess || insertIndex >= this.arr.length) { + return + } + if (insertIndex == -1) { + return + } + console.info('pkgg 1 onItemDrop 绑定该事件的列表元素可作为拖拽释放目标,当在列表元素内停止拖拽时触发 ,x:' + + event.x + ' y:' + + event.y + ' itemIndex:' + itemIndex + ' insertIndex:' + insertIndex + ' isSuccess:' + isSuccess) + this.changeIndex(1, itemIndex, insertIndex) + }) + Column().width('100%').height('2%').backgroundColor(Color.Blue) + List({ space: 10 } as ListOptions) { + ForEach(this.arr2, (item: string, index: number) => { + ListItem() { + Text("item:" + item + " index:" + index) + .width('100%') + .height(50) + .fontSize(16) + .textAlign(TextAlign.Center) + .borderRadius(10) + .backgroundColor(0xFFFFFF) + }.id("list2"+item.toString()) + }, (item: string,index:number) => item) + } + .width('100%') + .height('49%') + .onDragStart((event: DragEvent, extraParams?: string):(()=>void) => { + let numberObj = JSON.parseJsonElement(extraParams!,(key: string, value: jsonx.JsonElement): jsonx.JsonElement => { + if(key === "selectedindex") return value; + return value; + }) as Object; + console.info('call onDragStart' + numberObj) + }) + } + .padding(10) + .backgroundColor(0xDCDCDC) + .width('100%') + .height('100%') + } +} + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridGridEventEnhancement/UIComponentListandgridGridEventEnhancement0320937.ets + + +@Component +struct UIComponentListandgridGridEventEnhancement0320937 { + @State numbers: Array = new Array('0', '1', '2', '3', '4') + scroller1: Scroller = new Scroller() + @State gridPosition: number = 0 //0代表滚动到grid顶部,1代表中间值,2代表滚动到grid底部。 + @State msgInfo:string ='no value'; + build() { + Column({ space: 5 } as ColumnOptions) { + Text('scroll').fontColor(0xCCCCCC).fontSize(9).width('90%') + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index:number) => { + ForEach(this.numbers, (day: string,index:number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index:number) => day) + }, (day: string,index:number) => day) + } + .columnsTemplate('1fr 1fr 1fr 1fr 1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .alignItems(GridItemAlignment.DEFAULT) + .onScrollIndex((first: number, last: number) => { + console.info(String(first)) + console.info(String(last)) + this.msgInfo= "trigger Grid onScrollIndex" + }) + .onScrollBarUpdate((index: number, offset: number):ComputedBarAttribute | undefined => { + console.info("XXX" + 'Grid onScrollBarUpdate,index : ' + String(index) + ",offset" + String(offset)) + return { totalOffset: (index / 5) * (80 + 10) - offset, totalLength: 80 * 5 + 10 * 4 } + } as ((index: number, offset: number) => ComputedBarAttribute) | undefined) //只适用于当前示例代码数据源,如果数据源有变化,则需要修改该部分代码,或者删掉此属性 + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + console.info(String(scrollOffset)) + console.info(String(scrollState)) + } as OnScrollCallback | undefined) + .onScrollStart(() => { + console.info("XXX" + "Grid onScrollStart") + }) + .onScrollStop(() => { + console.info("XXX" + "Grid onScrollStop") + }) + .onReachStart(() => { + this.gridPosition = 0 + console.info("XXX" + "Grid onReachStart") + }) + .onReachEnd(() => { + this.gridPosition = 2 + console.info("XXX" + "Grid onReachEnd") + }).id('UIComponentListandgridGridEventEnhancement0320937'); + Text(this.msgInfo); + Button('next page') + .onClick((event: ClickEvent) => { // 点击后滑到下一页 + this.scroller1.scrollPage({ next: true }) + }) + }.width('100%').margin({ top: 5 } as Margin) + } +} + + +export const FLAG_OF_FILE_97: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets new file mode 100644 index 000000000..ab4fe73c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets @@ -0,0 +1,378 @@ +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color,Padding, + Scroller, + Flex, + RowOptions,PopupStateChangeParam,Position, + FlexDirection,Scroll,CustomBuilder,ResourceColor,CustomPopupOptions,EdgeEffect,ScrollSnapAlign, + Placement +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { + Entry, + Component, + ClickEvent, + Row, + Column, + Button, + Text, + Image, + PixelMap, + FlexAlign, + $r, + Flex, + Button, + ObscuredReasons, + Checkbox, + Builder, + HorizontalAlign, + Alignment, + Margin, + Color +} from '@ohos.arkui.component' + +import { + Entry, + Component, + ClickEvent, + ObscuredReasons, + Margin, + Column, + Text, + Image, + $r, + Color +} from '@ohos.arkui.component' + +import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' + +import hilog from '@ohos.hilog'; + +import { + Entry, + Component, + Text, + Column, + Row, + FontWeight, + Button, + ClickEvent, + $r, + ColumnOptions, + Stack, + Image, + Color, + Video, + BorderOptions, + Alignment, + FlexAlign +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import resourceManager from '@ohos.resourceManager'; + +import { BusinessError } from '@ohos.base'; + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel' + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' + +import { Entry,Component,Column,Row,RowOptions, + Text,Color,DragEvent,ClickEvent,Margin,ColumnOptions, +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/multi_rh/entry/src/main/ets/testability/pages/ActionEventCommoneventDragdefault/ActionEventCommoneventDragdefault0580.ets + + +@Component +struct ActionEventCommoneventDragdefault0580 { + @State uri: string = "" + @State BblockArr: string[] = [] as string[] + @State txt:string = '最后拖拽文本' + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: unifiedDataChannel.UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Column({space:10} as ColumnOptions) { + Column(){ + Text('B位置') + .fontSize('15dp') + Text(this.uri) + .width(150) + .height(100) + .border({width: 1}) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent: DragEvent, extraParams?: string):void => { + this.getDataFromUdmf((dragEvent as DragEvent), (event: DragEvent) => { + let records: Array = event.getData().getRecords(); + let plainText: unifiedDataChannel.PlainText = records[0] as unifiedDataChannel.PlainText; + this.uri = (plainText.textAbstract ? plainText.textAbstract! : '') ; + }) + }) + } + .id('txt2') + .width(100) + Column(){ + Text('A位置文字拖拽') + .fontSize('30dp') + Row({space: 8} as RowOptions) { + Text('前面的文本') + Text('中间的文本') + Text(this.txt) + .fontSize(20) + .width(150) + .border({ width: 1 }) + .draggable(true) + .id('txt1') + .onDragStart((event: DragEvent, extraParams?: string):(() => void) => { + let data: unifiedDataChannel.PlainText = new unifiedDataChannel.PlainText(); + data.textAbstract = this.txt; + (event as DragEvent).setData(new unifiedDataChannel.UnifiedData(data)); + }) + .onDragEnd((event: DragEvent,extraParams?:string):void => { + }) + } + } + }.width('100%').padding(30) + } +} + +// from /home/x00931626/UITest/ZOrderTest/entry/src/main/ets/testability/pages/ZOrder/ZIndexDynamicModificationTest14.ets + +@Component +struct ZIndexDynamicModificationTest14 { + @State videoSrc01: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc02: resourceManager.Resource = $r('app.media.startIcon') + @State videoSrc03: resourceManager.Resource = $r('app.media.startIcon') + @State textValueIndex : number = 0 + @State zIndexValue:Array>=new Array>([1, 1, 1], [0, 0, 0], [1, 2, 3], [3, 2, 1], [2, 3, 1], [-3, -2, -1], [-3, 2, -1], [-1, -2, 0], [999999, 9999, 9]) + @State zIndexValueIndex : number = 0 //zIndex的初始值 + @State whValue:Array>=new Array>(['50%', '40%', '70%', '60%', '90%', '80%'], ['90%', '80%', '70%', '60%', '50%', '40%']) + @State whValueIndex : number = 0 //组件的宽高的初始值 + @State isImage :boolean = false + @State isVideo :boolean = false + onPageShow() { + this.isImage = true // Image XYZ设置zIndex: 3 2 1 + this.zIndexValueIndex = 3 + } + build() { + Column({ space: 5 } as ColumnOptions) { + if(this.isImage) { + Stack() { + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('40%').height('40%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('70%').height('50%') + Image($r('app.media.startIcon')) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.BottomEnd) + } else if (this.isVideo) { + Stack() { + Video({ + src: this.videoSrc01, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width('60%').height('60%') + Video({ + src: this.videoSrc02, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width('80%').height('80%') + Video({ + src: this.videoSrc03, + }).autoPlay(true) + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width('100%').height('100%') + }.width('90%').height('30%').border({width:1,color:Color.Red} as BorderOptions).alignContent(Alignment.TopEnd) + } else { + Stack() { + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][0]) + .width(this.whValue[this.whValueIndex][0]).height(this.whValue[this.whValueIndex][1]).backgroundColor(0xFFCCCC).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][1]) + .width(this.whValue[this.whValueIndex][2]).height(this.whValue[this.whValueIndex][3]).backgroundColor(0xCCFFFF).align(Alignment.TopStart) + Text() + .zIndex(this.zIndexValue[this.zIndexValueIndex][2]) + .width(this.whValue[this.whValueIndex][4]).height(this.whValue[this.whValueIndex][5]).backgroundColor(0xFFFACD).align(Alignment.TopStart) + }.width('90%').height('18%').border({width:1,color:Color.Red} as BorderOptions) + } + }.width('100%').height('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIComponentMediaImageMask/UIComponentMediaImageMask0100.ets + + +@Component +struct UIComponentMediaImageMask00100 { + @State widthSize: number = 100; + @State heightSize: number = 100; + build() { + Column() { + Text('Image not set obscured attribute').fontSize(12).fontColor(Color.Black).margin({ bottom: 10 } as Margin) + Image('icon.png') + .width(this.widthSize) + .height(this.heightSize) + .defaultFocus(true) + .obscured([ObscuredReasons.PLACEHOLDER]) + Image($r('app.media.startIcon')) + .width(this.widthSize) + .height(this.heightSize) + .margin(10) + .obscured([ObscuredReasons.PLACEHOLDER]) + }.width('100%') + } +} + +// from /home/x00931626/UITest/event_flag_rh/entry/src/main/ets/testability/pages/UIAttributesFloatingLayerOverlay/UIAttributesFloatingLayerOverlay0200.ets + + +@Component +struct UIAttributesFloatingLayerOverlay0200 { + @Builder + OverlayNode() { + Column() { + Text("This is overlayNode").fontSize(20).fontColor(Color.White) + }.width(180).height(180).alignItems(HorizontalAlign.Center).backgroundColor(Color.Red) + } + build() { + Column() { + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .margin({ bottom: 10 } as Margin) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + Text('This is Main') + .fontSize(20) + .width(360) + .height(360) + .backgroundColor(Color.Yellow) + .overlay((): void => { + this.OverlayNode() + }, { align: Alignment.Center }) + .backgroundColor(Color.Black) + }.width('100%') + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/Focusoptimizatton/Focusoptimizatton166.ets + + +@Component +struct UlComponentCommonattrlfocusoptimizatton166 { + @State handlePopup: boolean = false + @State customPopup: boolean = false + scroller: Scroller = new Scroller; + @Builder popupBuilder() { + Row({ space: 2 } as RowOptions) { + Scroll(this.scroller) { + Column() { + TextInput({ placeholder: 'input ...'}) + .id('UlComponentCommonattrlfocusoptimizatton_166_2') + .margin({top:10} as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + TextInput({ placeholder: 'input ...'}) + .margin({top:10}as Margin) + .width(380) + .height(60) + }.width('100%') + } + .focusable(true) + .backgroundColor(Color.Yellow) + .height('100%') + .edgeEffect(EdgeEffect.Spring) + .scrollSnap({snapAlign:ScrollSnapAlign.START, snapPagination:400, enableSnapToStart:true, enableSnapToEnd:true}) + } + } + build() { + Flex({ direction: FlexDirection.Column }) { + TextInput({ placeholder: 'input ...'}) + .width(380) + .height(60) + Button('CustomPopupOptions') + .id('UlComponentCommonattrlfocusoptimizatton_166_1') + .onClick((): void => { + this.customPopup = !this.customPopup + }) + .bindPopup(this.customPopup as boolean, { + builder: this.popupBuilder as CustomBuilder, + placement: Placement.Top as Placement, + mask: {color:'#33000000' as ResourceColor}, + popupColor: Color.Yellow as Color, + enableArrow: true as boolean, + showInSubWindow: false as boolean, + onStateChange: (e :PopupStateChangeParam):void => { + if (!e.isVisible) { + this.customPopup = false + } + } + } as CustomPopupOptions) + .position({ x: 80, y: 300 } as Position) + }.width('100%').padding({ top: 5 } as Padding) + } +} + + +export const FLAG_OF_FILE_98: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets new file mode 100644 index 000000000..f426deb17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets @@ -0,0 +1,374 @@ +import { Entry, Component,Column,Row,Image, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, +} from '@ohos.arkui.component' + +import { State} from '@ohos.arkui.stateManagement' + +import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; + +import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; + +import { UIContext } from "@ohos.arkui.UIContext"; + +import { BusinessError } from '@ohos.base'; + +import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, + Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Visibility, + Flex,DragEvent,Image,UnifiedData,$r,Callback,BorderOptions +} from '@ohos.arkui.component' + +import { State,AppStorage, Link, Watch,AbstractProperty } from '@ohos.arkui.stateManagement' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, + Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + +import { + Entry, + Text, + Component, + Row, + Column, + Button, + SwipeDirection, + GestureEvent, + HitTestMode, + SwipeGesture, + Builder, + CustomDialogController, + FlexAlign, + TextInput, + TextArea, + Search, + Margin, + Color, + Area +} from '@ohos.arkui.component' + +import { State } from '@ohos.arkui.stateManagement' + +import { Entry, Component, Column,Image,Text,Margin,Text,$r,ClickEvent +} from '@ohos.arkui.component' + +import { State, } from '@ohos.arkui.stateManagement' + +import UDC from '@ohos.data.unifiedDataChannel'; + +import inspector from '@ohos.arkui.inspector' + +import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnWillScrollCallback, + Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource,OnScrollCallback, + ScrollResult +} from '@ohos.arkui.component' + +import { + State, + MutableState, + stateOf, + observableProxy, + AppStorage +} from '@ohos.arkui.stateManagement' + + +// from /home/x00931626/UITest/Alphabetindexer_rh/entry/src/main/ets/testability/pages/UIComponentListandgridXommonOnscroll/UIComponentListandgridXommonOnscroll0300319.ets + + +@Component +struct UIComponentListandgridXommonOnscroll0300319 { + @State willscrollstate: boolean = false; + @State didscrollstate: boolean = false; + scroller1: Scroller = new Scroller(); + @State isFullScreen: boolean = false; + @State numbers: Array = new Array('0', '1', '2', '3', '4'); + @State gridPosition: number = 0 + aboutToDisappear(): void { + this.willscrollstate = false; + this.didscrollstate = false; + } + build() { + Column() { + Column() { + Button('Button') + .id('UIComponentListandgridXommonOnscroll0300319_001') + .onClick((event: ClickEvent) => { + this.scroller1.scrollPage({ next: true }) + }) + Button('Button2') + .id('UIComponentListandgridXommonOnscroll0300319_002') + .onClick((event: ClickEvent) => { + this.scroller1.scrollEdge(Edge.Top) + }) + } + Column({ space: 5 } as ColumnOptions) { + Grid(this.scroller1) { + ForEach(this.numbers, (day: string,index: number) => { + ForEach(this.numbers, (day: string,index: number) => { + GridItem() { + Text(day) + .fontSize(16) + .backgroundColor(0xF9CF93) + .width('100%') + .height(80) + .textAlign(TextAlign.Center) + } + }, (day: string,index: number) => day) + }, (day: string,index: number) => day) + } + .columnsTemplate('1fr') + .columnsGap(10) + .rowsGap(10) + .friction(0.6) + .enableScrollInteraction(true) + .supportAnimation(false) + .multiSelectable(false) + .edgeEffect(EdgeEffect.Spring) + .scrollBar(BarState.On) + .scrollBarColor(Color.Grey) + .scrollBarWidth(4) + .width('90%') + .backgroundColor(0xFAEEE0) + .height(300) + .onWillScroll((scrollOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): ScrollResult | undefined => { + this.willscrollstate = true; + } as OnWillScrollCallback | undefined) + .onDidScroll((scrollOffset: number, scrollState: ScrollState) => { + this.didscrollstate = true; + } as OnScrollCallback | undefined) + Text('willscrollstate: ' + this.willscrollstate) + Text('didscrollstate: ' + this.didscrollstate) + }.width('100%').margin({ top: 5 } as Margin) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/ActionEventControlcallback/ActionEventControlCallback0080.ets + + +@Component +struct ActionEventControlCallback0080 { + @State context: string = "" + build() { + Column(){ + Image($r('app.media.startIcon')).width(100).height(100).borderRadius(30).margin({ left: 3, right: 10 } as Margin) + .id("text") + .onClick((e:ClickEvent)=>{ + let strJson: string = inspector.getInspectorByKey('text'); + let id =JSON.parseJsonElement(strJson).getElement('$attrs').getString('id'); + let type =JSON.parseJsonElement(strJson).getElement('$attrs').getString('type'); + this.context = `type:${type}, id:${id}` + }) + Text(this.context) + } + } +} + +// from /home/x00931626/UITest/gesture_rh/entry/src/main/ets/testability/pages/UIAttributesTouchableInteraction/UIAttributes390.ets + + +@Component +struct UIAttributesTouchableInteraction390 { + @State value: string = 'Text' + @State sizeValue: string = '' + build() { + Column() { + Text(this.value) + .id('UIAttributesTouchableInteraction390') + .hitTestBehavior(HitTestMode.Transparent) + .backgroundColor(Color.Green) + .margin(30) + .fontSize(20) + .onClick((): void => { + this.value = this.value + 'Text' + }) + .onAreaChange((oldValue: Area, newValue: Area): void => { + console.info(`Ace: on area change, oldValue is ${String(oldValue)} value is ${String(newValue)}`) + this.sizeValue = String(newValue) + }) + Text('new area is: \n' + this.sizeValue).margin({ right: 30, left: 30 } as Margin) + } + .width('100%').height('100%').margin({ top: 30 } as Margin) + } +} + +// from /home/x00931626/UITest/GridProperty/entry/src/main/ets/testability/pages/Row2.ets + +@Component +struct Row2Example { + @State numbers: Array = new Array() + aboutToAppear() { + for (let i = 1; i <= 30; i++) { + this.numbers.push(i + '') + } + } + build() { + Scroll() { + Column({ space: 5 } as ColumnOptions) { + Blank() + Grid() { + ForEach(this.numbers, (day: string, index:number) => { + GridItem() { + Text(day).fontSize(16).backgroundColor(0xF9CF93) + }.width(40).height(80).borderWidth(2).borderColor(Color.Red) + }, (day: string, index:number) => day) + } + .height(300) + .columnsGap(10) + .rowsGap(10) + .backgroundColor(0xFAEEE0) + .maxCount(6) + .minCount(2) + .cellLength(500) + .layoutDirection(GridDirection.Row) + } + .width('90%').margin({ top: 5, left: 5, right: 5 } as Margin) + .align(Alignment.Center) + } + } +} + +// from /home/x00931626/UITest/interactiveframe_rh/entry/src/main/ets/testability/pages/UIActionEventCommonEventDragInterface/UIActionEventCommonEventDragInterface0630.ets + + +@Component +struct UIActionEventCommonEventDragInterface0630 { + @State targetImage: string = ''; + @State targetText: string = 'Drag Text'; + @State imageWidth: number = 100; + @State imageHeight: number = 100; + @State imgState: Visibility = Visibility.Visible; + @State videoSrc: string = 'resource://RAWFILE/02.mp4'; + @State abstractContent: string = "abstract"; + @State textContent: string = ""; + @Builder + pixelMapBuilder() { + Column() { + Image($r('app.media.startIcon')) + .width(120) + .height(120) + .backgroundColor(Color.Yellow) + } + } + getDataFromUdmfRetry(event: DragEvent, callback: (data: DragEvent) => void) { + try { + let data: UnifiedData = event.getData(); + if (!data) { + return false; + } + let records: Array = data.getRecords(); + if (!records || records.length <= 0) { + return false; + } + callback(event); + return true; + } catch (e) { + console.log("getData failed, code = " + (e as BusinessError).code + ", message = " + (e as BusinessError).message); + return false; + } + } + getDataFromUdmf(event: DragEvent, callback: (data: DragEvent) => void) { + if (this.getDataFromUdmfRetry(event, callback)) { + return; + } + setTimeout(() => { + this.getDataFromUdmfRetry(event, callback); + }, 1500); + } + build() { + Row() { + Column() { + Text('start Drag') + .fontSize(18) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text('this is abstract') + .fontSize(20) + .width('100%') + } + .id('startDragID') + .margin({ left: 40, top: 20 } as Margin) + .width('100%') + .height(100) + }.width('45%') + .height('100%') + Column() { + Text('Drag Target Area') + .fontSize(20) + .width('100%') + .height(40) + .margin(10) + .backgroundColor('#008888') + Column() { + Text(this.abstractContent).fontSize(20).width('100%') + Text(this.textContent).fontSize(15).width('100%') + } + .id('dragOnDropID') + .width('100%') + .height(100) + .margin(20) + .border({ color: Color.Black, width: 1 } as BorderOptions) + .allowDrop([uniformTypeDescriptor.UniformDataType.PLAIN_TEXT]) + .onDrop((dragEvent?: DragEvent) => { + } as Callback) + }.width('45%') + .height('100%') + .margin({ left: '5%' } as Margin) + } + .height('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesColorrampInterface/UIAttributesColorrampInterface0330.ets + + +@Component +struct UIAttributesColorrampInterface0330 { + build() { + Column({ space: 4 } as ColumnOptions) { + Button('') + .width(400) + .height(60) + .linearGradient({ + colors:[[Color.Blue,0.1],[Color.Pink,0.5]] + } as LinearGradientOptions) + } + .justifyContent(FlexAlign.Center) + .height('100%') + .width('100%') + } +} + +// from /home/x00931626/UITest/effect_rh/entry/src/main/ets/testability/pages/UIAttributesImageeffectInterface/UIAttributesImageeffectInterface0590.ets + + +@Component +struct UIAttributesImageeffectInterface0590 { + build() { + Column() { + Row() { + Image('2.png') + .width(300) + .height(350) + .brightness(1) + } + .height('100%') + } + .width('100%') + } +} + + +export const FLAG_OF_FILE_99: string = '1234'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/Index.ets b/arkoala-arkts/trivial/user/src/ets/pages/Index.ets new file mode 100644 index 000000000..c6cf4a776 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/Index.ets @@ -0,0 +1,35 @@ + +import { State } from "@ohos.arkui.stateManagement" +import { Component, Entry, Column, FontWeight, Text, Row } from "@ohos.arkui.component" + +import { BUILTIN_COMPONENTS } from './builtinComponents' +import { CUSTOM_COMPONENTS_1 } from './customComponents1' +import { CUSTOM_COMPONENTS_2 } from './customComponents2' +import { MANY_IMPORT } from './manyImportMain' +import { STATE_VARIABLES } from './stateVariables' +import { INDEX_FLAG } from './1.2/Index' + +let a1 = BUILTIN_COMPONENTS +let a2 = CUSTOM_COMPONENTS_1 +let a3 = CUSTOM_COMPONENTS_2 +let a4 = MANY_IMPORT +let a5 = STATE_VARIABLES +let a6 = INDEX_FLAG + +@Entry +@Component +struct Index { + @State message: string = 'Hello World'; + + build() { + Row() { + Column() { + Text(this.message) + .fontSize(50) + .fontWeight(FontWeight.Bold) + } + .width('100%') + } + .height('100%') + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/builtinComponents.ets b/arkoala-arkts/trivial/user/src/ets/pages/builtinComponents.ets new file mode 100644 index 000000000..0f114a2a9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/builtinComponents.ets @@ -0,0 +1,20037 @@ + +/** + * 内置组件 + */ + +import { memo, __memo_context_type, __memo_id_type } from "@ohos.arkui.stateManagement" + +import { Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent, + UserView, Image, Slider, Toggle, DatePicker, Progress, TextInput, Row, List, Tabs, + FontWeight, ButtonType, SliderStyle, ToggleType, Color, $r, BarPosition, TabContent, + ProgressType, Checkbox, ForEach, SliderChangeMode, ListItem, TextAlign, EnterKeyType, + SubmitEvent, EditableTextOnChangeCallback, Callback, FontStyle, OnCheckboxChangeCallback, + ImageFit } from "@ohos.arkui.component" + +import { State } from "@ohos.arkui.stateManagement" + +export const BUILTIN_COMPONENTS: string = 'BuiltinComponents' + +@Component +struct BuiltinComponents { + @State message: string = 'Hello ArkTS' + @State sliderValue: number = 50 + @State toggleValue: boolean = false + @State pickerValue: string = 'Option1' + @State dateValue: Date = new Date() + @State progressValue: number = 0.3 + @State textValue: string = '' + @State radioValue: string = 'Radio1' + @State checkboxValues: boolean[] = [false, false, false] + @State indexValue: number = 0 + + build() { + Column() { + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + // 1. 文本组件 + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .fontColor(Color.Blue) + .fontStyle(FontStyle.Normal) + .draggable(true) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + + // 2. 按钮组件 + Button('Click Me') + .width(200) + .height(50) + .type(ButtonType.Capsule) + .onClick((e:ClickEvent) => { + this.message = 'Button clicked!' + }) + + // 3. 图片组件 + Image($r('app.media.startIcon')) + .width(100) + .height(100) + .sourceSize({width:1392, height:1080}) + .borderWidth(1) + .objectFit(ImageFit.Contain) + .borderRadius(50) + + // 4. 滑动条组件 + Slider({ + value: this.sliderValue, + min: 0, + max: 100, + step: 1, + style: SliderStyle.OutSet + }) + .width('90%') + .onChange((value: Double, mode: SliderChangeMode) => { + this.sliderValue = value + }) + + // 5. 开关组件 + Toggle({ type: ToggleType.Switch, isOn: this.toggleValue }) + .width(100) + .height(40) + .padding(15) + .selectedColor(Color.Green) + .onChange((isOn: boolean) => { + this.toggleValue = isOn + }) + + // 6. 日期选择器 + DatePicker({ + start: new Date('1970-1-1'), + end: new Date('2030-12-31'), + selected: this.dateValue + }) + .width('90%') + .onDateChange((value: Date) => { + this.dateValue = value + } as Callback) + + // 7. 进度条 + Progress({ + value: this.progressValue, + total: 1.0, + type: ProgressType.Linear + }) + .width('90%') + .height(100) + + // 8. 输入框 + TextInput({ placeholder: 'Enter text' }) + .width('90%') + .height(50) + .onChange((value: string) => { + this.textValue = value + } as EditableTextOnChangeCallback) + + // 9. 复选框 + Row() { + Checkbox() + .select(this.checkboxValues[0]) + .onChange((value: boolean) => { + this.checkboxValues[0] = value + } as OnCheckboxChangeCallback) + Checkbox() + .select(this.checkboxValues[1]) + .onChange((value: boolean) => { + this.checkboxValues[1] = value + } as OnCheckboxChangeCallback) + } + + // 10. 列表组件 + List() { + ForEach([1, 2, 3, 4, 5], (item: Int, index: Double) => { + ListItem() { + Text(`Item ${item}`) + .width('100%') + .textAlign(TextAlign.Center) + } + .width('100%') + .height(60) + .backgroundColor('#f0f0f0') + }) + } + .width('100%') + .height(200) + + // 11. 页签组件 + Tabs({ barPosition: BarPosition.Start }) { + TabContent() { + Text('Tab1 Content').fontSize(20) + }.tabBar('Tab1') + + TabContent() { + Text('Tab2 Content') + .fontSize(20) + }.tabBar('Tab2') + } + .width('100%') + .height(150) + + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/customComponents1.ets b/arkoala-arkts/trivial/user/src/ets/pages/customComponents1.ets new file mode 100644 index 000000000..e827bef52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/customComponents1.ets @@ -0,0 +1,18956 @@ + +/** + * 自定义组件 + */ + +import { State } from "@ohos.arkui.stateManagement" +import { Component, Column, ClickEvent, FontWeight, Text } from "@ohos.arkui.component" + +export const CUSTOM_COMPONENTS_1: string = 'CustomComponents' + +@Component +struct CustomComponentsMain { + build() { + Column() { + Component0() + Component1() + Component2() + Component3() + Component4() + Component5() + Component6() + Component7() + Component8() + Component9() + Component10() + Component11() + Component12() + Component13() + Component14() + Component15() + Component16() + Component17() + Component18() + Component19() + Component20() + Component21() + Component22() + Component23() + Component24() + Component25() + Component26() + Component27() + Component28() + Component29() + Component30() + Component31() + Component32() + Component33() + Component34() + Component35() + Component36() + Component37() + Component38() + Component39() + Component40() + Component41() + Component42() + Component43() + Component44() + Component45() + Component46() + Component47() + Component48() + Component49() + Component50() + Component51() + Component52() + Component53() + Component54() + Component55() + Component56() + Component57() + Component58() + Component59() + Component60() + Component61() + Component62() + Component63() + Component64() + Component65() + Component66() + Component67() + Component68() + Component69() + Component70() + Component71() + Component72() + Component73() + Component74() + Component75() + Component76() + Component77() + Component78() + Component79() + Component80() + Component81() + Component82() + Component83() + Component84() + Component85() + Component86() + Component87() + Component88() + Component89() + Component90() + Component91() + Component92() + Component93() + Component94() + Component95() + Component96() + Component97() + Component98() + Component99() + Component100() + Component101() + Component102() + Component103() + Component104() + Component105() + Component106() + Component107() + Component108() + Component109() + Component110() + Component111() + Component112() + Component113() + Component114() + Component115() + Component116() + Component117() + Component118() + Component119() + Component120() + Component121() + Component122() + Component123() + Component124() + Component125() + Component126() + Component127() + Component128() + Component129() + Component130() + Component131() + Component132() + Component133() + Component134() + Component135() + Component136() + Component137() + Component138() + Component139() + Component140() + Component141() + Component142() + Component143() + Component144() + Component145() + Component146() + Component147() + Component148() + Component149() + Component150() + Component151() + Component152() + Component153() + Component154() + Component155() + Component156() + Component157() + Component158() + Component159() + Component160() + Component161() + Component162() + Component163() + Component164() + Component165() + Component166() + Component167() + Component168() + Component169() + Component170() + Component171() + Component172() + Component173() + Component174() + Component175() + Component176() + Component177() + Component178() + Component179() + Component180() + Component181() + Component182() + Component183() + Component184() + Component185() + Component186() + Component187() + Component188() + Component189() + Component190() + Component191() + Component192() + Component193() + Component194() + Component195() + Component196() + Component197() + Component198() + Component199() + Component200() + Component201() + Component202() + Component203() + Component204() + Component205() + Component206() + Component207() + Component208() + Component209() + Component210() + Component211() + Component212() + Component213() + Component214() + Component215() + Component216() + Component217() + Component218() + Component219() + Component220() + Component221() + Component222() + Component223() + Component224() + Component225() + Component226() + Component227() + Component228() + Component229() + Component230() + Component231() + Component232() + Component233() + Component234() + Component235() + Component236() + Component237() + Component238() + Component239() + Component240() + Component241() + Component242() + Component243() + Component244() + Component245() + Component246() + Component247() + Component248() + Component249() + Component250() + Component251() + Component252() + Component253() + Component254() + Component255() + Component256() + Component257() + Component258() + Component259() + Component260() + Component261() + Component262() + Component263() + Component264() + Component265() + Component266() + Component267() + Component268() + Component269() + Component270() + Component271() + Component272() + Component273() + Component274() + Component275() + Component276() + Component277() + Component278() + Component279() + Component280() + Component281() + Component282() + Component283() + Component284() + Component285() + Component286() + Component287() + Component288() + Component289() + Component290() + Component291() + Component292() + Component293() + Component294() + Component295() + Component296() + Component297() + Component298() + Component299() + Component300() + Component301() + Component302() + Component303() + Component304() + Component305() + Component306() + Component307() + Component308() + Component309() + Component310() + Component311() + Component312() + Component313() + Component314() + Component315() + Component316() + Component317() + Component318() + Component319() + Component320() + Component321() + Component322() + Component323() + Component324() + Component325() + Component326() + Component327() + Component328() + Component329() + Component330() + Component331() + Component332() + Component333() + Component334() + Component335() + Component336() + Component337() + Component338() + Component339() + Component340() + Component341() + Component342() + Component343() + Component344() + Component345() + Component346() + Component347() + Component348() + Component349() + Component350() + Component351() + Component352() + Component353() + Component354() + Component355() + Component356() + Component357() + Component358() + Component359() + Component360() + Component361() + Component362() + Component363() + Component364() + Component365() + Component366() + Component367() + Component368() + Component369() + Component370() + Component371() + Component372() + Component373() + Component374() + Component375() + Component376() + Component377() + Component378() + Component379() + Component380() + Component381() + Component382() + Component383() + Component384() + Component385() + Component386() + Component387() + Component388() + Component389() + Component390() + Component391() + Component392() + Component393() + Component394() + Component395() + Component396() + Component397() + Component398() + Component399() + Component400() + Component401() + Component402() + Component403() + Component404() + Component405() + Component406() + Component407() + Component408() + Component409() + Component410() + Component411() + Component412() + Component413() + Component414() + Component415() + Component416() + Component417() + Component418() + Component419() + Component420() + Component421() + Component422() + Component423() + Component424() + Component425() + Component426() + Component427() + Component428() + Component429() + Component430() + Component431() + Component432() + Component433() + Component434() + Component435() + Component436() + Component437() + Component438() + Component439() + Component440() + Component441() + Component442() + Component443() + Component444() + Component445() + Component446() + Component447() + Component448() + Component449() + Component450() + Component451() + Component452() + Component453() + Component454() + Component455() + Component456() + Component457() + Component458() + Component459() + Component460() + Component461() + Component462() + Component463() + Component464() + Component465() + Component466() + Component467() + Component468() + Component469() + Component470() + Component471() + Component472() + Component473() + Component474() + Component475() + Component476() + Component477() + Component478() + Component479() + Component480() + Component481() + Component482() + Component483() + Component484() + Component485() + Component486() + Component487() + Component488() + Component489() + Component490() + Component491() + Component492() + Component493() + Component494() + Component495() + Component496() + Component497() + Component498() + Component499() + Component500() + Component501() + Component502() + Component503() + Component504() + Component505() + Component506() + Component507() + Component508() + Component509() + Component510() + Component511() + Component512() + Component513() + Component514() + Component515() + Component516() + Component517() + Component518() + Component519() + Component520() + Component521() + Component522() + Component523() + Component524() + Component525() + Component526() + Component527() + Component528() + Component529() + Component530() + Component531() + Component532() + Component533() + Component534() + Component535() + Component536() + Component537() + Component538() + Component539() + Component540() + Component541() + Component542() + Component543() + Component544() + Component545() + Component546() + Component547() + Component548() + Component549() + Component550() + Component551() + Component552() + Component553() + Component554() + Component555() + Component556() + Component557() + Component558() + Component559() + Component560() + Component561() + Component562() + Component563() + Component564() + Component565() + Component566() + Component567() + Component568() + Component569() + Component570() + Component571() + Component572() + Component573() + Component574() + Component575() + Component576() + Component577() + Component578() + Component579() + Component580() + Component581() + Component582() + Component583() + Component584() + Component585() + Component586() + Component587() + Component588() + Component589() + Component590() + Component591() + Component592() + Component593() + Component594() + Component595() + Component596() + Component597() + Component598() + Component599() + Component600() + Component601() + Component602() + Component603() + Component604() + Component605() + Component606() + Component607() + Component608() + Component609() + Component610() + Component611() + Component612() + Component613() + Component614() + Component615() + Component616() + Component617() + Component618() + Component619() + Component620() + Component621() + Component622() + Component623() + Component624() + Component625() + Component626() + Component627() + Component628() + Component629() + Component630() + Component631() + Component632() + Component633() + Component634() + Component635() + Component636() + Component637() + Component638() + Component639() + Component640() + Component641() + Component642() + Component643() + Component644() + Component645() + Component646() + Component647() + Component648() + Component649() + Component650() + Component651() + Component652() + Component653() + Component654() + Component655() + Component656() + Component657() + Component658() + Component659() + Component660() + Component661() + Component662() + Component663() + Component664() + Component665() + Component666() + Component667() + Component668() + Component669() + Component670() + Component671() + Component672() + Component673() + Component674() + Component675() + Component676() + Component677() + Component678() + Component679() + Component680() + Component681() + Component682() + Component683() + Component684() + Component685() + Component686() + Component687() + Component688() + Component689() + Component690() + Component691() + Component692() + Component693() + Component694() + Component695() + Component696() + Component697() + Component698() + Component699() + Component700() + Component701() + Component702() + Component703() + Component704() + Component705() + Component706() + Component707() + Component708() + Component709() + Component710() + Component711() + Component712() + Component713() + Component714() + Component715() + Component716() + Component717() + Component718() + Component719() + Component720() + Component721() + Component722() + Component723() + Component724() + Component725() + Component726() + Component727() + Component728() + Component729() + Component730() + Component731() + Component732() + Component733() + Component734() + Component735() + Component736() + Component737() + Component738() + Component739() + Component740() + Component741() + Component742() + Component743() + Component744() + Component745() + Component746() + Component747() + Component748() + Component749() + Component750() + Component751() + Component752() + Component753() + Component754() + Component755() + Component756() + Component757() + Component758() + Component759() + Component760() + Component761() + Component762() + Component763() + Component764() + Component765() + Component766() + Component767() + Component768() + Component769() + Component770() + Component771() + Component772() + Component773() + Component774() + Component775() + Component776() + Component777() + Component778() + Component779() + Component780() + Component781() + Component782() + Component783() + Component784() + Component785() + Component786() + Component787() + Component788() + Component789() + Component790() + Component791() + Component792() + Component793() + Component794() + Component795() + Component796() + Component797() + Component798() + Component799() + Component800() + Component801() + Component802() + Component803() + Component804() + Component805() + Component806() + Component807() + Component808() + Component809() + Component810() + Component811() + Component812() + Component813() + Component814() + Component815() + Component816() + Component817() + Component818() + Component819() + Component820() + Component821() + Component822() + Component823() + Component824() + Component825() + Component826() + Component827() + Component828() + Component829() + Component830() + Component831() + Component832() + Component833() + Component834() + Component835() + Component836() + Component837() + Component838() + Component839() + Component840() + Component841() + Component842() + Component843() + Component844() + Component845() + Component846() + Component847() + Component848() + Component849() + Component850() + Component851() + Component852() + Component853() + Component854() + Component855() + Component856() + Component857() + Component858() + Component859() + Component860() + Component861() + Component862() + Component863() + Component864() + Component865() + Component866() + Component867() + Component868() + Component869() + Component870() + Component871() + Component872() + Component873() + Component874() + Component875() + Component876() + Component877() + Component878() + Component879() + Component880() + Component881() + Component882() + Component883() + Component884() + Component885() + Component886() + Component887() + Component888() + Component889() + Component890() + Component891() + Component892() + Component893() + Component894() + Component895() + Component896() + Component897() + Component898() + Component899() + Component900() + Component901() + Component902() + Component903() + Component904() + Component905() + Component906() + Component907() + Component908() + Component909() + Component910() + Component911() + Component912() + Component913() + Component914() + Component915() + Component916() + Component917() + Component918() + Component919() + Component920() + Component921() + Component922() + Component923() + Component924() + Component925() + Component926() + Component927() + Component928() + Component929() + Component930() + Component931() + Component932() + Component933() + Component934() + Component935() + Component936() + Component937() + Component938() + Component939() + Component940() + Component941() + Component942() + Component943() + Component944() + Component945() + Component946() + Component947() + Component948() + Component949() + Component950() + Component951() + Component952() + Component953() + Component954() + Component955() + Component956() + Component957() + Component958() + Component959() + Component960() + Component961() + Component962() + Component963() + Component964() + Component965() + Component966() + Component967() + Component968() + Component969() + Component970() + Component971() + Component972() + Component973() + Component974() + Component975() + Component976() + Component977() + Component978() + Component979() + Component980() + Component981() + Component982() + Component983() + Component984() + Component985() + Component986() + Component987() + Component988() + Component989() + Component990() + Component991() + Component992() + Component993() + Component994() + Component995() + Component996() + Component997() + Component998() + Component999() + Component1000() + Component1001() + Component1002() + Component1003() + Component1004() + Component1005() + Component1006() + Component1007() + Component1008() + Component1009() + Component1010() + Component1011() + Component1012() + Component1013() + Component1014() + Component1015() + Component1016() + Component1017() + Component1018() + Component1019() + Component1020() + Component1021() + Component1022() + Component1023() + Component1024() + Component1025() + Component1026() + Component1027() + Component1028() + Component1029() + Component1030() + Component1031() + Component1032() + Component1033() + Component1034() + Component1035() + Component1036() + Component1037() + Component1038() + Component1039() + Component1040() + Component1041() + Component1042() + Component1043() + Component1044() + Component1045() + Component1046() + Component1047() + Component1048() + Component1049() + Component1050() + Component1051() + + } + } +} + + +@Component +struct Component0 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component2 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component3 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component4 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component5 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component6 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component7 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component8 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component9 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component10 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component11 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component12 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component13 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component14 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component15 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component16 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component17 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component18 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component19 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component20 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component21 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component22 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component23 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component24 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component25 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component26 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component27 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component28 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component29 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component30 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component31 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component32 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component33 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component34 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component35 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component36 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component37 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component38 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component39 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component40 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component41 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component42 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component43 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component44 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component45 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component46 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component47 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component48 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component49 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component50 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component51 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component52 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component53 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component54 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component55 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component56 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component57 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component58 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component59 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component60 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component61 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component62 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component63 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component64 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component65 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component66 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component67 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component68 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component69 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component70 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component71 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component72 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component73 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component74 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component75 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component76 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component77 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component78 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component79 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component80 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component81 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component82 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component83 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component84 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component85 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component86 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component87 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component88 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component89 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component90 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component91 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component92 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component93 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component94 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component95 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component96 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component97 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component98 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component99 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component100 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component101 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component102 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component103 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component104 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component105 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component106 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component107 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component108 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component109 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component110 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component111 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component112 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component113 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component114 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component115 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component116 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component117 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component118 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component119 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component120 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component121 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component122 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component123 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component124 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component125 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component126 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component127 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component128 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component129 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component130 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component131 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component132 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component133 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component134 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component135 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component136 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component137 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component138 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component139 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component140 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component141 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component142 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component143 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component144 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component145 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component146 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component147 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component148 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component149 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component150 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component151 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component152 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component153 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component154 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component155 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component156 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component157 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component158 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component159 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component160 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component161 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component162 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component163 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component164 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component165 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component166 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component167 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component168 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component169 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component170 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component171 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component172 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component173 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component174 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component175 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component176 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component177 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component178 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component179 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component180 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component181 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component182 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component183 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component184 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component185 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component186 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component187 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component188 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component189 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component190 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component191 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component192 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component193 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component194 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component195 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component196 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component197 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component198 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component199 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component200 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component201 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component202 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component203 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component204 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component205 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component206 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component207 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component208 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component209 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component210 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component211 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component212 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component213 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component214 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component215 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component216 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component217 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component218 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component219 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component220 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component221 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component222 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component223 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component224 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component225 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component226 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component227 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component228 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component229 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component230 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component231 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component232 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component233 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component234 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component235 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component236 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component237 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component238 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component239 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component240 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component241 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component242 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component243 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component244 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component245 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component246 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component247 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component248 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component249 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component250 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component251 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component252 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component253 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component254 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component255 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component256 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component257 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component258 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component259 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component260 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component261 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component262 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component263 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component264 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component265 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component266 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component267 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component268 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component269 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component270 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component271 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component272 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component273 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component274 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component275 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component276 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component277 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component278 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component279 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component280 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component281 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component282 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component283 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component284 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component285 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component286 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component287 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component288 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component289 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component290 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component291 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component292 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component293 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component294 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component295 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component296 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component297 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component298 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component299 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component300 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component301 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component302 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component303 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component304 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component305 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component306 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component307 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component308 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component309 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component310 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component311 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component312 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component313 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component314 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component315 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component316 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component317 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component318 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component319 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component320 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component321 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component322 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component323 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component324 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component325 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component326 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component327 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component328 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component329 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component330 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component331 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component332 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component333 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component334 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component335 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component336 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component337 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component338 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component339 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component340 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component341 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component342 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component343 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component344 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component345 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component346 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component347 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component348 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component349 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component350 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component351 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component352 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component353 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component354 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component355 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component356 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component357 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component358 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component359 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component360 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component361 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component362 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component363 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component364 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component365 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component366 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component367 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component368 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component369 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component370 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component371 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component372 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component373 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component374 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component375 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component376 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component377 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component378 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component379 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component380 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component381 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component382 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component383 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component384 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component385 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component386 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component387 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component388 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component389 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component390 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component391 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component392 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component393 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component394 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component395 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component396 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component397 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component398 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component399 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component400 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component401 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component402 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component403 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component404 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component405 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component406 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component407 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component408 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component409 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component410 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component411 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component412 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component413 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component414 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component415 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component416 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component417 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component418 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component419 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component420 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component421 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component422 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component423 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component424 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component425 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component426 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component427 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component428 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component429 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component430 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component431 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component432 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component433 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component434 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component435 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component436 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component437 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component438 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component439 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component440 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component441 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component442 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component443 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component444 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component445 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component446 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component447 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component448 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component449 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component450 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component451 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component452 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component453 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component454 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component455 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component456 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component457 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component458 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component459 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component460 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component461 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component462 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component463 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component464 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component465 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component466 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component467 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component468 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component469 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component470 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component471 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component472 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component473 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component474 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component475 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component476 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component477 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component478 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component479 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component480 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component481 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component482 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component483 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component484 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component485 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component486 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component487 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component488 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component489 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component490 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component491 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component492 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component493 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component494 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component495 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component496 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component497 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component498 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component499 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component500 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component501 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component502 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component503 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component504 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component505 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component506 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component507 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component508 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component509 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component510 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component511 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component512 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component513 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component514 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component515 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component516 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component517 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component518 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component519 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component520 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component521 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component522 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component523 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component524 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component525 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component526 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component527 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component528 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component529 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component530 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component531 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component532 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component533 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component534 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component535 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component536 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component537 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component538 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component539 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component540 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component541 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component542 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component543 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component544 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component545 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component546 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component547 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component548 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component549 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component550 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component551 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component552 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component553 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component554 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component555 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component556 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component557 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component558 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component559 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component560 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component561 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component562 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component563 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component564 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component565 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component566 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component567 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component568 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component569 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component570 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component571 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component572 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component573 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component574 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component575 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component576 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component577 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component578 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component579 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component580 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component581 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component582 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component583 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component584 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component585 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component586 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component587 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component588 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component589 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component590 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component591 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component592 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component593 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component594 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component595 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component596 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component597 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component598 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component599 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component600 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component601 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component602 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component603 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component604 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component605 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component606 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component607 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component608 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component609 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component610 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component611 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component612 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component613 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component614 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component615 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component616 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component617 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component618 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component619 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component620 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component621 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component622 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component623 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component624 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component625 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component626 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component627 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component628 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component629 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component630 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component631 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component632 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component633 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component634 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component635 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component636 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component637 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component638 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component639 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component640 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component641 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component642 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component643 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component644 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component645 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component646 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component647 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component648 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component649 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component650 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component651 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component652 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component653 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component654 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component655 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component656 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component657 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component658 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component659 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component660 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component661 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component662 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component663 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component664 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component665 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component666 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component667 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component668 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component669 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component670 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component671 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component672 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component673 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component674 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component675 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component676 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component677 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component678 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component679 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component680 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component681 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component682 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component683 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component684 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component685 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component686 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component687 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component688 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component689 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component690 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component691 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component692 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component693 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component694 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component695 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component696 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component697 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component698 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component699 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component700 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component701 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component702 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component703 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component704 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component705 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component706 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component707 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component708 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component709 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component710 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component711 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component712 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component713 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component714 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component715 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component716 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component717 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component718 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component719 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component720 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component721 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component722 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component723 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component724 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component725 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component726 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component727 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component728 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component729 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component730 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component731 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component732 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component733 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component734 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component735 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component736 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component737 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component738 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component739 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component740 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component741 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component742 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component743 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component744 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component745 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component746 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component747 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component748 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component749 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component750 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component751 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component752 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component753 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component754 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component755 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component756 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component757 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component758 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component759 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component760 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component761 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component762 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component763 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component764 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component765 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component766 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component767 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component768 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component769 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component770 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component771 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component772 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component773 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component774 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component775 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component776 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component777 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component778 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component779 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component780 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component781 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component782 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component783 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component784 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component785 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component786 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component787 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component788 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component789 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component790 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component791 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component792 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component793 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component794 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component795 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component796 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component797 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component798 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component799 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component800 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component801 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component802 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component803 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component804 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component805 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component806 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component807 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component808 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component809 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component810 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component811 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component812 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component813 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component814 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component815 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component816 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component817 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component818 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component819 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component820 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component821 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component822 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component823 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component824 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component825 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component826 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component827 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component828 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component829 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component830 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component831 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component832 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component833 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component834 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component835 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component836 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component837 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component838 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component839 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component840 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component841 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component842 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component843 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component844 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component845 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component846 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component847 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component848 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component849 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component850 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component851 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component852 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component853 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component854 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component855 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component856 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component857 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component858 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component859 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component860 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component861 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component862 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component863 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component864 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component865 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component866 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component867 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component868 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component869 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component870 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component871 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component872 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component873 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component874 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component875 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component876 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component877 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component878 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component879 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component880 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component881 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component882 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component883 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component884 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component885 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component886 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component887 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component888 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component889 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component890 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component891 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component892 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component893 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component894 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component895 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component896 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component897 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component898 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component899 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component900 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component901 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component902 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component903 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component904 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component905 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component906 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component907 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component908 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component909 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component910 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component911 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component912 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component913 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component914 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component915 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component916 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component917 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component918 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component919 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component920 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component921 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component922 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component923 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component924 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component925 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component926 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component927 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component928 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component929 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component930 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component931 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component932 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component933 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component934 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component935 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component936 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component937 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component938 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component939 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component940 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component941 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component942 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component943 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component944 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component945 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component946 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component947 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component948 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component949 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component950 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component951 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component952 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component953 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component954 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component955 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component956 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component957 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component958 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component959 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component960 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component961 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component962 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component963 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component964 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component965 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component966 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component967 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component968 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component969 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component970 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component971 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component972 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component973 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component974 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component975 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component976 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component977 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component978 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component979 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component980 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component981 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component982 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component983 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component984 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component985 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component986 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component987 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component988 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component989 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component990 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component991 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component992 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component993 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component994 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component995 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component996 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component997 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component998 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component999 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1000 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1001 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1002 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1003 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1004 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1005 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1006 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1007 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1008 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1009 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1010 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1011 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1012 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1013 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1014 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1015 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1016 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1017 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1018 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1019 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1020 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1021 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1022 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1023 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1024 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1025 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1026 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1027 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1028 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1029 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1030 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1031 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1032 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1033 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1034 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1035 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1036 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1037 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1038 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1039 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1040 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1041 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1042 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1043 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1044 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1045 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1046 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1047 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1048 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1049 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1050 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + +@Component +struct Component1051 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + diff --git a/arkoala-arkts/trivial/user/src/ets/pages/customComponents2.ets b/arkoala-arkts/trivial/user/src/ets/pages/customComponents2.ets new file mode 100644 index 000000000..860792d7d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/customComponents2.ets @@ -0,0 +1,18973 @@ + +/** + * 自定义组件 + */ + +import { State } from "@ohos.arkui.stateManagement" +import { Component, Column, ClickEvent, FontWeight, Text } from "@ohos.arkui.component" + +export const CUSTOM_COMPONENTS_2: string = 'CustomComponents' + +@Component +struct CustomComponentsMain { + build() { + Column() { + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + Component321() + + + } + } +} + + +@Component +struct Component321 { + message: string = "hello world" + + build() { + Column() { + Text(this.message) + .fontSize(30) + .fontWeight(FontWeight.Bold) + .onClick((e:ClickEvent) => { + this.message = 'Text clicked!' + }) + } + } +} + + diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1.ets new file mode 100644 index 000000000..3faf1302a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent2 } from "./manyImportFile2" +import { ManyImportComponent3 } from "./manyImportFile3" + + +@Component +export struct ManyImportComponent1 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent2() + ManyImportComponent3() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile10.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile10.ets new file mode 100644 index 000000000..788c354a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile10.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent20 } from "./manyImportFile20" +import { ManyImportComponent21 } from "./manyImportFile21" + + +@Component +export struct ManyImportComponent10 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent20() + ManyImportComponent21() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile100.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile100.ets new file mode 100644 index 000000000..84019ec07 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile100.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent200 } from "./manyImportFile200" +import { ManyImportComponent201 } from "./manyImportFile201" + + +@Component +export struct ManyImportComponent100 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent200() + ManyImportComponent201() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1000.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1000.ets new file mode 100644 index 000000000..60e7dc3ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1000.ets @@ -0,0 +1,18 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent2000 } from "./manyImportFile2000" + + +@Component +export struct ManyImportComponent1000 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent2000() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1001.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1001.ets new file mode 100644 index 000000000..38f284a64 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1001.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1001 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1002.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1002.ets new file mode 100644 index 000000000..e2fbaf731 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1002.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1002 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1003.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1003.ets new file mode 100644 index 000000000..ac73ebcef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1003.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1003 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1004.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1004.ets new file mode 100644 index 000000000..b7ba77b6f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1004.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1004 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1005.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1005.ets new file mode 100644 index 000000000..967d22928 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1005.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1005 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1006.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1006.ets new file mode 100644 index 000000000..f6a32e42a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1006.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1006 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1007.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1007.ets new file mode 100644 index 000000000..d2cb4f676 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1007.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1007 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1008.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1008.ets new file mode 100644 index 000000000..0a866c9bf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1008.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1008 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1009.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1009.ets new file mode 100644 index 000000000..f54a1b4bc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1009.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1009 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile101.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile101.ets new file mode 100644 index 000000000..51b76b6ce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile101.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent202 } from "./manyImportFile202" +import { ManyImportComponent203 } from "./manyImportFile203" + + +@Component +export struct ManyImportComponent101 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent202() + ManyImportComponent203() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1010.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1010.ets new file mode 100644 index 000000000..0392c9647 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1010.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1010 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1011.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1011.ets new file mode 100644 index 000000000..7d38b2a48 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1011.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1011 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1012.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1012.ets new file mode 100644 index 000000000..2c8315e74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1012.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1012 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1013.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1013.ets new file mode 100644 index 000000000..1bda26e7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1013.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1013 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1014.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1014.ets new file mode 100644 index 000000000..bf1189896 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1014.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1014 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1015.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1015.ets new file mode 100644 index 000000000..2fcb31327 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1015.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1015 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1016.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1016.ets new file mode 100644 index 000000000..4ad12c9d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1016.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1016 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1017.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1017.ets new file mode 100644 index 000000000..be1741bca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1017.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1017 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1018.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1018.ets new file mode 100644 index 000000000..72273c6c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1018.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1018 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1019.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1019.ets new file mode 100644 index 000000000..7500b5f60 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1019.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1019 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile102.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile102.ets new file mode 100644 index 000000000..ca0fa89fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile102.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent204 } from "./manyImportFile204" +import { ManyImportComponent205 } from "./manyImportFile205" + + +@Component +export struct ManyImportComponent102 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent204() + ManyImportComponent205() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1020.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1020.ets new file mode 100644 index 000000000..38999e53c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1020.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1020 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1021.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1021.ets new file mode 100644 index 000000000..1799e0b8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1021.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1021 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1022.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1022.ets new file mode 100644 index 000000000..42ed7e58d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1022.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1022 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1023.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1023.ets new file mode 100644 index 000000000..b0823b45f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1023.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1023 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1024.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1024.ets new file mode 100644 index 000000000..50e038f86 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1024.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1024 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1025.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1025.ets new file mode 100644 index 000000000..78b68429c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1025.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1025 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1026.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1026.ets new file mode 100644 index 000000000..7ccfdbcd3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1026.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1026 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1027.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1027.ets new file mode 100644 index 000000000..bb301867b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1027.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1027 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1028.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1028.ets new file mode 100644 index 000000000..7d56d84e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1028.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1028 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1029.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1029.ets new file mode 100644 index 000000000..a6d4f2e1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1029.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1029 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile103.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile103.ets new file mode 100644 index 000000000..c362de595 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile103.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent206 } from "./manyImportFile206" +import { ManyImportComponent207 } from "./manyImportFile207" + + +@Component +export struct ManyImportComponent103 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent206() + ManyImportComponent207() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1030.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1030.ets new file mode 100644 index 000000000..3ea220846 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1030.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1030 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1031.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1031.ets new file mode 100644 index 000000000..b8b2b59fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1031.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1031 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1032.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1032.ets new file mode 100644 index 000000000..edec5db80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1032.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1032 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1033.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1033.ets new file mode 100644 index 000000000..30675c580 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1033.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1033 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1034.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1034.ets new file mode 100644 index 000000000..1b048a7f5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1034.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1034 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1035.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1035.ets new file mode 100644 index 000000000..e5f3a5ad5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1035.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1035 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1036.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1036.ets new file mode 100644 index 000000000..9833c0c38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1036.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1036 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1037.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1037.ets new file mode 100644 index 000000000..93aeedc1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1037.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1037 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1038.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1038.ets new file mode 100644 index 000000000..cff74f0cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1038.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1038 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1039.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1039.ets new file mode 100644 index 000000000..b5ee21e16 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1039.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1039 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile104.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile104.ets new file mode 100644 index 000000000..ccdc539fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile104.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent208 } from "./manyImportFile208" +import { ManyImportComponent209 } from "./manyImportFile209" + + +@Component +export struct ManyImportComponent104 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent208() + ManyImportComponent209() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1040.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1040.ets new file mode 100644 index 000000000..c42956b14 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1040.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1040 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1041.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1041.ets new file mode 100644 index 000000000..f4906afd4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1041.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1041 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1042.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1042.ets new file mode 100644 index 000000000..9683d3e36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1042.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1042 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1043.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1043.ets new file mode 100644 index 000000000..c670d534c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1043.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1043 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1044.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1044.ets new file mode 100644 index 000000000..b9408e368 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1044.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1044 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1045.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1045.ets new file mode 100644 index 000000000..cfc886468 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1045.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1045 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1046.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1046.ets new file mode 100644 index 000000000..02437ee09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1046.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1046 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1047.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1047.ets new file mode 100644 index 000000000..2aa37788a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1047.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1047 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1048.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1048.ets new file mode 100644 index 000000000..156766ffd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1048.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1048 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1049.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1049.ets new file mode 100644 index 000000000..c655d3d84 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1049.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1049 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile105.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile105.ets new file mode 100644 index 000000000..706ba7b87 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile105.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent210 } from "./manyImportFile210" +import { ManyImportComponent211 } from "./manyImportFile211" + + +@Component +export struct ManyImportComponent105 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent210() + ManyImportComponent211() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1050.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1050.ets new file mode 100644 index 000000000..a85e0a265 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1050.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1050 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1051.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1051.ets new file mode 100644 index 000000000..db3e5cbd0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1051.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1051 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1052.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1052.ets new file mode 100644 index 000000000..36d53390a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1052.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1052 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1053.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1053.ets new file mode 100644 index 000000000..43ca4037b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1053.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1053 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1054.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1054.ets new file mode 100644 index 000000000..f05316272 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1054.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1054 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1055.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1055.ets new file mode 100644 index 000000000..e8e82b161 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1055.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1055 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1056.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1056.ets new file mode 100644 index 000000000..88add2dbe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1056.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1056 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1057.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1057.ets new file mode 100644 index 000000000..8a4c1d30b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1057.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1057 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1058.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1058.ets new file mode 100644 index 000000000..5d0e1c825 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1058.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1058 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1059.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1059.ets new file mode 100644 index 000000000..ff12fe4c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1059.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1059 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile106.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile106.ets new file mode 100644 index 000000000..31de327db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile106.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent212 } from "./manyImportFile212" +import { ManyImportComponent213 } from "./manyImportFile213" + + +@Component +export struct ManyImportComponent106 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent212() + ManyImportComponent213() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1060.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1060.ets new file mode 100644 index 000000000..9976e3574 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1060.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1060 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1061.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1061.ets new file mode 100644 index 000000000..692b1242d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1061.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1061 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1062.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1062.ets new file mode 100644 index 000000000..01b6354fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1062.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1062 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1063.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1063.ets new file mode 100644 index 000000000..7aa3a4d74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1063.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1063 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1064.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1064.ets new file mode 100644 index 000000000..adea7cce3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1064.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1064 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1065.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1065.ets new file mode 100644 index 000000000..a03fc9c45 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1065.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1065 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1066.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1066.ets new file mode 100644 index 000000000..cffb08626 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1066.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1066 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1067.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1067.ets new file mode 100644 index 000000000..856d948c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1067.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1067 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1068.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1068.ets new file mode 100644 index 000000000..e63cce7c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1068.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1068 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1069.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1069.ets new file mode 100644 index 000000000..e900ad0e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1069.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1069 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile107.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile107.ets new file mode 100644 index 000000000..caad8da0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile107.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent214 } from "./manyImportFile214" +import { ManyImportComponent215 } from "./manyImportFile215" + + +@Component +export struct ManyImportComponent107 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent214() + ManyImportComponent215() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1070.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1070.ets new file mode 100644 index 000000000..4359c1138 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1070.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1070 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1071.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1071.ets new file mode 100644 index 000000000..3cb746227 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1071.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1071 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1072.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1072.ets new file mode 100644 index 000000000..1a8041c0a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1072.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1072 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1073.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1073.ets new file mode 100644 index 000000000..53cc7996f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1073.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1073 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1074.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1074.ets new file mode 100644 index 000000000..142918716 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1074.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1074 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1075.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1075.ets new file mode 100644 index 000000000..4a33859d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1075.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1075 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1076.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1076.ets new file mode 100644 index 000000000..d11307fd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1076.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1076 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1077.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1077.ets new file mode 100644 index 000000000..abdee4746 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1077.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1077 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1078.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1078.ets new file mode 100644 index 000000000..1443ccc44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1078.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1078 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1079.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1079.ets new file mode 100644 index 000000000..08cedbddb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1079.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1079 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile108.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile108.ets new file mode 100644 index 000000000..d37ea51d3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile108.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent216 } from "./manyImportFile216" +import { ManyImportComponent217 } from "./manyImportFile217" + + +@Component +export struct ManyImportComponent108 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent216() + ManyImportComponent217() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1080.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1080.ets new file mode 100644 index 000000000..2e40b7a3b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1080.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1080 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1081.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1081.ets new file mode 100644 index 000000000..c5b67e6d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1081.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1081 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1082.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1082.ets new file mode 100644 index 000000000..ac9a9e003 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1082.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1082 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1083.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1083.ets new file mode 100644 index 000000000..d2ef2b261 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1083.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1083 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1084.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1084.ets new file mode 100644 index 000000000..3139a28b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1084.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1084 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1085.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1085.ets new file mode 100644 index 000000000..fd59e363d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1085.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1085 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1086.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1086.ets new file mode 100644 index 000000000..fc6bf7c99 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1086.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1086 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1087.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1087.ets new file mode 100644 index 000000000..888bc2289 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1087.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1087 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1088.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1088.ets new file mode 100644 index 000000000..de84a7cb7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1088.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1088 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1089.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1089.ets new file mode 100644 index 000000000..b23ac977b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1089.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1089 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile109.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile109.ets new file mode 100644 index 000000000..340c98f23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile109.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent218 } from "./manyImportFile218" +import { ManyImportComponent219 } from "./manyImportFile219" + + +@Component +export struct ManyImportComponent109 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent218() + ManyImportComponent219() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1090.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1090.ets new file mode 100644 index 000000000..33da9a649 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1090.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1090 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1091.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1091.ets new file mode 100644 index 000000000..cbe983b43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1091.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1091 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1092.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1092.ets new file mode 100644 index 000000000..473c5fd38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1092.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1092 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1093.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1093.ets new file mode 100644 index 000000000..415445ce6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1093.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1093 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1094.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1094.ets new file mode 100644 index 000000000..c3b50e5da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1094.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1094 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1095.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1095.ets new file mode 100644 index 000000000..ab934d8e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1095.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1095 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1096.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1096.ets new file mode 100644 index 000000000..674059d69 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1096.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1096 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1097.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1097.ets new file mode 100644 index 000000000..7c7a512b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1097.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1097 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1098.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1098.ets new file mode 100644 index 000000000..c31395c46 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1098.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1098 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1099.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1099.ets new file mode 100644 index 000000000..1b3b6b48d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1099.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1099 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile11.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile11.ets new file mode 100644 index 000000000..c585d2fc5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile11.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent22 } from "./manyImportFile22" +import { ManyImportComponent23 } from "./manyImportFile23" + + +@Component +export struct ManyImportComponent11 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent22() + ManyImportComponent23() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile110.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile110.ets new file mode 100644 index 000000000..f2ad1162c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile110.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent220 } from "./manyImportFile220" +import { ManyImportComponent221 } from "./manyImportFile221" + + +@Component +export struct ManyImportComponent110 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent220() + ManyImportComponent221() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1100.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1100.ets new file mode 100644 index 000000000..703f795cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1100.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1100 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1101.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1101.ets new file mode 100644 index 000000000..3c3fce8c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1101.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1101 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1102.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1102.ets new file mode 100644 index 000000000..a6fc97018 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1102.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1102 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1103.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1103.ets new file mode 100644 index 000000000..c2201bc5a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1103.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1103 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1104.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1104.ets new file mode 100644 index 000000000..f14ed5fd4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1104.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1104 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1105.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1105.ets new file mode 100644 index 000000000..48bc99668 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1105.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1105 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1106.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1106.ets new file mode 100644 index 000000000..1bb72f0f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1106.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1106 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1107.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1107.ets new file mode 100644 index 000000000..32a9ae780 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1107.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1107 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1108.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1108.ets new file mode 100644 index 000000000..0dd04f805 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1108.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1108 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1109.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1109.ets new file mode 100644 index 000000000..bc0557c44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1109.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1109 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile111.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile111.ets new file mode 100644 index 000000000..b4e1e4a77 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile111.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent222 } from "./manyImportFile222" +import { ManyImportComponent223 } from "./manyImportFile223" + + +@Component +export struct ManyImportComponent111 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent222() + ManyImportComponent223() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1110.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1110.ets new file mode 100644 index 000000000..61dd07e4c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1110.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1110 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1111.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1111.ets new file mode 100644 index 000000000..f7553c427 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1111.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1111 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1112.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1112.ets new file mode 100644 index 000000000..3dd60d927 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1112.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1112 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1113.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1113.ets new file mode 100644 index 000000000..76ecb60fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1113.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1113 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1114.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1114.ets new file mode 100644 index 000000000..d7f316d94 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1114.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1114 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1115.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1115.ets new file mode 100644 index 000000000..110b91779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1115.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1115 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1116.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1116.ets new file mode 100644 index 000000000..fd720d4b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1116.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1116 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1117.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1117.ets new file mode 100644 index 000000000..0d76e0d0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1117.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1117 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1118.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1118.ets new file mode 100644 index 000000000..bc3a50a59 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1118.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1118 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1119.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1119.ets new file mode 100644 index 000000000..3e3f249aa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1119.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1119 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile112.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile112.ets new file mode 100644 index 000000000..20cf0a8da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile112.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent224 } from "./manyImportFile224" +import { ManyImportComponent225 } from "./manyImportFile225" + + +@Component +export struct ManyImportComponent112 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent224() + ManyImportComponent225() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1120.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1120.ets new file mode 100644 index 000000000..373037cea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1120.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1120 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1121.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1121.ets new file mode 100644 index 000000000..6aef16267 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1121.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1121 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1122.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1122.ets new file mode 100644 index 000000000..c8fcea232 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1122.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1122 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1123.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1123.ets new file mode 100644 index 000000000..9ba5dbfad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1123.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1123 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1124.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1124.ets new file mode 100644 index 000000000..0185b6779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1124.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1124 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1125.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1125.ets new file mode 100644 index 000000000..d1bec3b23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1125.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1125 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1126.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1126.ets new file mode 100644 index 000000000..a0939796b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1126.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1126 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1127.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1127.ets new file mode 100644 index 000000000..34beb2bf0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1127.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1127 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1128.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1128.ets new file mode 100644 index 000000000..bb177a26f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1128.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1128 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1129.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1129.ets new file mode 100644 index 000000000..2e5847fa9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1129.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1129 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile113.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile113.ets new file mode 100644 index 000000000..f79d8e18b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile113.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent226 } from "./manyImportFile226" +import { ManyImportComponent227 } from "./manyImportFile227" + + +@Component +export struct ManyImportComponent113 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent226() + ManyImportComponent227() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1130.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1130.ets new file mode 100644 index 000000000..722cf113e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1130.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1130 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1131.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1131.ets new file mode 100644 index 000000000..4e6e206b4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1131.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1131 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1132.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1132.ets new file mode 100644 index 000000000..29e8f9315 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1132.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1132 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1133.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1133.ets new file mode 100644 index 000000000..e9807fc01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1133.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1133 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1134.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1134.ets new file mode 100644 index 000000000..6cdb06768 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1134.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1134 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1135.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1135.ets new file mode 100644 index 000000000..39b57f170 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1135.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1135 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1136.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1136.ets new file mode 100644 index 000000000..e3ef17146 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1136.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1136 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1137.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1137.ets new file mode 100644 index 000000000..a1db5e1c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1137.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1137 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1138.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1138.ets new file mode 100644 index 000000000..69e77e2b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1138.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1138 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1139.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1139.ets new file mode 100644 index 000000000..3ded0a436 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1139.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1139 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile114.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile114.ets new file mode 100644 index 000000000..26264cf64 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile114.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent228 } from "./manyImportFile228" +import { ManyImportComponent229 } from "./manyImportFile229" + + +@Component +export struct ManyImportComponent114 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent228() + ManyImportComponent229() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1140.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1140.ets new file mode 100644 index 000000000..c0b5c2018 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1140.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1140 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1141.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1141.ets new file mode 100644 index 000000000..f75d178bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1141.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1141 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1142.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1142.ets new file mode 100644 index 000000000..f8f9ab847 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1142.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1142 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1143.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1143.ets new file mode 100644 index 000000000..a2556294d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1143.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1143 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1144.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1144.ets new file mode 100644 index 000000000..f9205e879 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1144.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1144 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1145.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1145.ets new file mode 100644 index 000000000..51b596920 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1145.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1145 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1146.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1146.ets new file mode 100644 index 000000000..3a4694432 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1146.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1146 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1147.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1147.ets new file mode 100644 index 000000000..5654e9786 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1147.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1147 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1148.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1148.ets new file mode 100644 index 000000000..b115b959f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1148.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1148 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1149.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1149.ets new file mode 100644 index 000000000..764a34ec6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1149.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1149 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile115.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile115.ets new file mode 100644 index 000000000..10373b943 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile115.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent230 } from "./manyImportFile230" +import { ManyImportComponent231 } from "./manyImportFile231" + + +@Component +export struct ManyImportComponent115 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent230() + ManyImportComponent231() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1150.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1150.ets new file mode 100644 index 000000000..2069da5de --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1150.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1150 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1151.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1151.ets new file mode 100644 index 000000000..a05b6ac13 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1151.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1151 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1152.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1152.ets new file mode 100644 index 000000000..bf893339c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1152.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1152 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1153.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1153.ets new file mode 100644 index 000000000..f172c9398 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1153.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1153 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1154.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1154.ets new file mode 100644 index 000000000..4d0d6b354 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1154.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1154 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1155.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1155.ets new file mode 100644 index 000000000..cb61f5798 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1155.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1155 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1156.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1156.ets new file mode 100644 index 000000000..a6cd791d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1156.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1156 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1157.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1157.ets new file mode 100644 index 000000000..a6ed12555 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1157.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1157 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1158.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1158.ets new file mode 100644 index 000000000..e109ebc4b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1158.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1158 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1159.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1159.ets new file mode 100644 index 000000000..e34757bfa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1159.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1159 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile116.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile116.ets new file mode 100644 index 000000000..65ebc582e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile116.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent232 } from "./manyImportFile232" +import { ManyImportComponent233 } from "./manyImportFile233" + + +@Component +export struct ManyImportComponent116 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent232() + ManyImportComponent233() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1160.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1160.ets new file mode 100644 index 000000000..450cc0908 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1160.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1160 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1161.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1161.ets new file mode 100644 index 000000000..9532f0d54 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1161.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1161 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1162.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1162.ets new file mode 100644 index 000000000..073ddba0d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1162.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1162 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1163.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1163.ets new file mode 100644 index 000000000..04016f84e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1163.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1163 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1164.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1164.ets new file mode 100644 index 000000000..1ca9fc79f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1164.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1164 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1165.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1165.ets new file mode 100644 index 000000000..384182ea3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1165.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1165 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1166.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1166.ets new file mode 100644 index 000000000..b208328be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1166.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1166 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1167.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1167.ets new file mode 100644 index 000000000..637a1c8eb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1167.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1167 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1168.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1168.ets new file mode 100644 index 000000000..58347e6ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1168.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1168 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1169.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1169.ets new file mode 100644 index 000000000..fcc7f7ffa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1169.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1169 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile117.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile117.ets new file mode 100644 index 000000000..398cceae0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile117.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent234 } from "./manyImportFile234" +import { ManyImportComponent235 } from "./manyImportFile235" + + +@Component +export struct ManyImportComponent117 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent234() + ManyImportComponent235() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1170.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1170.ets new file mode 100644 index 000000000..3e4d841aa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1170.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1170 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1171.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1171.ets new file mode 100644 index 000000000..4746ae916 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1171.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1171 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1172.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1172.ets new file mode 100644 index 000000000..72096efac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1172.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1172 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1173.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1173.ets new file mode 100644 index 000000000..c979b00dd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1173.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1173 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1174.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1174.ets new file mode 100644 index 000000000..9622edaf9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1174.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1174 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1175.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1175.ets new file mode 100644 index 000000000..769af8a7a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1175.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1175 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1176.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1176.ets new file mode 100644 index 000000000..eb6141b39 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1176.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1176 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1177.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1177.ets new file mode 100644 index 000000000..a7c944c40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1177.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1177 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1178.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1178.ets new file mode 100644 index 000000000..4c4e16878 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1178.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1178 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1179.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1179.ets new file mode 100644 index 000000000..7559a0f16 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1179.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1179 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile118.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile118.ets new file mode 100644 index 000000000..4ec9dbcbd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile118.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent236 } from "./manyImportFile236" +import { ManyImportComponent237 } from "./manyImportFile237" + + +@Component +export struct ManyImportComponent118 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent236() + ManyImportComponent237() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1180.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1180.ets new file mode 100644 index 000000000..0ccc62f25 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1180.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1180 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1181.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1181.ets new file mode 100644 index 000000000..5a2d63c5e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1181.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1181 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1182.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1182.ets new file mode 100644 index 000000000..d41325242 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1182.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1182 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1183.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1183.ets new file mode 100644 index 000000000..23d429247 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1183.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1183 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1184.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1184.ets new file mode 100644 index 000000000..e6ceab876 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1184.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1184 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1185.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1185.ets new file mode 100644 index 000000000..b8663d6a4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1185.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1185 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1186.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1186.ets new file mode 100644 index 000000000..cb79f6d44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1186.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1186 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1187.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1187.ets new file mode 100644 index 000000000..8b0126a41 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1187.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1187 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1188.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1188.ets new file mode 100644 index 000000000..5c0784034 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1188.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1188 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1189.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1189.ets new file mode 100644 index 000000000..a74b39a3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1189.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1189 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile119.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile119.ets new file mode 100644 index 000000000..761bec579 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile119.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent238 } from "./manyImportFile238" +import { ManyImportComponent239 } from "./manyImportFile239" + + +@Component +export struct ManyImportComponent119 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent238() + ManyImportComponent239() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1190.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1190.ets new file mode 100644 index 000000000..8596610e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1190.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1190 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1191.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1191.ets new file mode 100644 index 000000000..b872814df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1191.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1191 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1192.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1192.ets new file mode 100644 index 000000000..a8c00d6d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1192.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1192 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1193.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1193.ets new file mode 100644 index 000000000..aa3585c38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1193.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1193 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1194.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1194.ets new file mode 100644 index 000000000..f8114d859 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1194.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1194 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1195.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1195.ets new file mode 100644 index 000000000..81102d339 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1195.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1195 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1196.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1196.ets new file mode 100644 index 000000000..2f7c31d82 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1196.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1196 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1197.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1197.ets new file mode 100644 index 000000000..b427c7930 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1197.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1197 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1198.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1198.ets new file mode 100644 index 000000000..b66388f89 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1198.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1198 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1199.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1199.ets new file mode 100644 index 000000000..e7b926fd4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1199.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1199 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile12.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile12.ets new file mode 100644 index 000000000..44da34aca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile12.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent24 } from "./manyImportFile24" +import { ManyImportComponent25 } from "./manyImportFile25" + + +@Component +export struct ManyImportComponent12 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent24() + ManyImportComponent25() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile120.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile120.ets new file mode 100644 index 000000000..0fc03a735 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile120.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent240 } from "./manyImportFile240" +import { ManyImportComponent241 } from "./manyImportFile241" + + +@Component +export struct ManyImportComponent120 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent240() + ManyImportComponent241() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1200.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1200.ets new file mode 100644 index 000000000..009ea51ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1200.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1200 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1201.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1201.ets new file mode 100644 index 000000000..389159220 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1201.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1201 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1202.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1202.ets new file mode 100644 index 000000000..3aab63754 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1202.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1202 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1203.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1203.ets new file mode 100644 index 000000000..bbb1ba53a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1203.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1203 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1204.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1204.ets new file mode 100644 index 000000000..0a74c26d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1204.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1204 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1205.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1205.ets new file mode 100644 index 000000000..4047a08a5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1205.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1205 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1206.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1206.ets new file mode 100644 index 000000000..79ad9c05c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1206.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1206 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1207.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1207.ets new file mode 100644 index 000000000..896ec224c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1207.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1207 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1208.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1208.ets new file mode 100644 index 000000000..414375737 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1208.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1208 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1209.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1209.ets new file mode 100644 index 000000000..cd98e0c72 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1209.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1209 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile121.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile121.ets new file mode 100644 index 000000000..93759f283 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile121.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent242 } from "./manyImportFile242" +import { ManyImportComponent243 } from "./manyImportFile243" + + +@Component +export struct ManyImportComponent121 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent242() + ManyImportComponent243() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1210.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1210.ets new file mode 100644 index 000000000..df1931c27 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1210.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1210 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1211.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1211.ets new file mode 100644 index 000000000..1219c17b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1211.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1211 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1212.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1212.ets new file mode 100644 index 000000000..b96de93f5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1212.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1212 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1213.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1213.ets new file mode 100644 index 000000000..d9e7c66ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1213.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1213 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1214.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1214.ets new file mode 100644 index 000000000..82f3c0ea3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1214.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1214 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1215.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1215.ets new file mode 100644 index 000000000..92d41b5ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1215.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1215 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1216.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1216.ets new file mode 100644 index 000000000..2c0daa348 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1216.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1216 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1217.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1217.ets new file mode 100644 index 000000000..0c100b1a1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1217.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1217 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1218.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1218.ets new file mode 100644 index 000000000..9484565db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1218.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1218 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1219.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1219.ets new file mode 100644 index 000000000..987dbaf86 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1219.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1219 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile122.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile122.ets new file mode 100644 index 000000000..26d9c5746 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile122.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent244 } from "./manyImportFile244" +import { ManyImportComponent245 } from "./manyImportFile245" + + +@Component +export struct ManyImportComponent122 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent244() + ManyImportComponent245() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1220.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1220.ets new file mode 100644 index 000000000..8834e6df8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1220.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1220 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1221.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1221.ets new file mode 100644 index 000000000..62b5f48a9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1221.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1221 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1222.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1222.ets new file mode 100644 index 000000000..83e53bdcd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1222.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1222 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1223.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1223.ets new file mode 100644 index 000000000..89496c6fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1223.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1223 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1224.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1224.ets new file mode 100644 index 000000000..84c733c85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1224.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1224 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1225.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1225.ets new file mode 100644 index 000000000..fc56a8da6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1225.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1225 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1226.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1226.ets new file mode 100644 index 000000000..b7ff31dc6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1226.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1226 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1227.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1227.ets new file mode 100644 index 000000000..530cb43ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1227.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1227 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1228.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1228.ets new file mode 100644 index 000000000..c55401db2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1228.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1228 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1229.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1229.ets new file mode 100644 index 000000000..aaa6d53bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1229.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1229 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile123.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile123.ets new file mode 100644 index 000000000..a92db345a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile123.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent246 } from "./manyImportFile246" +import { ManyImportComponent247 } from "./manyImportFile247" + + +@Component +export struct ManyImportComponent123 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent246() + ManyImportComponent247() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1230.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1230.ets new file mode 100644 index 000000000..cadaf0be3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1230.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1230 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1231.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1231.ets new file mode 100644 index 000000000..e151df232 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1231.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1231 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1232.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1232.ets new file mode 100644 index 000000000..c00012afc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1232.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1232 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1233.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1233.ets new file mode 100644 index 000000000..76cb160d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1233.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1233 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1234.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1234.ets new file mode 100644 index 000000000..c3603babd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1234.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1234 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1235.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1235.ets new file mode 100644 index 000000000..daa17375e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1235.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1235 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1236.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1236.ets new file mode 100644 index 000000000..ff795c5d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1236.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1236 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1237.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1237.ets new file mode 100644 index 000000000..09a89ad8d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1237.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1237 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1238.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1238.ets new file mode 100644 index 000000000..f4b86ed3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1238.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1238 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1239.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1239.ets new file mode 100644 index 000000000..8ee655ce3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1239.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1239 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile124.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile124.ets new file mode 100644 index 000000000..25b9d707b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile124.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent248 } from "./manyImportFile248" +import { ManyImportComponent249 } from "./manyImportFile249" + + +@Component +export struct ManyImportComponent124 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent248() + ManyImportComponent249() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1240.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1240.ets new file mode 100644 index 000000000..156415e0c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1240.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1240 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1241.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1241.ets new file mode 100644 index 000000000..37396993d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1241.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1241 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1242.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1242.ets new file mode 100644 index 000000000..26d2e8873 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1242.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1242 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1243.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1243.ets new file mode 100644 index 000000000..da09d679a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1243.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1243 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1244.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1244.ets new file mode 100644 index 000000000..a7ec51ab4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1244.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1244 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1245.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1245.ets new file mode 100644 index 000000000..5cb8a2e2f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1245.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1245 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1246.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1246.ets new file mode 100644 index 000000000..a8f20bfd1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1246.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1246 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1247.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1247.ets new file mode 100644 index 000000000..aaf3ca45a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1247.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1247 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1248.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1248.ets new file mode 100644 index 000000000..cdca53d2d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1248.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1248 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1249.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1249.ets new file mode 100644 index 000000000..1a528dda1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1249.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1249 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile125.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile125.ets new file mode 100644 index 000000000..34e53bf49 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile125.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent250 } from "./manyImportFile250" +import { ManyImportComponent251 } from "./manyImportFile251" + + +@Component +export struct ManyImportComponent125 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent250() + ManyImportComponent251() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1250.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1250.ets new file mode 100644 index 000000000..577f6c734 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1250.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1250 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1251.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1251.ets new file mode 100644 index 000000000..bfc05d980 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1251.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1251 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1252.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1252.ets new file mode 100644 index 000000000..822672cd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1252.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1252 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1253.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1253.ets new file mode 100644 index 000000000..ad6fd95ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1253.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1253 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1254.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1254.ets new file mode 100644 index 000000000..524c02e59 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1254.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1254 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1255.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1255.ets new file mode 100644 index 000000000..c39ed4c49 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1255.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1255 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1256.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1256.ets new file mode 100644 index 000000000..e1431689c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1256.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1256 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1257.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1257.ets new file mode 100644 index 000000000..c3f0b012a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1257.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1257 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1258.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1258.ets new file mode 100644 index 000000000..34f4381ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1258.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1258 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1259.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1259.ets new file mode 100644 index 000000000..97df00b9f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1259.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1259 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile126.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile126.ets new file mode 100644 index 000000000..7de431a61 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile126.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent252 } from "./manyImportFile252" +import { ManyImportComponent253 } from "./manyImportFile253" + + +@Component +export struct ManyImportComponent126 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent252() + ManyImportComponent253() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1260.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1260.ets new file mode 100644 index 000000000..bc912c96b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1260.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1260 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1261.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1261.ets new file mode 100644 index 000000000..3cf26e9f3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1261.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1261 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1262.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1262.ets new file mode 100644 index 000000000..f51a35558 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1262.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1262 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1263.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1263.ets new file mode 100644 index 000000000..41801a481 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1263.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1263 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1264.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1264.ets new file mode 100644 index 000000000..19fa7ff7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1264.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1264 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1265.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1265.ets new file mode 100644 index 000000000..119608f9c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1265.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1265 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1266.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1266.ets new file mode 100644 index 000000000..36b8e6ce3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1266.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1266 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1267.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1267.ets new file mode 100644 index 000000000..4a320daeb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1267.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1267 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1268.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1268.ets new file mode 100644 index 000000000..e818771d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1268.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1268 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1269.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1269.ets new file mode 100644 index 000000000..5cef4dd56 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1269.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1269 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile127.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile127.ets new file mode 100644 index 000000000..e0a470e11 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile127.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent254 } from "./manyImportFile254" +import { ManyImportComponent255 } from "./manyImportFile255" + + +@Component +export struct ManyImportComponent127 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent254() + ManyImportComponent255() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1270.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1270.ets new file mode 100644 index 000000000..55ec826ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1270.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1270 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1271.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1271.ets new file mode 100644 index 000000000..4822061de --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1271.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1271 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1272.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1272.ets new file mode 100644 index 000000000..6ef7961e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1272.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1272 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1273.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1273.ets new file mode 100644 index 000000000..10538119c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1273.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1273 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1274.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1274.ets new file mode 100644 index 000000000..ea4c9e7b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1274.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1274 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1275.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1275.ets new file mode 100644 index 000000000..7f4eb689d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1275.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1275 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1276.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1276.ets new file mode 100644 index 000000000..def7ffebd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1276.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1276 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1277.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1277.ets new file mode 100644 index 000000000..f399b4ebc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1277.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1277 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1278.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1278.ets new file mode 100644 index 000000000..55d26ea01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1278.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1278 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1279.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1279.ets new file mode 100644 index 000000000..4e4ebdfb2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1279.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1279 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile128.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile128.ets new file mode 100644 index 000000000..0fdf7053e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile128.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent256 } from "./manyImportFile256" +import { ManyImportComponent257 } from "./manyImportFile257" + + +@Component +export struct ManyImportComponent128 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent256() + ManyImportComponent257() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1280.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1280.ets new file mode 100644 index 000000000..5374ec993 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1280.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1280 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1281.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1281.ets new file mode 100644 index 000000000..76a9448bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1281.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1281 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1282.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1282.ets new file mode 100644 index 000000000..445af6953 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1282.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1282 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1283.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1283.ets new file mode 100644 index 000000000..0d471c187 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1283.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1283 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1284.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1284.ets new file mode 100644 index 000000000..c9a7c9725 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1284.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1284 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1285.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1285.ets new file mode 100644 index 000000000..04a83762f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1285.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1285 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1286.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1286.ets new file mode 100644 index 000000000..9df75ce46 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1286.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1286 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1287.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1287.ets new file mode 100644 index 000000000..1589f087c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1287.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1287 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1288.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1288.ets new file mode 100644 index 000000000..26f8291b4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1288.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1288 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1289.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1289.ets new file mode 100644 index 000000000..41321e59e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1289.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1289 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile129.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile129.ets new file mode 100644 index 000000000..0b4f1a817 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile129.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent258 } from "./manyImportFile258" +import { ManyImportComponent259 } from "./manyImportFile259" + + +@Component +export struct ManyImportComponent129 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent258() + ManyImportComponent259() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1290.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1290.ets new file mode 100644 index 000000000..aae97455b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1290.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1290 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1291.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1291.ets new file mode 100644 index 000000000..15bb50948 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1291.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1291 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1292.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1292.ets new file mode 100644 index 000000000..b91f313db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1292.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1292 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1293.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1293.ets new file mode 100644 index 000000000..3d49c6c22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1293.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1293 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1294.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1294.ets new file mode 100644 index 000000000..3d350cd80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1294.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1294 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1295.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1295.ets new file mode 100644 index 000000000..f22ba4dfe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1295.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1295 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1296.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1296.ets new file mode 100644 index 000000000..c3d68bfa0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1296.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1296 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1297.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1297.ets new file mode 100644 index 000000000..d66df11d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1297.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1297 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1298.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1298.ets new file mode 100644 index 000000000..4d6d6090b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1298.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1298 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1299.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1299.ets new file mode 100644 index 000000000..69464e812 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1299.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1299 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile13.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile13.ets new file mode 100644 index 000000000..42546deb1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile13.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent26 } from "./manyImportFile26" +import { ManyImportComponent27 } from "./manyImportFile27" + + +@Component +export struct ManyImportComponent13 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent26() + ManyImportComponent27() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile130.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile130.ets new file mode 100644 index 000000000..a296569da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile130.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent260 } from "./manyImportFile260" +import { ManyImportComponent261 } from "./manyImportFile261" + + +@Component +export struct ManyImportComponent130 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent260() + ManyImportComponent261() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1300.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1300.ets new file mode 100644 index 000000000..ff3286ba3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1300.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1300 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1301.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1301.ets new file mode 100644 index 000000000..e494d5ef2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1301.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1301 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1302.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1302.ets new file mode 100644 index 000000000..8a8d1f3cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1302.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1302 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1303.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1303.ets new file mode 100644 index 000000000..8dbb815a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1303.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1303 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1304.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1304.ets new file mode 100644 index 000000000..4d1cd937f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1304.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1304 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1305.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1305.ets new file mode 100644 index 000000000..96a55ac43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1305.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1305 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1306.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1306.ets new file mode 100644 index 000000000..2362c2a96 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1306.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1306 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1307.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1307.ets new file mode 100644 index 000000000..a5f0af70f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1307.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1307 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1308.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1308.ets new file mode 100644 index 000000000..a9592cedc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1308.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1308 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1309.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1309.ets new file mode 100644 index 000000000..3ed1370ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1309.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1309 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile131.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile131.ets new file mode 100644 index 000000000..647aedd10 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile131.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent262 } from "./manyImportFile262" +import { ManyImportComponent263 } from "./manyImportFile263" + + +@Component +export struct ManyImportComponent131 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent262() + ManyImportComponent263() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1310.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1310.ets new file mode 100644 index 000000000..33dfc95b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1310.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1310 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1311.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1311.ets new file mode 100644 index 000000000..212cae91e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1311.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1311 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1312.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1312.ets new file mode 100644 index 000000000..30ea66279 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1312.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1312 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1313.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1313.ets new file mode 100644 index 000000000..33f0a28f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1313.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1313 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1314.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1314.ets new file mode 100644 index 000000000..e6675d22b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1314.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1314 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1315.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1315.ets new file mode 100644 index 000000000..5a2c19af7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1315.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1315 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1316.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1316.ets new file mode 100644 index 000000000..e16aa9aac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1316.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1316 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1317.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1317.ets new file mode 100644 index 000000000..05f3a43b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1317.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1317 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1318.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1318.ets new file mode 100644 index 000000000..096bf150e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1318.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1318 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1319.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1319.ets new file mode 100644 index 000000000..cef270b58 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1319.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1319 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile132.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile132.ets new file mode 100644 index 000000000..d3a48189f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile132.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent264 } from "./manyImportFile264" +import { ManyImportComponent265 } from "./manyImportFile265" + + +@Component +export struct ManyImportComponent132 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent264() + ManyImportComponent265() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1320.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1320.ets new file mode 100644 index 000000000..40c8402a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1320.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1320 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1321.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1321.ets new file mode 100644 index 000000000..0b35c2d58 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1321.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1321 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1322.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1322.ets new file mode 100644 index 000000000..3179259ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1322.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1322 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1323.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1323.ets new file mode 100644 index 000000000..71e525115 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1323.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1323 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1324.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1324.ets new file mode 100644 index 000000000..9a70c0c6f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1324.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1324 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1325.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1325.ets new file mode 100644 index 000000000..d94b0ed03 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1325.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1325 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1326.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1326.ets new file mode 100644 index 000000000..f88925462 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1326.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1326 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1327.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1327.ets new file mode 100644 index 000000000..7291d6f77 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1327.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1327 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1328.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1328.ets new file mode 100644 index 000000000..4259e85f7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1328.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1328 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1329.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1329.ets new file mode 100644 index 000000000..1b9f2fab0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1329.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1329 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile133.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile133.ets new file mode 100644 index 000000000..2cb7e872d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile133.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent266 } from "./manyImportFile266" +import { ManyImportComponent267 } from "./manyImportFile267" + + +@Component +export struct ManyImportComponent133 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent266() + ManyImportComponent267() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1330.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1330.ets new file mode 100644 index 000000000..4c7b5f4b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1330.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1330 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1331.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1331.ets new file mode 100644 index 000000000..27b230b0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1331.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1331 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1332.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1332.ets new file mode 100644 index 000000000..744b3206c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1332.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1332 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1333.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1333.ets new file mode 100644 index 000000000..530489378 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1333.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1333 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1334.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1334.ets new file mode 100644 index 000000000..d6638b680 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1334.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1334 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1335.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1335.ets new file mode 100644 index 000000000..1d13f2f99 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1335.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1335 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1336.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1336.ets new file mode 100644 index 000000000..d01557cf2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1336.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1336 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1337.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1337.ets new file mode 100644 index 000000000..6335a1a0e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1337.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1337 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1338.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1338.ets new file mode 100644 index 000000000..da2706c91 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1338.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1338 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1339.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1339.ets new file mode 100644 index 000000000..c30711516 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1339.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1339 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile134.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile134.ets new file mode 100644 index 000000000..7f9d0bb7a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile134.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent268 } from "./manyImportFile268" +import { ManyImportComponent269 } from "./manyImportFile269" + + +@Component +export struct ManyImportComponent134 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent268() + ManyImportComponent269() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1340.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1340.ets new file mode 100644 index 000000000..f6bd358b7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1340.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1340 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1341.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1341.ets new file mode 100644 index 000000000..1ac684ea0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1341.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1341 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1342.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1342.ets new file mode 100644 index 000000000..371708711 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1342.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1342 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1343.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1343.ets new file mode 100644 index 000000000..ed7aff7e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1343.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1343 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1344.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1344.ets new file mode 100644 index 000000000..24e75dd1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1344.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1344 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1345.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1345.ets new file mode 100644 index 000000000..ebea7b8bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1345.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1345 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1346.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1346.ets new file mode 100644 index 000000000..d1db86ae0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1346.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1346 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1347.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1347.ets new file mode 100644 index 000000000..16c9d14dd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1347.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1347 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1348.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1348.ets new file mode 100644 index 000000000..e1e6c7edc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1348.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1348 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1349.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1349.ets new file mode 100644 index 000000000..7a144e92e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1349.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1349 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile135.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile135.ets new file mode 100644 index 000000000..7bab463ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile135.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent270 } from "./manyImportFile270" +import { ManyImportComponent271 } from "./manyImportFile271" + + +@Component +export struct ManyImportComponent135 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent270() + ManyImportComponent271() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1350.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1350.ets new file mode 100644 index 000000000..27ebf8ad4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1350.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1350 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1351.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1351.ets new file mode 100644 index 000000000..38b96bd28 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1351.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1351 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1352.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1352.ets new file mode 100644 index 000000000..11902cdf7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1352.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1352 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1353.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1353.ets new file mode 100644 index 000000000..bc5eab1f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1353.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1353 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1354.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1354.ets new file mode 100644 index 000000000..0b757bf78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1354.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1354 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1355.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1355.ets new file mode 100644 index 000000000..776e80d2f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1355.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1355 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1356.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1356.ets new file mode 100644 index 000000000..fe8f6afcb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1356.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1356 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1357.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1357.ets new file mode 100644 index 000000000..d0382838a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1357.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1357 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1358.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1358.ets new file mode 100644 index 000000000..1b100211f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1358.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1358 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1359.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1359.ets new file mode 100644 index 000000000..5c67110e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1359.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1359 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile136.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile136.ets new file mode 100644 index 000000000..793bd0055 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile136.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent272 } from "./manyImportFile272" +import { ManyImportComponent273 } from "./manyImportFile273" + + +@Component +export struct ManyImportComponent136 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent272() + ManyImportComponent273() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1360.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1360.ets new file mode 100644 index 000000000..d5cd91760 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1360.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1360 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1361.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1361.ets new file mode 100644 index 000000000..3499288f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1361.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1361 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1362.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1362.ets new file mode 100644 index 000000000..d7caac0fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1362.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1362 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1363.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1363.ets new file mode 100644 index 000000000..d66e6c30a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1363.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1363 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1364.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1364.ets new file mode 100644 index 000000000..2a6d4b418 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1364.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1364 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1365.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1365.ets new file mode 100644 index 000000000..af68cde1a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1365.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1365 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1366.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1366.ets new file mode 100644 index 000000000..1ff898f1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1366.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1366 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1367.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1367.ets new file mode 100644 index 000000000..1c4e49779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1367.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1367 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1368.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1368.ets new file mode 100644 index 000000000..cfe3b461c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1368.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1368 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1369.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1369.ets new file mode 100644 index 000000000..b1c7fcf40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1369.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1369 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile137.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile137.ets new file mode 100644 index 000000000..8b73b323a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile137.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent274 } from "./manyImportFile274" +import { ManyImportComponent275 } from "./manyImportFile275" + + +@Component +export struct ManyImportComponent137 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent274() + ManyImportComponent275() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1370.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1370.ets new file mode 100644 index 000000000..68e31675d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1370.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1370 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1371.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1371.ets new file mode 100644 index 000000000..bf2dd4d1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1371.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1371 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1372.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1372.ets new file mode 100644 index 000000000..028bc7d74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1372.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1372 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1373.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1373.ets new file mode 100644 index 000000000..40e3e6cbf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1373.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1373 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1374.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1374.ets new file mode 100644 index 000000000..69ee9bf4b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1374.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1374 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1375.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1375.ets new file mode 100644 index 000000000..a8b65923a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1375.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1375 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1376.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1376.ets new file mode 100644 index 000000000..4c4bfd9df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1376.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1376 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1377.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1377.ets new file mode 100644 index 000000000..c3a368983 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1377.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1377 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1378.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1378.ets new file mode 100644 index 000000000..ec5a44f53 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1378.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1378 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1379.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1379.ets new file mode 100644 index 000000000..bdbec5028 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1379.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1379 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile138.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile138.ets new file mode 100644 index 000000000..1f12bd418 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile138.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent276 } from "./manyImportFile276" +import { ManyImportComponent277 } from "./manyImportFile277" + + +@Component +export struct ManyImportComponent138 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent276() + ManyImportComponent277() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1380.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1380.ets new file mode 100644 index 000000000..ef3f5890c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1380.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1380 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1381.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1381.ets new file mode 100644 index 000000000..5efe04253 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1381.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1381 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1382.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1382.ets new file mode 100644 index 000000000..aa3c3d90f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1382.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1382 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1383.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1383.ets new file mode 100644 index 000000000..dd7215aef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1383.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1383 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1384.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1384.ets new file mode 100644 index 000000000..5861031c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1384.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1384 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1385.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1385.ets new file mode 100644 index 000000000..d6145481c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1385.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1385 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1386.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1386.ets new file mode 100644 index 000000000..31df3d839 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1386.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1386 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1387.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1387.ets new file mode 100644 index 000000000..f6082ac2e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1387.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1387 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1388.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1388.ets new file mode 100644 index 000000000..408031277 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1388.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1388 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1389.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1389.ets new file mode 100644 index 000000000..59ae22e20 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1389.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1389 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile139.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile139.ets new file mode 100644 index 000000000..b8f965202 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile139.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent278 } from "./manyImportFile278" +import { ManyImportComponent279 } from "./manyImportFile279" + + +@Component +export struct ManyImportComponent139 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent278() + ManyImportComponent279() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1390.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1390.ets new file mode 100644 index 000000000..68789679c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1390.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1390 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1391.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1391.ets new file mode 100644 index 000000000..b6dfcf564 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1391.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1391 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1392.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1392.ets new file mode 100644 index 000000000..d1c6e507e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1392.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1392 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1393.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1393.ets new file mode 100644 index 000000000..2848238bc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1393.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1393 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1394.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1394.ets new file mode 100644 index 000000000..f669010d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1394.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1394 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1395.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1395.ets new file mode 100644 index 000000000..0361527ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1395.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1395 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1396.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1396.ets new file mode 100644 index 000000000..610743564 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1396.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1396 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1397.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1397.ets new file mode 100644 index 000000000..cd9559716 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1397.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1397 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1398.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1398.ets new file mode 100644 index 000000000..445e87ad1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1398.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1398 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1399.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1399.ets new file mode 100644 index 000000000..4b2970cc7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1399.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1399 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile14.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile14.ets new file mode 100644 index 000000000..ded742e9c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile14.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent28 } from "./manyImportFile28" +import { ManyImportComponent29 } from "./manyImportFile29" + + +@Component +export struct ManyImportComponent14 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent28() + ManyImportComponent29() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile140.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile140.ets new file mode 100644 index 000000000..f4b0bc8bf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile140.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent280 } from "./manyImportFile280" +import { ManyImportComponent281 } from "./manyImportFile281" + + +@Component +export struct ManyImportComponent140 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent280() + ManyImportComponent281() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1400.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1400.ets new file mode 100644 index 000000000..8233be5e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1400.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1400 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1401.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1401.ets new file mode 100644 index 000000000..378ab24b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1401.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1401 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1402.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1402.ets new file mode 100644 index 000000000..0bf7af7c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1402.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1402 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1403.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1403.ets new file mode 100644 index 000000000..6cb605583 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1403.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1403 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1404.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1404.ets new file mode 100644 index 000000000..2bfaf130a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1404.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1404 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1405.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1405.ets new file mode 100644 index 000000000..d96021369 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1405.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1405 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1406.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1406.ets new file mode 100644 index 000000000..a3f6930fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1406.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1406 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1407.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1407.ets new file mode 100644 index 000000000..c62edee3c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1407.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1407 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1408.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1408.ets new file mode 100644 index 000000000..692238f61 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1408.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1408 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1409.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1409.ets new file mode 100644 index 000000000..5268711df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1409.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1409 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile141.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile141.ets new file mode 100644 index 000000000..92c26641c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile141.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent282 } from "./manyImportFile282" +import { ManyImportComponent283 } from "./manyImportFile283" + + +@Component +export struct ManyImportComponent141 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent282() + ManyImportComponent283() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1410.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1410.ets new file mode 100644 index 000000000..8e7cd22ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1410.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1410 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1411.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1411.ets new file mode 100644 index 000000000..1e06dfd42 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1411.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1411 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1412.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1412.ets new file mode 100644 index 000000000..1ae2e82ce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1412.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1412 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1413.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1413.ets new file mode 100644 index 000000000..5c3ebafd5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1413.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1413 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1414.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1414.ets new file mode 100644 index 000000000..8d713d709 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1414.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1414 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1415.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1415.ets new file mode 100644 index 000000000..884c13451 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1415.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1415 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1416.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1416.ets new file mode 100644 index 000000000..a1bf42031 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1416.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1416 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1417.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1417.ets new file mode 100644 index 000000000..64a53f747 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1417.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1417 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1418.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1418.ets new file mode 100644 index 000000000..e73789e92 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1418.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1418 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1419.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1419.ets new file mode 100644 index 000000000..d7c1d0e1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1419.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1419 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile142.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile142.ets new file mode 100644 index 000000000..118f9c91f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile142.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent284 } from "./manyImportFile284" +import { ManyImportComponent285 } from "./manyImportFile285" + + +@Component +export struct ManyImportComponent142 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent284() + ManyImportComponent285() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1420.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1420.ets new file mode 100644 index 000000000..eee8a92e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1420.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1420 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1421.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1421.ets new file mode 100644 index 000000000..9cd67501c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1421.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1421 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1422.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1422.ets new file mode 100644 index 000000000..3ab9ba5e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1422.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1422 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1423.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1423.ets new file mode 100644 index 000000000..0074b28f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1423.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1423 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1424.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1424.ets new file mode 100644 index 000000000..a74b2b973 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1424.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1424 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1425.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1425.ets new file mode 100644 index 000000000..60dc46de4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1425.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1425 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1426.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1426.ets new file mode 100644 index 000000000..bb462e095 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1426.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1426 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1427.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1427.ets new file mode 100644 index 000000000..222297893 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1427.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1427 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1428.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1428.ets new file mode 100644 index 000000000..9f547672f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1428.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1428 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1429.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1429.ets new file mode 100644 index 000000000..e4913279a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1429.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1429 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile143.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile143.ets new file mode 100644 index 000000000..790f5b16c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile143.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent286 } from "./manyImportFile286" +import { ManyImportComponent287 } from "./manyImportFile287" + + +@Component +export struct ManyImportComponent143 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent286() + ManyImportComponent287() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1430.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1430.ets new file mode 100644 index 000000000..fc919807b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1430.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1430 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1431.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1431.ets new file mode 100644 index 000000000..6ddf571ed --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1431.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1431 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1432.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1432.ets new file mode 100644 index 000000000..7427a6405 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1432.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1432 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1433.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1433.ets new file mode 100644 index 000000000..adb319e7e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1433.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1433 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1434.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1434.ets new file mode 100644 index 000000000..0aee5a94d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1434.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1434 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1435.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1435.ets new file mode 100644 index 000000000..e657b253f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1435.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1435 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1436.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1436.ets new file mode 100644 index 000000000..841cdd5a2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1436.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1436 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1437.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1437.ets new file mode 100644 index 000000000..ab79dfa8d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1437.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1437 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1438.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1438.ets new file mode 100644 index 000000000..e4d29a7c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1438.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1438 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1439.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1439.ets new file mode 100644 index 000000000..bb5d5a7fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1439.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1439 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile144.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile144.ets new file mode 100644 index 000000000..fef9aff8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile144.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent288 } from "./manyImportFile288" +import { ManyImportComponent289 } from "./manyImportFile289" + + +@Component +export struct ManyImportComponent144 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent288() + ManyImportComponent289() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1440.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1440.ets new file mode 100644 index 000000000..8375f5bf9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1440.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1440 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1441.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1441.ets new file mode 100644 index 000000000..f0fbbd4c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1441.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1441 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1442.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1442.ets new file mode 100644 index 000000000..83b776a12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1442.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1442 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1443.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1443.ets new file mode 100644 index 000000000..30624b95e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1443.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1443 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1444.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1444.ets new file mode 100644 index 000000000..770071d00 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1444.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1444 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1445.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1445.ets new file mode 100644 index 000000000..e8c1a3c8e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1445.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1445 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1446.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1446.ets new file mode 100644 index 000000000..bf9391fe3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1446.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1446 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1447.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1447.ets new file mode 100644 index 000000000..d7ec8ec95 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1447.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1447 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1448.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1448.ets new file mode 100644 index 000000000..a721296cd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1448.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1448 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1449.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1449.ets new file mode 100644 index 000000000..f42a7225f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1449.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1449 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile145.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile145.ets new file mode 100644 index 000000000..111bbd1e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile145.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent290 } from "./manyImportFile290" +import { ManyImportComponent291 } from "./manyImportFile291" + + +@Component +export struct ManyImportComponent145 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent290() + ManyImportComponent291() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1450.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1450.ets new file mode 100644 index 000000000..d74aef4d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1450.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1450 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1451.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1451.ets new file mode 100644 index 000000000..e5ef68194 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1451.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1451 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1452.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1452.ets new file mode 100644 index 000000000..bb098db8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1452.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1452 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1453.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1453.ets new file mode 100644 index 000000000..cdcf78941 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1453.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1453 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1454.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1454.ets new file mode 100644 index 000000000..8b891ac21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1454.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1454 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1455.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1455.ets new file mode 100644 index 000000000..c199bf436 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1455.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1455 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1456.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1456.ets new file mode 100644 index 000000000..372d98420 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1456.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1456 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1457.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1457.ets new file mode 100644 index 000000000..64d1c1ce1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1457.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1457 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1458.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1458.ets new file mode 100644 index 000000000..4ef7e016e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1458.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1458 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1459.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1459.ets new file mode 100644 index 000000000..3d0917ece --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1459.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1459 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile146.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile146.ets new file mode 100644 index 000000000..6cb6a31a5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile146.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent292 } from "./manyImportFile292" +import { ManyImportComponent293 } from "./manyImportFile293" + + +@Component +export struct ManyImportComponent146 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent292() + ManyImportComponent293() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1460.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1460.ets new file mode 100644 index 000000000..826768c09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1460.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1460 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1461.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1461.ets new file mode 100644 index 000000000..d1b89f3d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1461.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1461 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1462.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1462.ets new file mode 100644 index 000000000..41f753fd5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1462.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1462 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1463.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1463.ets new file mode 100644 index 000000000..061d6e739 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1463.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1463 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1464.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1464.ets new file mode 100644 index 000000000..85458dc48 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1464.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1464 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1465.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1465.ets new file mode 100644 index 000000000..c749b54b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1465.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1465 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1466.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1466.ets new file mode 100644 index 000000000..5fe5e8255 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1466.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1466 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1467.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1467.ets new file mode 100644 index 000000000..947300e63 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1467.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1467 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1468.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1468.ets new file mode 100644 index 000000000..785ab02ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1468.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1468 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1469.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1469.ets new file mode 100644 index 000000000..684a0787b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1469.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1469 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile147.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile147.ets new file mode 100644 index 000000000..30581d4eb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile147.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent294 } from "./manyImportFile294" +import { ManyImportComponent295 } from "./manyImportFile295" + + +@Component +export struct ManyImportComponent147 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent294() + ManyImportComponent295() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1470.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1470.ets new file mode 100644 index 000000000..ebf7bb811 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1470.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1470 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1471.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1471.ets new file mode 100644 index 000000000..42a46eb08 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1471.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1471 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1472.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1472.ets new file mode 100644 index 000000000..e926444fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1472.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1472 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1473.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1473.ets new file mode 100644 index 000000000..4c1abf5d3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1473.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1473 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1474.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1474.ets new file mode 100644 index 000000000..6f0afffeb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1474.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1474 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1475.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1475.ets new file mode 100644 index 000000000..ea767adcf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1475.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1475 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1476.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1476.ets new file mode 100644 index 000000000..95a7553e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1476.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1476 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1477.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1477.ets new file mode 100644 index 000000000..ba5d1c565 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1477.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1477 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1478.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1478.ets new file mode 100644 index 000000000..ea04ed96c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1478.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1478 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1479.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1479.ets new file mode 100644 index 000000000..9c0a06be5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1479.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1479 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile148.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile148.ets new file mode 100644 index 000000000..7e08b735f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile148.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent296 } from "./manyImportFile296" +import { ManyImportComponent297 } from "./manyImportFile297" + + +@Component +export struct ManyImportComponent148 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent296() + ManyImportComponent297() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1480.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1480.ets new file mode 100644 index 000000000..8bf3ec2c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1480.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1480 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1481.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1481.ets new file mode 100644 index 000000000..2b127b703 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1481.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1481 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1482.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1482.ets new file mode 100644 index 000000000..4a52195c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1482.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1482 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1483.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1483.ets new file mode 100644 index 000000000..0ae3105e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1483.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1483 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1484.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1484.ets new file mode 100644 index 000000000..8efad3b2e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1484.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1484 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1485.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1485.ets new file mode 100644 index 000000000..0686db281 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1485.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1485 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1486.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1486.ets new file mode 100644 index 000000000..e21c07fc7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1486.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1486 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1487.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1487.ets new file mode 100644 index 000000000..bd3f2c28c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1487.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1487 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1488.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1488.ets new file mode 100644 index 000000000..09ed8e15f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1488.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1488 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1489.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1489.ets new file mode 100644 index 000000000..e85735ace --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1489.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1489 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile149.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile149.ets new file mode 100644 index 000000000..92723f3c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile149.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent298 } from "./manyImportFile298" +import { ManyImportComponent299 } from "./manyImportFile299" + + +@Component +export struct ManyImportComponent149 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent298() + ManyImportComponent299() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1490.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1490.ets new file mode 100644 index 000000000..fd8882b43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1490.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1490 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1491.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1491.ets new file mode 100644 index 000000000..aa225cce0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1491.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1491 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1492.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1492.ets new file mode 100644 index 000000000..6594270c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1492.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1492 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1493.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1493.ets new file mode 100644 index 000000000..e8b2de4b4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1493.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1493 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1494.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1494.ets new file mode 100644 index 000000000..d3cf868cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1494.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1494 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1495.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1495.ets new file mode 100644 index 000000000..51fb65ee3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1495.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1495 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1496.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1496.ets new file mode 100644 index 000000000..7eff9756c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1496.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1496 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1497.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1497.ets new file mode 100644 index 000000000..e7c179380 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1497.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1497 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1498.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1498.ets new file mode 100644 index 000000000..0f81629fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1498.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1498 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1499.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1499.ets new file mode 100644 index 000000000..cb3d5becb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1499.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1499 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile15.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile15.ets new file mode 100644 index 000000000..695916005 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile15.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent30 } from "./manyImportFile30" +import { ManyImportComponent31 } from "./manyImportFile31" + + +@Component +export struct ManyImportComponent15 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent30() + ManyImportComponent31() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile150.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile150.ets new file mode 100644 index 000000000..5a25ba7b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile150.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent300 } from "./manyImportFile300" +import { ManyImportComponent301 } from "./manyImportFile301" + + +@Component +export struct ManyImportComponent150 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent300() + ManyImportComponent301() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1500.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1500.ets new file mode 100644 index 000000000..d9a9378a0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1500.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1500 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1501.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1501.ets new file mode 100644 index 000000000..c58827189 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1501.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1501 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1502.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1502.ets new file mode 100644 index 000000000..d91da7b89 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1502.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1502 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1503.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1503.ets new file mode 100644 index 000000000..59ca279ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1503.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1503 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1504.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1504.ets new file mode 100644 index 000000000..bcc263dc0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1504.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1504 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1505.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1505.ets new file mode 100644 index 000000000..ac21dc4a7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1505.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1505 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1506.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1506.ets new file mode 100644 index 000000000..d3c6465b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1506.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1506 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1507.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1507.ets new file mode 100644 index 000000000..065261109 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1507.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1507 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1508.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1508.ets new file mode 100644 index 000000000..7c616e572 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1508.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1508 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1509.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1509.ets new file mode 100644 index 000000000..5be1bb476 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1509.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1509 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile151.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile151.ets new file mode 100644 index 000000000..77f68bf42 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile151.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent302 } from "./manyImportFile302" +import { ManyImportComponent303 } from "./manyImportFile303" + + +@Component +export struct ManyImportComponent151 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent302() + ManyImportComponent303() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1510.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1510.ets new file mode 100644 index 000000000..c7decfabf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1510.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1510 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1511.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1511.ets new file mode 100644 index 000000000..fcbdfb5cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1511.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1511 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1512.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1512.ets new file mode 100644 index 000000000..06557b4b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1512.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1512 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1513.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1513.ets new file mode 100644 index 000000000..821ecf7ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1513.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1513 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1514.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1514.ets new file mode 100644 index 000000000..a810fcb1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1514.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1514 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1515.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1515.ets new file mode 100644 index 000000000..fb264870d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1515.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1515 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1516.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1516.ets new file mode 100644 index 000000000..b84276bd8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1516.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1516 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1517.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1517.ets new file mode 100644 index 000000000..8a2049636 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1517.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1517 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1518.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1518.ets new file mode 100644 index 000000000..7414ed23a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1518.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1518 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1519.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1519.ets new file mode 100644 index 000000000..a235b2851 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1519.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1519 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile152.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile152.ets new file mode 100644 index 000000000..726716805 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile152.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent304 } from "./manyImportFile304" +import { ManyImportComponent305 } from "./manyImportFile305" + + +@Component +export struct ManyImportComponent152 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent304() + ManyImportComponent305() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1520.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1520.ets new file mode 100644 index 000000000..0b40ae160 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1520.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1520 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1521.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1521.ets new file mode 100644 index 000000000..dafced3b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1521.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1521 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1522.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1522.ets new file mode 100644 index 000000000..0455ef1da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1522.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1522 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1523.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1523.ets new file mode 100644 index 000000000..fbef0faa2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1523.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1523 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1524.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1524.ets new file mode 100644 index 000000000..244f3077d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1524.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1524 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1525.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1525.ets new file mode 100644 index 000000000..b3d5fa6b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1525.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1525 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1526.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1526.ets new file mode 100644 index 000000000..1fada720d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1526.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1526 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1527.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1527.ets new file mode 100644 index 000000000..7688c7252 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1527.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1527 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1528.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1528.ets new file mode 100644 index 000000000..d5b061e78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1528.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1528 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1529.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1529.ets new file mode 100644 index 000000000..5b6ff0eee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1529.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1529 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile153.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile153.ets new file mode 100644 index 000000000..ad9ecdd1c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile153.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent306 } from "./manyImportFile306" +import { ManyImportComponent307 } from "./manyImportFile307" + + +@Component +export struct ManyImportComponent153 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent306() + ManyImportComponent307() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1530.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1530.ets new file mode 100644 index 000000000..d4f0032d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1530.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1530 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1531.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1531.ets new file mode 100644 index 000000000..a0a05c4b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1531.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1531 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1532.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1532.ets new file mode 100644 index 000000000..df27ea092 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1532.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1532 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1533.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1533.ets new file mode 100644 index 000000000..86c92aa23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1533.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1533 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1534.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1534.ets new file mode 100644 index 000000000..f783a15ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1534.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1534 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1535.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1535.ets new file mode 100644 index 000000000..46cf86848 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1535.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1535 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1536.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1536.ets new file mode 100644 index 000000000..0959ec4bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1536.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1536 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1537.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1537.ets new file mode 100644 index 000000000..3773e77dd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1537.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1537 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1538.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1538.ets new file mode 100644 index 000000000..8fb9dd8ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1538.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1538 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1539.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1539.ets new file mode 100644 index 000000000..1ec77186a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1539.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1539 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile154.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile154.ets new file mode 100644 index 000000000..b19749d66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile154.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent308 } from "./manyImportFile308" +import { ManyImportComponent309 } from "./manyImportFile309" + + +@Component +export struct ManyImportComponent154 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent308() + ManyImportComponent309() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1540.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1540.ets new file mode 100644 index 000000000..8ccfd76d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1540.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1540 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1541.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1541.ets new file mode 100644 index 000000000..9c4836799 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1541.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1541 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1542.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1542.ets new file mode 100644 index 000000000..d6f1e5767 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1542.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1542 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1543.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1543.ets new file mode 100644 index 000000000..5975e2765 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1543.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1543 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1544.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1544.ets new file mode 100644 index 000000000..099128503 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1544.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1544 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1545.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1545.ets new file mode 100644 index 000000000..8b2da66b7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1545.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1545 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1546.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1546.ets new file mode 100644 index 000000000..48f5b0f9f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1546.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1546 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1547.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1547.ets new file mode 100644 index 000000000..a9b32e7c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1547.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1547 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1548.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1548.ets new file mode 100644 index 000000000..d885ca08e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1548.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1548 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1549.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1549.ets new file mode 100644 index 000000000..ed8686eb1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1549.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1549 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile155.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile155.ets new file mode 100644 index 000000000..480d34609 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile155.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent310 } from "./manyImportFile310" +import { ManyImportComponent311 } from "./manyImportFile311" + + +@Component +export struct ManyImportComponent155 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent310() + ManyImportComponent311() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1550.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1550.ets new file mode 100644 index 000000000..90b886fff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1550.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1550 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1551.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1551.ets new file mode 100644 index 000000000..e6061af22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1551.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1551 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1552.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1552.ets new file mode 100644 index 000000000..669c00cbe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1552.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1552 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1553.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1553.ets new file mode 100644 index 000000000..20578e4cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1553.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1553 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1554.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1554.ets new file mode 100644 index 000000000..b67b58ba9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1554.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1554 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1555.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1555.ets new file mode 100644 index 000000000..59f78cef7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1555.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1555 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1556.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1556.ets new file mode 100644 index 000000000..2a09bf847 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1556.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1556 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1557.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1557.ets new file mode 100644 index 000000000..fe658fac6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1557.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1557 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1558.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1558.ets new file mode 100644 index 000000000..9a33959fd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1558.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1558 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1559.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1559.ets new file mode 100644 index 000000000..7acb0092e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1559.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1559 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile156.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile156.ets new file mode 100644 index 000000000..17308c6b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile156.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent312 } from "./manyImportFile312" +import { ManyImportComponent313 } from "./manyImportFile313" + + +@Component +export struct ManyImportComponent156 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent312() + ManyImportComponent313() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1560.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1560.ets new file mode 100644 index 000000000..efc9c5730 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1560.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1560 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1561.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1561.ets new file mode 100644 index 000000000..26d6eb45d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1561.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1561 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1562.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1562.ets new file mode 100644 index 000000000..f7d7b88d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1562.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1562 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1563.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1563.ets new file mode 100644 index 000000000..a5feaded3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1563.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1563 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1564.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1564.ets new file mode 100644 index 000000000..c7fcddca1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1564.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1564 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1565.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1565.ets new file mode 100644 index 000000000..562ecf821 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1565.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1565 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1566.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1566.ets new file mode 100644 index 000000000..39e7f9695 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1566.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1566 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1567.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1567.ets new file mode 100644 index 000000000..669586769 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1567.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1567 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1568.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1568.ets new file mode 100644 index 000000000..c53b47f22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1568.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1568 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1569.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1569.ets new file mode 100644 index 000000000..1f806f582 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1569.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1569 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile157.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile157.ets new file mode 100644 index 000000000..be5f4a08e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile157.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent314 } from "./manyImportFile314" +import { ManyImportComponent315 } from "./manyImportFile315" + + +@Component +export struct ManyImportComponent157 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent314() + ManyImportComponent315() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1570.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1570.ets new file mode 100644 index 000000000..4f21700c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1570.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1570 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1571.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1571.ets new file mode 100644 index 000000000..827624900 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1571.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1571 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1572.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1572.ets new file mode 100644 index 000000000..910d6226b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1572.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1572 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1573.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1573.ets new file mode 100644 index 000000000..d32741594 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1573.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1573 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1574.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1574.ets new file mode 100644 index 000000000..26e231281 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1574.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1574 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1575.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1575.ets new file mode 100644 index 000000000..b118ae280 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1575.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1575 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1576.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1576.ets new file mode 100644 index 000000000..604c25c3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1576.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1576 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1577.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1577.ets new file mode 100644 index 000000000..d1dc1eddf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1577.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1577 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1578.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1578.ets new file mode 100644 index 000000000..42b92dad4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1578.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1578 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1579.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1579.ets new file mode 100644 index 000000000..a5e9eeb85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1579.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1579 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile158.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile158.ets new file mode 100644 index 000000000..273a4b068 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile158.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent316 } from "./manyImportFile316" +import { ManyImportComponent317 } from "./manyImportFile317" + + +@Component +export struct ManyImportComponent158 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent316() + ManyImportComponent317() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1580.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1580.ets new file mode 100644 index 000000000..a1bb33849 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1580.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1580 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1581.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1581.ets new file mode 100644 index 000000000..3019778fe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1581.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1581 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1582.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1582.ets new file mode 100644 index 000000000..a87acff58 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1582.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1582 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1583.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1583.ets new file mode 100644 index 000000000..5499eaed3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1583.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1583 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1584.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1584.ets new file mode 100644 index 000000000..d566cf52c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1584.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1584 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1585.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1585.ets new file mode 100644 index 000000000..27cfc87ab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1585.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1585 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1586.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1586.ets new file mode 100644 index 000000000..53240d88b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1586.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1586 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1587.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1587.ets new file mode 100644 index 000000000..db1507962 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1587.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1587 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1588.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1588.ets new file mode 100644 index 000000000..65a042a54 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1588.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1588 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1589.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1589.ets new file mode 100644 index 000000000..da7bcea81 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1589.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1589 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile159.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile159.ets new file mode 100644 index 000000000..c4427dbec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile159.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent318 } from "./manyImportFile318" +import { ManyImportComponent319 } from "./manyImportFile319" + + +@Component +export struct ManyImportComponent159 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent318() + ManyImportComponent319() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1590.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1590.ets new file mode 100644 index 000000000..60d2325e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1590.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1590 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1591.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1591.ets new file mode 100644 index 000000000..7685c8cc1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1591.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1591 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1592.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1592.ets new file mode 100644 index 000000000..ea05e2560 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1592.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1592 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1593.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1593.ets new file mode 100644 index 000000000..870692cec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1593.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1593 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1594.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1594.ets new file mode 100644 index 000000000..a8a236115 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1594.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1594 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1595.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1595.ets new file mode 100644 index 000000000..ce998cb68 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1595.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1595 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1596.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1596.ets new file mode 100644 index 000000000..f71a469d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1596.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1596 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1597.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1597.ets new file mode 100644 index 000000000..e35adfd3b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1597.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1597 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1598.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1598.ets new file mode 100644 index 000000000..f07c4dfcc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1598.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1598 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1599.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1599.ets new file mode 100644 index 000000000..b395477d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1599.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1599 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile16.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile16.ets new file mode 100644 index 000000000..42c7f6a21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile16.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent32 } from "./manyImportFile32" +import { ManyImportComponent33 } from "./manyImportFile33" + + +@Component +export struct ManyImportComponent16 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent32() + ManyImportComponent33() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile160.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile160.ets new file mode 100644 index 000000000..a82d0ed74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile160.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent320 } from "./manyImportFile320" +import { ManyImportComponent321 } from "./manyImportFile321" + + +@Component +export struct ManyImportComponent160 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent320() + ManyImportComponent321() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1600.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1600.ets new file mode 100644 index 000000000..b15c55312 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1600.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1600 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1601.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1601.ets new file mode 100644 index 000000000..f5b277338 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1601.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1601 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1602.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1602.ets new file mode 100644 index 000000000..b91577e54 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1602.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1602 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1603.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1603.ets new file mode 100644 index 000000000..51397995f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1603.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1603 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1604.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1604.ets new file mode 100644 index 000000000..e87a8ec84 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1604.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1604 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1605.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1605.ets new file mode 100644 index 000000000..4c4dfdb5a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1605.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1605 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1606.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1606.ets new file mode 100644 index 000000000..8e9341070 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1606.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1606 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1607.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1607.ets new file mode 100644 index 000000000..26459a724 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1607.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1607 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1608.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1608.ets new file mode 100644 index 000000000..2b0de022f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1608.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1608 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1609.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1609.ets new file mode 100644 index 000000000..2eb258e34 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1609.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1609 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile161.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile161.ets new file mode 100644 index 000000000..3accc7659 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile161.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent322 } from "./manyImportFile322" +import { ManyImportComponent323 } from "./manyImportFile323" + + +@Component +export struct ManyImportComponent161 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent322() + ManyImportComponent323() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1610.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1610.ets new file mode 100644 index 000000000..69f7cdda7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1610.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1610 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1611.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1611.ets new file mode 100644 index 000000000..9845d9467 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1611.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1611 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1612.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1612.ets new file mode 100644 index 000000000..09a6d6a76 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1612.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1612 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1613.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1613.ets new file mode 100644 index 000000000..9359ae034 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1613.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1613 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1614.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1614.ets new file mode 100644 index 000000000..c13a53735 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1614.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1614 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1615.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1615.ets new file mode 100644 index 000000000..43c8ba5e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1615.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1615 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1616.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1616.ets new file mode 100644 index 000000000..679bb7d85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1616.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1616 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1617.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1617.ets new file mode 100644 index 000000000..cdd13ee12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1617.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1617 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1618.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1618.ets new file mode 100644 index 000000000..ee216b3f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1618.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1618 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1619.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1619.ets new file mode 100644 index 000000000..72cdfc5b7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1619.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1619 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile162.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile162.ets new file mode 100644 index 000000000..2e527f665 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile162.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent324 } from "./manyImportFile324" +import { ManyImportComponent325 } from "./manyImportFile325" + + +@Component +export struct ManyImportComponent162 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent324() + ManyImportComponent325() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1620.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1620.ets new file mode 100644 index 000000000..282b9ab79 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1620.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1620 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1621.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1621.ets new file mode 100644 index 000000000..ac19ac81f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1621.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1621 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1622.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1622.ets new file mode 100644 index 000000000..bd182d6f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1622.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1622 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1623.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1623.ets new file mode 100644 index 000000000..edf9b1758 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1623.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1623 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1624.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1624.ets new file mode 100644 index 000000000..6a65a3bd7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1624.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1624 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1625.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1625.ets new file mode 100644 index 000000000..d88ade2a1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1625.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1625 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1626.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1626.ets new file mode 100644 index 000000000..a87e16163 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1626.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1626 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1627.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1627.ets new file mode 100644 index 000000000..a0cdbfd47 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1627.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1627 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1628.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1628.ets new file mode 100644 index 000000000..0736b9eec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1628.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1628 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1629.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1629.ets new file mode 100644 index 000000000..03c302219 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1629.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1629 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile163.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile163.ets new file mode 100644 index 000000000..bb4c86689 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile163.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent326 } from "./manyImportFile326" +import { ManyImportComponent327 } from "./manyImportFile327" + + +@Component +export struct ManyImportComponent163 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent326() + ManyImportComponent327() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1630.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1630.ets new file mode 100644 index 000000000..9c4bb5069 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1630.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1630 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1631.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1631.ets new file mode 100644 index 000000000..df16294a9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1631.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1631 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1632.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1632.ets new file mode 100644 index 000000000..fa0389a3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1632.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1632 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1633.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1633.ets new file mode 100644 index 000000000..4b5ed5249 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1633.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1633 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1634.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1634.ets new file mode 100644 index 000000000..4e1fd6896 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1634.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1634 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1635.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1635.ets new file mode 100644 index 000000000..819e33c99 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1635.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1635 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1636.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1636.ets new file mode 100644 index 000000000..f0dc438e5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1636.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1636 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1637.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1637.ets new file mode 100644 index 000000000..078486492 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1637.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1637 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1638.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1638.ets new file mode 100644 index 000000000..f36147bd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1638.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1638 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1639.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1639.ets new file mode 100644 index 000000000..1de20dc9a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1639.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1639 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile164.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile164.ets new file mode 100644 index 000000000..ebc06f953 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile164.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent328 } from "./manyImportFile328" +import { ManyImportComponent329 } from "./manyImportFile329" + + +@Component +export struct ManyImportComponent164 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent328() + ManyImportComponent329() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1640.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1640.ets new file mode 100644 index 000000000..031475028 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1640.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1640 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1641.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1641.ets new file mode 100644 index 000000000..e94fab0df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1641.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1641 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1642.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1642.ets new file mode 100644 index 000000000..ab8fa445f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1642.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1642 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1643.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1643.ets new file mode 100644 index 000000000..1869b6657 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1643.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1643 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1644.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1644.ets new file mode 100644 index 000000000..a38d302be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1644.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1644 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1645.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1645.ets new file mode 100644 index 000000000..8b796ce40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1645.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1645 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1646.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1646.ets new file mode 100644 index 000000000..a88c8277c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1646.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1646 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1647.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1647.ets new file mode 100644 index 000000000..e60209ab5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1647.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1647 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1648.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1648.ets new file mode 100644 index 000000000..0bb8e9ea6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1648.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1648 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1649.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1649.ets new file mode 100644 index 000000000..b64e1450f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1649.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1649 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile165.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile165.ets new file mode 100644 index 000000000..56966aa97 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile165.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent330 } from "./manyImportFile330" +import { ManyImportComponent331 } from "./manyImportFile331" + + +@Component +export struct ManyImportComponent165 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent330() + ManyImportComponent331() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1650.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1650.ets new file mode 100644 index 000000000..405929f16 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1650.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1650 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1651.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1651.ets new file mode 100644 index 000000000..a189cf039 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1651.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1651 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1652.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1652.ets new file mode 100644 index 000000000..1f021b31e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1652.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1652 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1653.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1653.ets new file mode 100644 index 000000000..0e0a09430 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1653.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1653 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1654.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1654.ets new file mode 100644 index 000000000..50bb283b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1654.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1654 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1655.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1655.ets new file mode 100644 index 000000000..99ce04c73 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1655.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1655 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1656.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1656.ets new file mode 100644 index 000000000..bedd4d9c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1656.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1656 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1657.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1657.ets new file mode 100644 index 000000000..a59699471 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1657.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1657 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1658.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1658.ets new file mode 100644 index 000000000..373463eb5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1658.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1658 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1659.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1659.ets new file mode 100644 index 000000000..bde0c17e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1659.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1659 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile166.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile166.ets new file mode 100644 index 000000000..8781f2d2c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile166.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent332 } from "./manyImportFile332" +import { ManyImportComponent333 } from "./manyImportFile333" + + +@Component +export struct ManyImportComponent166 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent332() + ManyImportComponent333() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1660.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1660.ets new file mode 100644 index 000000000..a769efc82 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1660.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1660 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1661.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1661.ets new file mode 100644 index 000000000..b28c4fb88 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1661.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1661 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1662.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1662.ets new file mode 100644 index 000000000..cd96d7a66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1662.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1662 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1663.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1663.ets new file mode 100644 index 000000000..cd9930f43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1663.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1663 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1664.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1664.ets new file mode 100644 index 000000000..b1d1cf73e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1664.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1664 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1665.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1665.ets new file mode 100644 index 000000000..554e3b978 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1665.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1665 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1666.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1666.ets new file mode 100644 index 000000000..c598b080f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1666.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1666 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1667.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1667.ets new file mode 100644 index 000000000..2f9ff321a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1667.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1667 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1668.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1668.ets new file mode 100644 index 000000000..bd6e955ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1668.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1668 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1669.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1669.ets new file mode 100644 index 000000000..b7a3aa5ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1669.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1669 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile167.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile167.ets new file mode 100644 index 000000000..1c9f47bff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile167.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent334 } from "./manyImportFile334" +import { ManyImportComponent335 } from "./manyImportFile335" + + +@Component +export struct ManyImportComponent167 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent334() + ManyImportComponent335() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1670.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1670.ets new file mode 100644 index 000000000..52f0492d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1670.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1670 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1671.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1671.ets new file mode 100644 index 000000000..93723d8ea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1671.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1671 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1672.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1672.ets new file mode 100644 index 000000000..7a17a3404 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1672.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1672 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1673.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1673.ets new file mode 100644 index 000000000..6d4574bd7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1673.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1673 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1674.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1674.ets new file mode 100644 index 000000000..76b83562f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1674.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1674 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1675.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1675.ets new file mode 100644 index 000000000..b8b400339 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1675.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1675 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1676.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1676.ets new file mode 100644 index 000000000..8e111936f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1676.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1676 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1677.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1677.ets new file mode 100644 index 000000000..c4c51339a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1677.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1677 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1678.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1678.ets new file mode 100644 index 000000000..d46c4ac8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1678.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1678 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1679.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1679.ets new file mode 100644 index 000000000..1e31ec6e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1679.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1679 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile168.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile168.ets new file mode 100644 index 000000000..ae7d4adfd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile168.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent336 } from "./manyImportFile336" +import { ManyImportComponent337 } from "./manyImportFile337" + + +@Component +export struct ManyImportComponent168 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent336() + ManyImportComponent337() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1680.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1680.ets new file mode 100644 index 000000000..43437bf1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1680.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1680 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1681.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1681.ets new file mode 100644 index 000000000..0ee04e875 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1681.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1681 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1682.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1682.ets new file mode 100644 index 000000000..fac00ed0c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1682.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1682 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1683.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1683.ets new file mode 100644 index 000000000..d11a9a704 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1683.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1683 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1684.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1684.ets new file mode 100644 index 000000000..c02f8b0c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1684.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1684 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1685.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1685.ets new file mode 100644 index 000000000..ffd74a0cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1685.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1685 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1686.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1686.ets new file mode 100644 index 000000000..4e201c917 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1686.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1686 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1687.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1687.ets new file mode 100644 index 000000000..a20b1c1f7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1687.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1687 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1688.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1688.ets new file mode 100644 index 000000000..6b84cf8b1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1688.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1688 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1689.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1689.ets new file mode 100644 index 000000000..cea973bac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1689.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1689 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile169.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile169.ets new file mode 100644 index 000000000..1085d8bc7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile169.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent338 } from "./manyImportFile338" +import { ManyImportComponent339 } from "./manyImportFile339" + + +@Component +export struct ManyImportComponent169 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent338() + ManyImportComponent339() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1690.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1690.ets new file mode 100644 index 000000000..70c390eca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1690.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1690 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1691.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1691.ets new file mode 100644 index 000000000..22fd9d5ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1691.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1691 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1692.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1692.ets new file mode 100644 index 000000000..8f552ee7d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1692.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1692 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1693.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1693.ets new file mode 100644 index 000000000..db0654a51 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1693.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1693 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1694.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1694.ets new file mode 100644 index 000000000..5bf2ae2f7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1694.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1694 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1695.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1695.ets new file mode 100644 index 000000000..f60d1f4c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1695.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1695 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1696.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1696.ets new file mode 100644 index 000000000..896c0967e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1696.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1696 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1697.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1697.ets new file mode 100644 index 000000000..0c666f8a5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1697.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1697 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1698.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1698.ets new file mode 100644 index 000000000..6ded3e06f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1698.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1698 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1699.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1699.ets new file mode 100644 index 000000000..121dcdd8b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1699.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1699 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile17.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile17.ets new file mode 100644 index 000000000..968e541f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile17.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent34 } from "./manyImportFile34" +import { ManyImportComponent35 } from "./manyImportFile35" + + +@Component +export struct ManyImportComponent17 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent34() + ManyImportComponent35() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile170.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile170.ets new file mode 100644 index 000000000..98057688e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile170.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent340 } from "./manyImportFile340" +import { ManyImportComponent341 } from "./manyImportFile341" + + +@Component +export struct ManyImportComponent170 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent340() + ManyImportComponent341() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1700.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1700.ets new file mode 100644 index 000000000..5827de64a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1700.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1700 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1701.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1701.ets new file mode 100644 index 000000000..263963c94 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1701.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1701 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1702.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1702.ets new file mode 100644 index 000000000..bc077e3bd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1702.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1702 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1703.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1703.ets new file mode 100644 index 000000000..67f4a52fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1703.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1703 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1704.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1704.ets new file mode 100644 index 000000000..c5ce311b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1704.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1704 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1705.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1705.ets new file mode 100644 index 000000000..7b742d091 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1705.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1705 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1706.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1706.ets new file mode 100644 index 000000000..0fa584525 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1706.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1706 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1707.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1707.ets new file mode 100644 index 000000000..7939c8aca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1707.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1707 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1708.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1708.ets new file mode 100644 index 000000000..e2ddd0eb5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1708.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1708 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1709.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1709.ets new file mode 100644 index 000000000..a7b9ce44e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1709.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1709 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile171.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile171.ets new file mode 100644 index 000000000..92ebcd899 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile171.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent342 } from "./manyImportFile342" +import { ManyImportComponent343 } from "./manyImportFile343" + + +@Component +export struct ManyImportComponent171 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent342() + ManyImportComponent343() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1710.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1710.ets new file mode 100644 index 000000000..0ec08f84d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1710.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1710 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1711.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1711.ets new file mode 100644 index 000000000..dc0432aaf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1711.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1711 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1712.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1712.ets new file mode 100644 index 000000000..c643bd8e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1712.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1712 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1713.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1713.ets new file mode 100644 index 000000000..591bc42e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1713.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1713 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1714.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1714.ets new file mode 100644 index 000000000..63e4e0be9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1714.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1714 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1715.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1715.ets new file mode 100644 index 000000000..cfce1633e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1715.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1715 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1716.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1716.ets new file mode 100644 index 000000000..417d38746 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1716.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1716 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1717.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1717.ets new file mode 100644 index 000000000..0134f21c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1717.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1717 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1718.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1718.ets new file mode 100644 index 000000000..af5ce39c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1718.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1718 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1719.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1719.ets new file mode 100644 index 000000000..7dd9890b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1719.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1719 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile172.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile172.ets new file mode 100644 index 000000000..bc9db6a9e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile172.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent344 } from "./manyImportFile344" +import { ManyImportComponent345 } from "./manyImportFile345" + + +@Component +export struct ManyImportComponent172 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent344() + ManyImportComponent345() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1720.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1720.ets new file mode 100644 index 000000000..20e333ce1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1720.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1720 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1721.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1721.ets new file mode 100644 index 000000000..d47d0e630 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1721.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1721 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1722.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1722.ets new file mode 100644 index 000000000..ef1c1f0d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1722.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1722 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1723.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1723.ets new file mode 100644 index 000000000..80d5a02da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1723.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1723 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1724.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1724.ets new file mode 100644 index 000000000..65fdaabab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1724.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1724 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1725.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1725.ets new file mode 100644 index 000000000..ba074e0c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1725.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1725 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1726.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1726.ets new file mode 100644 index 000000000..f59d8d490 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1726.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1726 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1727.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1727.ets new file mode 100644 index 000000000..2e17b2513 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1727.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1727 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1728.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1728.ets new file mode 100644 index 000000000..54e6e599a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1728.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1728 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1729.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1729.ets new file mode 100644 index 000000000..9996db74c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1729.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1729 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile173.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile173.ets new file mode 100644 index 000000000..c2cd622bc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile173.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent346 } from "./manyImportFile346" +import { ManyImportComponent347 } from "./manyImportFile347" + + +@Component +export struct ManyImportComponent173 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent346() + ManyImportComponent347() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1730.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1730.ets new file mode 100644 index 000000000..dbe61e7ed --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1730.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1730 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1731.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1731.ets new file mode 100644 index 000000000..73cf4e60c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1731.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1731 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1732.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1732.ets new file mode 100644 index 000000000..bffee24c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1732.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1732 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1733.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1733.ets new file mode 100644 index 000000000..1c1292d5d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1733.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1733 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1734.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1734.ets new file mode 100644 index 000000000..ce93126d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1734.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1734 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1735.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1735.ets new file mode 100644 index 000000000..6b16e28cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1735.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1735 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1736.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1736.ets new file mode 100644 index 000000000..64f06aee6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1736.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1736 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1737.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1737.ets new file mode 100644 index 000000000..bed8e7da3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1737.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1737 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1738.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1738.ets new file mode 100644 index 000000000..9fa39e674 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1738.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1738 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1739.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1739.ets new file mode 100644 index 000000000..ad965f617 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1739.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1739 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile174.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile174.ets new file mode 100644 index 000000000..315f30c1b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile174.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent348 } from "./manyImportFile348" +import { ManyImportComponent349 } from "./manyImportFile349" + + +@Component +export struct ManyImportComponent174 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent348() + ManyImportComponent349() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1740.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1740.ets new file mode 100644 index 000000000..700fadac4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1740.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1740 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1741.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1741.ets new file mode 100644 index 000000000..2a0dcae82 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1741.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1741 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1742.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1742.ets new file mode 100644 index 000000000..f41cebe56 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1742.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1742 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1743.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1743.ets new file mode 100644 index 000000000..45999584b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1743.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1743 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1744.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1744.ets new file mode 100644 index 000000000..274bacbb3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1744.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1744 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1745.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1745.ets new file mode 100644 index 000000000..20f5e6bfa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1745.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1745 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1746.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1746.ets new file mode 100644 index 000000000..9b90783e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1746.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1746 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1747.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1747.ets new file mode 100644 index 000000000..cf5656576 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1747.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1747 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1748.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1748.ets new file mode 100644 index 000000000..cce7a58fe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1748.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1748 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1749.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1749.ets new file mode 100644 index 000000000..63d8cea05 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1749.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1749 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile175.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile175.ets new file mode 100644 index 000000000..34139bae4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile175.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent350 } from "./manyImportFile350" +import { ManyImportComponent351 } from "./manyImportFile351" + + +@Component +export struct ManyImportComponent175 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent350() + ManyImportComponent351() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1750.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1750.ets new file mode 100644 index 000000000..5eb4d0a26 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1750.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1750 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1751.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1751.ets new file mode 100644 index 000000000..6b431b212 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1751.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1751 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1752.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1752.ets new file mode 100644 index 000000000..0c0e69bbd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1752.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1752 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1753.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1753.ets new file mode 100644 index 000000000..977be95a7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1753.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1753 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1754.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1754.ets new file mode 100644 index 000000000..1a3dfc4e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1754.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1754 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1755.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1755.ets new file mode 100644 index 000000000..b288d8dc0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1755.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1755 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1756.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1756.ets new file mode 100644 index 000000000..3f7be2e03 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1756.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1756 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1757.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1757.ets new file mode 100644 index 000000000..83ed07ae1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1757.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1757 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1758.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1758.ets new file mode 100644 index 000000000..5d14912c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1758.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1758 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1759.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1759.ets new file mode 100644 index 000000000..d501e9cba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1759.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1759 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile176.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile176.ets new file mode 100644 index 000000000..03a47148a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile176.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent352 } from "./manyImportFile352" +import { ManyImportComponent353 } from "./manyImportFile353" + + +@Component +export struct ManyImportComponent176 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent352() + ManyImportComponent353() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1760.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1760.ets new file mode 100644 index 000000000..4ced33d4e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1760.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1760 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1761.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1761.ets new file mode 100644 index 000000000..8981aceab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1761.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1761 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1762.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1762.ets new file mode 100644 index 000000000..da8c44771 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1762.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1762 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1763.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1763.ets new file mode 100644 index 000000000..a7c67506c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1763.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1763 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1764.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1764.ets new file mode 100644 index 000000000..895ce43ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1764.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1764 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1765.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1765.ets new file mode 100644 index 000000000..52ce1422c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1765.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1765 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1766.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1766.ets new file mode 100644 index 000000000..6792b2a54 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1766.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1766 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1767.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1767.ets new file mode 100644 index 000000000..efba7de8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1767.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1767 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1768.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1768.ets new file mode 100644 index 000000000..f0487e118 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1768.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1768 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1769.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1769.ets new file mode 100644 index 000000000..a6d305f8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1769.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1769 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile177.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile177.ets new file mode 100644 index 000000000..aff8dbde8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile177.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent354 } from "./manyImportFile354" +import { ManyImportComponent355 } from "./manyImportFile355" + + +@Component +export struct ManyImportComponent177 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent354() + ManyImportComponent355() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1770.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1770.ets new file mode 100644 index 000000000..ed97db3fc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1770.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1770 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1771.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1771.ets new file mode 100644 index 000000000..9d5e34ec2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1771.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1771 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1772.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1772.ets new file mode 100644 index 000000000..60b6dd68b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1772.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1772 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1773.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1773.ets new file mode 100644 index 000000000..ee6f1b88e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1773.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1773 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1774.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1774.ets new file mode 100644 index 000000000..0728e560b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1774.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1774 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1775.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1775.ets new file mode 100644 index 000000000..a6c1ebd00 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1775.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1775 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1776.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1776.ets new file mode 100644 index 000000000..0e2d1cd8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1776.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1776 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1777.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1777.ets new file mode 100644 index 000000000..42792da71 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1777.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1777 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1778.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1778.ets new file mode 100644 index 000000000..f517fd664 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1778.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1778 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1779.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1779.ets new file mode 100644 index 000000000..51de1c37c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1779.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1779 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile178.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile178.ets new file mode 100644 index 000000000..55a0b7397 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile178.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent356 } from "./manyImportFile356" +import { ManyImportComponent357 } from "./manyImportFile357" + + +@Component +export struct ManyImportComponent178 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent356() + ManyImportComponent357() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1780.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1780.ets new file mode 100644 index 000000000..e2ed53f5e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1780.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1780 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1781.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1781.ets new file mode 100644 index 000000000..0be7059db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1781.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1781 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1782.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1782.ets new file mode 100644 index 000000000..39b03e667 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1782.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1782 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1783.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1783.ets new file mode 100644 index 000000000..7d4e4b36d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1783.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1783 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1784.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1784.ets new file mode 100644 index 000000000..4b00ee9cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1784.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1784 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1785.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1785.ets new file mode 100644 index 000000000..36378e5c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1785.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1785 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1786.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1786.ets new file mode 100644 index 000000000..91e0c027d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1786.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1786 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1787.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1787.ets new file mode 100644 index 000000000..9c32ff39b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1787.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1787 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1788.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1788.ets new file mode 100644 index 000000000..53464970e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1788.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1788 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1789.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1789.ets new file mode 100644 index 000000000..50a0f240f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1789.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1789 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile179.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile179.ets new file mode 100644 index 000000000..b2158f667 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile179.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent358 } from "./manyImportFile358" +import { ManyImportComponent359 } from "./manyImportFile359" + + +@Component +export struct ManyImportComponent179 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent358() + ManyImportComponent359() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1790.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1790.ets new file mode 100644 index 000000000..e4e3ead69 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1790.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1790 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1791.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1791.ets new file mode 100644 index 000000000..bb750a3a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1791.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1791 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1792.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1792.ets new file mode 100644 index 000000000..68358d5f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1792.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1792 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1793.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1793.ets new file mode 100644 index 000000000..5084a501b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1793.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1793 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1794.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1794.ets new file mode 100644 index 000000000..80ce7c858 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1794.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1794 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1795.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1795.ets new file mode 100644 index 000000000..30c7f7e4f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1795.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1795 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1796.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1796.ets new file mode 100644 index 000000000..11f33c763 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1796.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1796 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1797.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1797.ets new file mode 100644 index 000000000..46ae07800 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1797.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1797 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1798.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1798.ets new file mode 100644 index 000000000..d62679daa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1798.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1798 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1799.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1799.ets new file mode 100644 index 000000000..82f9c962b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1799.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1799 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile18.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile18.ets new file mode 100644 index 000000000..7df6d5832 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile18.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent36 } from "./manyImportFile36" +import { ManyImportComponent37 } from "./manyImportFile37" + + +@Component +export struct ManyImportComponent18 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent36() + ManyImportComponent37() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile180.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile180.ets new file mode 100644 index 000000000..84bc41865 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile180.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent360 } from "./manyImportFile360" +import { ManyImportComponent361 } from "./manyImportFile361" + + +@Component +export struct ManyImportComponent180 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent360() + ManyImportComponent361() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1800.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1800.ets new file mode 100644 index 000000000..efe0b83ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1800.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1800 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1801.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1801.ets new file mode 100644 index 000000000..b71b8e463 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1801.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1801 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1802.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1802.ets new file mode 100644 index 000000000..b8b3cd929 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1802.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1802 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1803.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1803.ets new file mode 100644 index 000000000..88f6eeb61 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1803.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1803 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1804.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1804.ets new file mode 100644 index 000000000..325d242e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1804.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1804 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1805.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1805.ets new file mode 100644 index 000000000..ddcff88db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1805.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1805 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1806.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1806.ets new file mode 100644 index 000000000..63ec54e56 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1806.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1806 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1807.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1807.ets new file mode 100644 index 000000000..76c8286fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1807.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1807 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1808.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1808.ets new file mode 100644 index 000000000..da0825740 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1808.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1808 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1809.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1809.ets new file mode 100644 index 000000000..10cf79f2c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1809.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1809 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile181.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile181.ets new file mode 100644 index 000000000..8c5839e0f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile181.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent362 } from "./manyImportFile362" +import { ManyImportComponent363 } from "./manyImportFile363" + + +@Component +export struct ManyImportComponent181 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent362() + ManyImportComponent363() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1810.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1810.ets new file mode 100644 index 000000000..bce2063ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1810.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1810 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1811.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1811.ets new file mode 100644 index 000000000..065292a3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1811.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1811 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1812.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1812.ets new file mode 100644 index 000000000..6ff6bf75e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1812.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1812 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1813.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1813.ets new file mode 100644 index 000000000..8f735f742 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1813.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1813 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1814.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1814.ets new file mode 100644 index 000000000..21164abdf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1814.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1814 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1815.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1815.ets new file mode 100644 index 000000000..5087d03a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1815.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1815 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1816.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1816.ets new file mode 100644 index 000000000..561e501fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1816.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1816 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1817.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1817.ets new file mode 100644 index 000000000..6e03b6997 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1817.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1817 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1818.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1818.ets new file mode 100644 index 000000000..c2bd1c420 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1818.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1818 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1819.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1819.ets new file mode 100644 index 000000000..8e89180be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1819.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1819 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile182.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile182.ets new file mode 100644 index 000000000..c49679074 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile182.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent364 } from "./manyImportFile364" +import { ManyImportComponent365 } from "./manyImportFile365" + + +@Component +export struct ManyImportComponent182 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent364() + ManyImportComponent365() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1820.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1820.ets new file mode 100644 index 000000000..aa49990d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1820.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1820 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1821.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1821.ets new file mode 100644 index 000000000..5e71fcf8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1821.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1821 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1822.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1822.ets new file mode 100644 index 000000000..89a7a09b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1822.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1822 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1823.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1823.ets new file mode 100644 index 000000000..cdc14b4f4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1823.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1823 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1824.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1824.ets new file mode 100644 index 000000000..906251b20 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1824.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1824 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1825.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1825.ets new file mode 100644 index 000000000..d36fbd63c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1825.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1825 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1826.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1826.ets new file mode 100644 index 000000000..fee98d9b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1826.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1826 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1827.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1827.ets new file mode 100644 index 000000000..454852daf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1827.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1827 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1828.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1828.ets new file mode 100644 index 000000000..61544e767 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1828.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1828 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1829.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1829.ets new file mode 100644 index 000000000..63083211f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1829.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1829 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile183.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile183.ets new file mode 100644 index 000000000..3971c0492 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile183.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent366 } from "./manyImportFile366" +import { ManyImportComponent367 } from "./manyImportFile367" + + +@Component +export struct ManyImportComponent183 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent366() + ManyImportComponent367() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1830.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1830.ets new file mode 100644 index 000000000..fe4901fd9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1830.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1830 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1831.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1831.ets new file mode 100644 index 000000000..926c4933c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1831.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1831 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1832.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1832.ets new file mode 100644 index 000000000..f80b12fb6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1832.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1832 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1833.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1833.ets new file mode 100644 index 000000000..2136d9a5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1833.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1833 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1834.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1834.ets new file mode 100644 index 000000000..3fc654e10 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1834.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1834 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1835.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1835.ets new file mode 100644 index 000000000..b8fb926cb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1835.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1835 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1836.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1836.ets new file mode 100644 index 000000000..260b29b64 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1836.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1836 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1837.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1837.ets new file mode 100644 index 000000000..6efd04cd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1837.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1837 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1838.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1838.ets new file mode 100644 index 000000000..f238e49be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1838.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1838 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1839.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1839.ets new file mode 100644 index 000000000..d07716a34 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1839.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1839 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile184.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile184.ets new file mode 100644 index 000000000..60fbae181 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile184.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent368 } from "./manyImportFile368" +import { ManyImportComponent369 } from "./manyImportFile369" + + +@Component +export struct ManyImportComponent184 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent368() + ManyImportComponent369() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1840.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1840.ets new file mode 100644 index 000000000..9a290eb41 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1840.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1840 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1841.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1841.ets new file mode 100644 index 000000000..5f43ee658 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1841.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1841 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1842.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1842.ets new file mode 100644 index 000000000..ffbe642c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1842.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1842 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1843.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1843.ets new file mode 100644 index 000000000..4be6f8935 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1843.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1843 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1844.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1844.ets new file mode 100644 index 000000000..c03f46667 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1844.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1844 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1845.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1845.ets new file mode 100644 index 000000000..0cc35fec2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1845.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1845 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1846.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1846.ets new file mode 100644 index 000000000..7df40ec1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1846.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1846 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1847.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1847.ets new file mode 100644 index 000000000..e2a2d5f7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1847.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1847 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1848.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1848.ets new file mode 100644 index 000000000..8430c148e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1848.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1848 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1849.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1849.ets new file mode 100644 index 000000000..4e943680f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1849.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1849 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile185.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile185.ets new file mode 100644 index 000000000..524019d17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile185.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent370 } from "./manyImportFile370" +import { ManyImportComponent371 } from "./manyImportFile371" + + +@Component +export struct ManyImportComponent185 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent370() + ManyImportComponent371() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1850.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1850.ets new file mode 100644 index 000000000..a5388305e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1850.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1850 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1851.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1851.ets new file mode 100644 index 000000000..2984d0a0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1851.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1851 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1852.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1852.ets new file mode 100644 index 000000000..2417a16af --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1852.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1852 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1853.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1853.ets new file mode 100644 index 000000000..88c6824c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1853.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1853 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1854.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1854.ets new file mode 100644 index 000000000..aeacfe441 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1854.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1854 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1855.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1855.ets new file mode 100644 index 000000000..9a0766846 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1855.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1855 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1856.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1856.ets new file mode 100644 index 000000000..37656f0ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1856.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1856 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1857.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1857.ets new file mode 100644 index 000000000..6fb58f223 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1857.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1857 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1858.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1858.ets new file mode 100644 index 000000000..299b01cce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1858.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1858 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1859.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1859.ets new file mode 100644 index 000000000..cd817caca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1859.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1859 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile186.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile186.ets new file mode 100644 index 000000000..06839f1a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile186.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent372 } from "./manyImportFile372" +import { ManyImportComponent373 } from "./manyImportFile373" + + +@Component +export struct ManyImportComponent186 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent372() + ManyImportComponent373() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1860.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1860.ets new file mode 100644 index 000000000..3a17da7c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1860.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1860 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1861.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1861.ets new file mode 100644 index 000000000..59da53b70 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1861.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1861 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1862.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1862.ets new file mode 100644 index 000000000..2c885d1c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1862.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1862 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1863.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1863.ets new file mode 100644 index 000000000..f6dd354fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1863.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1863 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1864.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1864.ets new file mode 100644 index 000000000..398cc11c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1864.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1864 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1865.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1865.ets new file mode 100644 index 000000000..b48e14b21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1865.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1865 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1866.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1866.ets new file mode 100644 index 000000000..f05bcdb49 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1866.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1866 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1867.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1867.ets new file mode 100644 index 000000000..f5cbbb268 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1867.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1867 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1868.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1868.ets new file mode 100644 index 000000000..1bff2ebee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1868.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1868 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1869.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1869.ets new file mode 100644 index 000000000..d38e6a684 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1869.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1869 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile187.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile187.ets new file mode 100644 index 000000000..39b51bc60 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile187.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent374 } from "./manyImportFile374" +import { ManyImportComponent375 } from "./manyImportFile375" + + +@Component +export struct ManyImportComponent187 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent374() + ManyImportComponent375() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1870.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1870.ets new file mode 100644 index 000000000..7492c356d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1870.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1870 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1871.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1871.ets new file mode 100644 index 000000000..0939543c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1871.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1871 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1872.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1872.ets new file mode 100644 index 000000000..c32932f36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1872.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1872 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1873.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1873.ets new file mode 100644 index 000000000..b661f15ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1873.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1873 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1874.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1874.ets new file mode 100644 index 000000000..d5406f215 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1874.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1874 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1875.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1875.ets new file mode 100644 index 000000000..53fe3e9a2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1875.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1875 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1876.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1876.ets new file mode 100644 index 000000000..de681605e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1876.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1876 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1877.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1877.ets new file mode 100644 index 000000000..1a3c51a0c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1877.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1877 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1878.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1878.ets new file mode 100644 index 000000000..d565e32e5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1878.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1878 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1879.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1879.ets new file mode 100644 index 000000000..e04e93b7e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1879.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1879 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile188.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile188.ets new file mode 100644 index 000000000..21fa5ee25 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile188.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent376 } from "./manyImportFile376" +import { ManyImportComponent377 } from "./manyImportFile377" + + +@Component +export struct ManyImportComponent188 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent376() + ManyImportComponent377() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1880.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1880.ets new file mode 100644 index 000000000..6997810f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1880.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1880 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1881.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1881.ets new file mode 100644 index 000000000..c0ff2f33a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1881.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1881 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1882.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1882.ets new file mode 100644 index 000000000..2fc52888a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1882.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1882 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1883.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1883.ets new file mode 100644 index 000000000..6a9148aec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1883.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1883 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1884.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1884.ets new file mode 100644 index 000000000..1ea2ba585 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1884.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1884 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1885.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1885.ets new file mode 100644 index 000000000..681b584d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1885.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1885 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1886.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1886.ets new file mode 100644 index 000000000..2b8513ae9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1886.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1886 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1887.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1887.ets new file mode 100644 index 000000000..34f36b99d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1887.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1887 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1888.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1888.ets new file mode 100644 index 000000000..2d4617d11 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1888.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1888 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1889.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1889.ets new file mode 100644 index 000000000..a6b286b3d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1889.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1889 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile189.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile189.ets new file mode 100644 index 000000000..f126526c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile189.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent378 } from "./manyImportFile378" +import { ManyImportComponent379 } from "./manyImportFile379" + + +@Component +export struct ManyImportComponent189 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent378() + ManyImportComponent379() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1890.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1890.ets new file mode 100644 index 000000000..e590b5ac7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1890.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1890 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1891.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1891.ets new file mode 100644 index 000000000..2b1263c47 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1891.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1891 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1892.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1892.ets new file mode 100644 index 000000000..b9829f104 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1892.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1892 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1893.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1893.ets new file mode 100644 index 000000000..8814b9f5b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1893.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1893 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1894.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1894.ets new file mode 100644 index 000000000..873832246 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1894.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1894 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1895.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1895.ets new file mode 100644 index 000000000..6d94cc008 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1895.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1895 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1896.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1896.ets new file mode 100644 index 000000000..ad8f33f7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1896.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1896 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1897.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1897.ets new file mode 100644 index 000000000..36f4a3593 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1897.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1897 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1898.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1898.ets new file mode 100644 index 000000000..6b9bb55db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1898.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1898 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1899.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1899.ets new file mode 100644 index 000000000..f2b6e481f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1899.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1899 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile19.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile19.ets new file mode 100644 index 000000000..a37d52f5a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile19.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent38 } from "./manyImportFile38" +import { ManyImportComponent39 } from "./manyImportFile39" + + +@Component +export struct ManyImportComponent19 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent38() + ManyImportComponent39() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile190.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile190.ets new file mode 100644 index 000000000..b9432420b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile190.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent380 } from "./manyImportFile380" +import { ManyImportComponent381 } from "./manyImportFile381" + + +@Component +export struct ManyImportComponent190 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent380() + ManyImportComponent381() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1900.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1900.ets new file mode 100644 index 000000000..ef6c5c68f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1900.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1900 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1901.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1901.ets new file mode 100644 index 000000000..6d855f3e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1901.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1901 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1902.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1902.ets new file mode 100644 index 000000000..993d11305 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1902.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1902 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1903.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1903.ets new file mode 100644 index 000000000..6869a128d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1903.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1903 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1904.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1904.ets new file mode 100644 index 000000000..620883598 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1904.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1904 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1905.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1905.ets new file mode 100644 index 000000000..f0a5abee1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1905.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1905 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1906.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1906.ets new file mode 100644 index 000000000..0cb24421d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1906.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1906 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1907.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1907.ets new file mode 100644 index 000000000..75f12d431 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1907.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1907 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1908.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1908.ets new file mode 100644 index 000000000..0154363e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1908.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1908 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1909.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1909.ets new file mode 100644 index 000000000..993e809a0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1909.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1909 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile191.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile191.ets new file mode 100644 index 000000000..2ab1e6039 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile191.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent382 } from "./manyImportFile382" +import { ManyImportComponent383 } from "./manyImportFile383" + + +@Component +export struct ManyImportComponent191 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent382() + ManyImportComponent383() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1910.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1910.ets new file mode 100644 index 000000000..85c3497c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1910.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1910 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1911.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1911.ets new file mode 100644 index 000000000..1342e2c3b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1911.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1911 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1912.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1912.ets new file mode 100644 index 000000000..bf7d199ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1912.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1912 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1913.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1913.ets new file mode 100644 index 000000000..8582d4509 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1913.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1913 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1914.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1914.ets new file mode 100644 index 000000000..340139b3c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1914.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1914 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1915.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1915.ets new file mode 100644 index 000000000..fefb756c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1915.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1915 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1916.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1916.ets new file mode 100644 index 000000000..a82309aa0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1916.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1916 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1917.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1917.ets new file mode 100644 index 000000000..bb0a37b26 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1917.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1917 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1918.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1918.ets new file mode 100644 index 000000000..51d9b7533 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1918.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1918 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1919.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1919.ets new file mode 100644 index 000000000..36cbc46d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1919.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1919 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile192.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile192.ets new file mode 100644 index 000000000..3667b5daa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile192.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent384 } from "./manyImportFile384" +import { ManyImportComponent385 } from "./manyImportFile385" + + +@Component +export struct ManyImportComponent192 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent384() + ManyImportComponent385() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1920.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1920.ets new file mode 100644 index 000000000..30eaa62c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1920.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1920 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1921.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1921.ets new file mode 100644 index 000000000..6c59a5601 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1921.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1921 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1922.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1922.ets new file mode 100644 index 000000000..2464d4c17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1922.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1922 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1923.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1923.ets new file mode 100644 index 000000000..9434112ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1923.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1923 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1924.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1924.ets new file mode 100644 index 000000000..8c228ec73 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1924.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1924 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1925.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1925.ets new file mode 100644 index 000000000..98a0bdb90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1925.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1925 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1926.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1926.ets new file mode 100644 index 000000000..d38748d39 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1926.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1926 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1927.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1927.ets new file mode 100644 index 000000000..cd9c3bb11 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1927.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1927 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1928.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1928.ets new file mode 100644 index 000000000..dd5114796 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1928.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1928 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1929.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1929.ets new file mode 100644 index 000000000..e40d77c72 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1929.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1929 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile193.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile193.ets new file mode 100644 index 000000000..fb10d132b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile193.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent386 } from "./manyImportFile386" +import { ManyImportComponent387 } from "./manyImportFile387" + + +@Component +export struct ManyImportComponent193 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent386() + ManyImportComponent387() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1930.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1930.ets new file mode 100644 index 000000000..d9a7aa273 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1930.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1930 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1931.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1931.ets new file mode 100644 index 000000000..60cd8b8c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1931.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1931 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1932.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1932.ets new file mode 100644 index 000000000..f40aaaa4a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1932.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1932 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1933.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1933.ets new file mode 100644 index 000000000..deaf395ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1933.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1933 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1934.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1934.ets new file mode 100644 index 000000000..b554a7932 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1934.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1934 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1935.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1935.ets new file mode 100644 index 000000000..4af1e6296 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1935.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1935 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1936.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1936.ets new file mode 100644 index 000000000..bce3991a7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1936.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1936 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1937.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1937.ets new file mode 100644 index 000000000..f93cc5f2f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1937.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1937 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1938.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1938.ets new file mode 100644 index 000000000..ded18c958 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1938.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1938 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1939.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1939.ets new file mode 100644 index 000000000..20f7867ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1939.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1939 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile194.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile194.ets new file mode 100644 index 000000000..7b1d2fc12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile194.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent388 } from "./manyImportFile388" +import { ManyImportComponent389 } from "./manyImportFile389" + + +@Component +export struct ManyImportComponent194 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent388() + ManyImportComponent389() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1940.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1940.ets new file mode 100644 index 000000000..3eedc3626 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1940.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1940 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1941.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1941.ets new file mode 100644 index 000000000..2d2f904b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1941.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1941 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1942.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1942.ets new file mode 100644 index 000000000..0a048aba5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1942.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1942 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1943.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1943.ets new file mode 100644 index 000000000..20b2bde48 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1943.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1943 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1944.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1944.ets new file mode 100644 index 000000000..e00d7edb9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1944.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1944 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1945.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1945.ets new file mode 100644 index 000000000..bab607ed8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1945.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1945 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1946.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1946.ets new file mode 100644 index 000000000..4dea5753a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1946.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1946 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1947.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1947.ets new file mode 100644 index 000000000..2cede5f1c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1947.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1947 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1948.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1948.ets new file mode 100644 index 000000000..564ea335d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1948.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1948 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1949.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1949.ets new file mode 100644 index 000000000..264e97568 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1949.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1949 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile195.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile195.ets new file mode 100644 index 000000000..317b7136e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile195.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent390 } from "./manyImportFile390" +import { ManyImportComponent391 } from "./manyImportFile391" + + +@Component +export struct ManyImportComponent195 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent390() + ManyImportComponent391() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1950.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1950.ets new file mode 100644 index 000000000..fb8698e1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1950.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1950 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1951.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1951.ets new file mode 100644 index 000000000..1f5060f90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1951.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1951 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1952.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1952.ets new file mode 100644 index 000000000..04dd176c6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1952.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1952 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1953.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1953.ets new file mode 100644 index 000000000..014f644d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1953.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1953 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1954.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1954.ets new file mode 100644 index 000000000..afcadcd08 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1954.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1954 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1955.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1955.ets new file mode 100644 index 000000000..df09e6ded --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1955.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1955 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1956.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1956.ets new file mode 100644 index 000000000..2a24bad4f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1956.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1956 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1957.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1957.ets new file mode 100644 index 000000000..a0c1dd9c3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1957.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1957 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1958.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1958.ets new file mode 100644 index 000000000..c5e3f7887 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1958.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1958 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1959.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1959.ets new file mode 100644 index 000000000..4b5cadb73 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1959.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1959 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile196.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile196.ets new file mode 100644 index 000000000..3a29145b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile196.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent392 } from "./manyImportFile392" +import { ManyImportComponent393 } from "./manyImportFile393" + + +@Component +export struct ManyImportComponent196 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent392() + ManyImportComponent393() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1960.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1960.ets new file mode 100644 index 000000000..42702b6e5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1960.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1960 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1961.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1961.ets new file mode 100644 index 000000000..57a133c77 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1961.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1961 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1962.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1962.ets new file mode 100644 index 000000000..58c3433d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1962.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1962 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1963.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1963.ets new file mode 100644 index 000000000..b13658e85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1963.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1963 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1964.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1964.ets new file mode 100644 index 000000000..1d2442b6b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1964.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1964 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1965.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1965.ets new file mode 100644 index 000000000..88924e950 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1965.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1965 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1966.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1966.ets new file mode 100644 index 000000000..886568c44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1966.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1966 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1967.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1967.ets new file mode 100644 index 000000000..365907f05 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1967.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1967 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1968.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1968.ets new file mode 100644 index 000000000..e8b5d6f86 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1968.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1968 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1969.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1969.ets new file mode 100644 index 000000000..11fde31df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1969.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1969 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile197.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile197.ets new file mode 100644 index 000000000..597cf65ee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile197.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent394 } from "./manyImportFile394" +import { ManyImportComponent395 } from "./manyImportFile395" + + +@Component +export struct ManyImportComponent197 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent394() + ManyImportComponent395() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1970.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1970.ets new file mode 100644 index 000000000..23dfb610e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1970.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1970 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1971.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1971.ets new file mode 100644 index 000000000..3c568c212 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1971.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1971 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1972.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1972.ets new file mode 100644 index 000000000..c75ec5160 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1972.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1972 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1973.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1973.ets new file mode 100644 index 000000000..45c15d321 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1973.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1973 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1974.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1974.ets new file mode 100644 index 000000000..d99ee2b08 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1974.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1974 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1975.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1975.ets new file mode 100644 index 000000000..60c8f9a3c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1975.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1975 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1976.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1976.ets new file mode 100644 index 000000000..d5d63d647 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1976.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1976 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1977.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1977.ets new file mode 100644 index 000000000..87b73542e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1977.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1977 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1978.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1978.ets new file mode 100644 index 000000000..6308425e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1978.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1978 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1979.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1979.ets new file mode 100644 index 000000000..bdb5fa7ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1979.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1979 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile198.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile198.ets new file mode 100644 index 000000000..d356f208d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile198.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent396 } from "./manyImportFile396" +import { ManyImportComponent397 } from "./manyImportFile397" + + +@Component +export struct ManyImportComponent198 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent396() + ManyImportComponent397() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1980.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1980.ets new file mode 100644 index 000000000..9d8aafdb7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1980.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1980 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1981.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1981.ets new file mode 100644 index 000000000..b8ae3fb8b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1981.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1981 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1982.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1982.ets new file mode 100644 index 000000000..d17d07e80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1982.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1982 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1983.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1983.ets new file mode 100644 index 000000000..3dd9478bc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1983.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1983 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1984.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1984.ets new file mode 100644 index 000000000..3bf1c182f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1984.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1984 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1985.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1985.ets new file mode 100644 index 000000000..d2779de0f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1985.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1985 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1986.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1986.ets new file mode 100644 index 000000000..134fe527d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1986.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1986 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1987.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1987.ets new file mode 100644 index 000000000..c82c839c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1987.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1987 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1988.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1988.ets new file mode 100644 index 000000000..3dc0e8dae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1988.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1988 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1989.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1989.ets new file mode 100644 index 000000000..d87a4dc3e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1989.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1989 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile199.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile199.ets new file mode 100644 index 000000000..989aec779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile199.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent398 } from "./manyImportFile398" +import { ManyImportComponent399 } from "./manyImportFile399" + + +@Component +export struct ManyImportComponent199 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent398() + ManyImportComponent399() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1990.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1990.ets new file mode 100644 index 000000000..5ce47fc62 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1990.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1990 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1991.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1991.ets new file mode 100644 index 000000000..dc9c94eb7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1991.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1991 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1992.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1992.ets new file mode 100644 index 000000000..66abdd140 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1992.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1992 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1993.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1993.ets new file mode 100644 index 000000000..13acc2b44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1993.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1993 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1994.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1994.ets new file mode 100644 index 000000000..790d87a6b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1994.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1994 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1995.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1995.ets new file mode 100644 index 000000000..548e87373 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1995.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1995 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1996.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1996.ets new file mode 100644 index 000000000..484b7e5c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1996.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1996 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1997.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1997.ets new file mode 100644 index 000000000..1e312c42e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1997.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1997 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1998.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1998.ets new file mode 100644 index 000000000..b20c5010e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1998.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1998 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1999.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1999.ets new file mode 100644 index 000000000..bbc4f9224 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile1999.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent1999 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2.ets new file mode 100644 index 000000000..beff8cfb1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent4 } from "./manyImportFile4" +import { ManyImportComponent5 } from "./manyImportFile5" + + +@Component +export struct ManyImportComponent2 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent4() + ManyImportComponent5() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile20.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile20.ets new file mode 100644 index 000000000..c9a44f8a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile20.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent40 } from "./manyImportFile40" +import { ManyImportComponent41 } from "./manyImportFile41" + + +@Component +export struct ManyImportComponent20 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent40() + ManyImportComponent41() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile200.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile200.ets new file mode 100644 index 000000000..0381c5db9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile200.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent400 } from "./manyImportFile400" +import { ManyImportComponent401 } from "./manyImportFile401" + + +@Component +export struct ManyImportComponent200 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent400() + ManyImportComponent401() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2000.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2000.ets new file mode 100644 index 000000000..05b10adb5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile2000.ets @@ -0,0 +1,16 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" + + +@Component +export struct ManyImportComponent2000 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile201.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile201.ets new file mode 100644 index 000000000..1fae8dffb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile201.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent402 } from "./manyImportFile402" +import { ManyImportComponent403 } from "./manyImportFile403" + + +@Component +export struct ManyImportComponent201 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent402() + ManyImportComponent403() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile202.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile202.ets new file mode 100644 index 000000000..e84d2f132 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile202.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent404 } from "./manyImportFile404" +import { ManyImportComponent405 } from "./manyImportFile405" + + +@Component +export struct ManyImportComponent202 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent404() + ManyImportComponent405() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile203.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile203.ets new file mode 100644 index 000000000..3af5b08d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile203.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent406 } from "./manyImportFile406" +import { ManyImportComponent407 } from "./manyImportFile407" + + +@Component +export struct ManyImportComponent203 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent406() + ManyImportComponent407() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile204.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile204.ets new file mode 100644 index 000000000..1d67bcd44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile204.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent408 } from "./manyImportFile408" +import { ManyImportComponent409 } from "./manyImportFile409" + + +@Component +export struct ManyImportComponent204 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent408() + ManyImportComponent409() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile205.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile205.ets new file mode 100644 index 000000000..6f9564462 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile205.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent410 } from "./manyImportFile410" +import { ManyImportComponent411 } from "./manyImportFile411" + + +@Component +export struct ManyImportComponent205 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent410() + ManyImportComponent411() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile206.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile206.ets new file mode 100644 index 000000000..d23971dec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile206.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent412 } from "./manyImportFile412" +import { ManyImportComponent413 } from "./manyImportFile413" + + +@Component +export struct ManyImportComponent206 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent412() + ManyImportComponent413() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile207.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile207.ets new file mode 100644 index 000000000..3ba1626dc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile207.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent414 } from "./manyImportFile414" +import { ManyImportComponent415 } from "./manyImportFile415" + + +@Component +export struct ManyImportComponent207 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent414() + ManyImportComponent415() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile208.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile208.ets new file mode 100644 index 000000000..2101ea38d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile208.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent416 } from "./manyImportFile416" +import { ManyImportComponent417 } from "./manyImportFile417" + + +@Component +export struct ManyImportComponent208 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent416() + ManyImportComponent417() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile209.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile209.ets new file mode 100644 index 000000000..4a4faf3ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile209.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent418 } from "./manyImportFile418" +import { ManyImportComponent419 } from "./manyImportFile419" + + +@Component +export struct ManyImportComponent209 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent418() + ManyImportComponent419() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile21.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile21.ets new file mode 100644 index 000000000..24330a751 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile21.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent42 } from "./manyImportFile42" +import { ManyImportComponent43 } from "./manyImportFile43" + + +@Component +export struct ManyImportComponent21 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent42() + ManyImportComponent43() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile210.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile210.ets new file mode 100644 index 000000000..1d69aade7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile210.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent420 } from "./manyImportFile420" +import { ManyImportComponent421 } from "./manyImportFile421" + + +@Component +export struct ManyImportComponent210 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent420() + ManyImportComponent421() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile211.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile211.ets new file mode 100644 index 000000000..3f99830b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile211.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent422 } from "./manyImportFile422" +import { ManyImportComponent423 } from "./manyImportFile423" + + +@Component +export struct ManyImportComponent211 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent422() + ManyImportComponent423() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile212.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile212.ets new file mode 100644 index 000000000..4befb6d78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile212.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent424 } from "./manyImportFile424" +import { ManyImportComponent425 } from "./manyImportFile425" + + +@Component +export struct ManyImportComponent212 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent424() + ManyImportComponent425() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile213.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile213.ets new file mode 100644 index 000000000..aa136c0f3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile213.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent426 } from "./manyImportFile426" +import { ManyImportComponent427 } from "./manyImportFile427" + + +@Component +export struct ManyImportComponent213 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent426() + ManyImportComponent427() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile214.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile214.ets new file mode 100644 index 000000000..cf7a1a622 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile214.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent428 } from "./manyImportFile428" +import { ManyImportComponent429 } from "./manyImportFile429" + + +@Component +export struct ManyImportComponent214 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent428() + ManyImportComponent429() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile215.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile215.ets new file mode 100644 index 000000000..8c5b39459 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile215.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent430 } from "./manyImportFile430" +import { ManyImportComponent431 } from "./manyImportFile431" + + +@Component +export struct ManyImportComponent215 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent430() + ManyImportComponent431() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile216.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile216.ets new file mode 100644 index 000000000..46fe95dc1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile216.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent432 } from "./manyImportFile432" +import { ManyImportComponent433 } from "./manyImportFile433" + + +@Component +export struct ManyImportComponent216 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent432() + ManyImportComponent433() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile217.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile217.ets new file mode 100644 index 000000000..85fbf6d52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile217.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent434 } from "./manyImportFile434" +import { ManyImportComponent435 } from "./manyImportFile435" + + +@Component +export struct ManyImportComponent217 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent434() + ManyImportComponent435() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile218.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile218.ets new file mode 100644 index 000000000..c7a8d1eb4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile218.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent436 } from "./manyImportFile436" +import { ManyImportComponent437 } from "./manyImportFile437" + + +@Component +export struct ManyImportComponent218 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent436() + ManyImportComponent437() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile219.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile219.ets new file mode 100644 index 000000000..d516e146b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile219.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent438 } from "./manyImportFile438" +import { ManyImportComponent439 } from "./manyImportFile439" + + +@Component +export struct ManyImportComponent219 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent438() + ManyImportComponent439() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile22.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile22.ets new file mode 100644 index 000000000..103e5413c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile22.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent44 } from "./manyImportFile44" +import { ManyImportComponent45 } from "./manyImportFile45" + + +@Component +export struct ManyImportComponent22 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent44() + ManyImportComponent45() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile220.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile220.ets new file mode 100644 index 000000000..e23cc4a78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile220.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent440 } from "./manyImportFile440" +import { ManyImportComponent441 } from "./manyImportFile441" + + +@Component +export struct ManyImportComponent220 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent440() + ManyImportComponent441() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile221.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile221.ets new file mode 100644 index 000000000..4f404c5dd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile221.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent442 } from "./manyImportFile442" +import { ManyImportComponent443 } from "./manyImportFile443" + + +@Component +export struct ManyImportComponent221 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent442() + ManyImportComponent443() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile222.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile222.ets new file mode 100644 index 000000000..b708d7dc9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile222.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent444 } from "./manyImportFile444" +import { ManyImportComponent445 } from "./manyImportFile445" + + +@Component +export struct ManyImportComponent222 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent444() + ManyImportComponent445() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile223.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile223.ets new file mode 100644 index 000000000..45c9710b7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile223.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent446 } from "./manyImportFile446" +import { ManyImportComponent447 } from "./manyImportFile447" + + +@Component +export struct ManyImportComponent223 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent446() + ManyImportComponent447() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile224.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile224.ets new file mode 100644 index 000000000..d911e7ba2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile224.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent448 } from "./manyImportFile448" +import { ManyImportComponent449 } from "./manyImportFile449" + + +@Component +export struct ManyImportComponent224 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent448() + ManyImportComponent449() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile225.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile225.ets new file mode 100644 index 000000000..c479eb787 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile225.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent450 } from "./manyImportFile450" +import { ManyImportComponent451 } from "./manyImportFile451" + + +@Component +export struct ManyImportComponent225 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent450() + ManyImportComponent451() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile226.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile226.ets new file mode 100644 index 000000000..208b310c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile226.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent452 } from "./manyImportFile452" +import { ManyImportComponent453 } from "./manyImportFile453" + + +@Component +export struct ManyImportComponent226 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent452() + ManyImportComponent453() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile227.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile227.ets new file mode 100644 index 000000000..cf6b004a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile227.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent454 } from "./manyImportFile454" +import { ManyImportComponent455 } from "./manyImportFile455" + + +@Component +export struct ManyImportComponent227 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent454() + ManyImportComponent455() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile228.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile228.ets new file mode 100644 index 000000000..589abbb3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile228.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent456 } from "./manyImportFile456" +import { ManyImportComponent457 } from "./manyImportFile457" + + +@Component +export struct ManyImportComponent228 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent456() + ManyImportComponent457() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile229.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile229.ets new file mode 100644 index 000000000..b96919655 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile229.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent458 } from "./manyImportFile458" +import { ManyImportComponent459 } from "./manyImportFile459" + + +@Component +export struct ManyImportComponent229 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent458() + ManyImportComponent459() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile23.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile23.ets new file mode 100644 index 000000000..950b2fd87 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile23.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent46 } from "./manyImportFile46" +import { ManyImportComponent47 } from "./manyImportFile47" + + +@Component +export struct ManyImportComponent23 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent46() + ManyImportComponent47() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile230.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile230.ets new file mode 100644 index 000000000..021a87ff6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile230.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent460 } from "./manyImportFile460" +import { ManyImportComponent461 } from "./manyImportFile461" + + +@Component +export struct ManyImportComponent230 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent460() + ManyImportComponent461() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile231.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile231.ets new file mode 100644 index 000000000..ced98ef64 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile231.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent462 } from "./manyImportFile462" +import { ManyImportComponent463 } from "./manyImportFile463" + + +@Component +export struct ManyImportComponent231 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent462() + ManyImportComponent463() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile232.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile232.ets new file mode 100644 index 000000000..686396949 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile232.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent464 } from "./manyImportFile464" +import { ManyImportComponent465 } from "./manyImportFile465" + + +@Component +export struct ManyImportComponent232 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent464() + ManyImportComponent465() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile233.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile233.ets new file mode 100644 index 000000000..b23d9c92e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile233.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent466 } from "./manyImportFile466" +import { ManyImportComponent467 } from "./manyImportFile467" + + +@Component +export struct ManyImportComponent233 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent466() + ManyImportComponent467() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile234.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile234.ets new file mode 100644 index 000000000..bc5b7de39 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile234.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent468 } from "./manyImportFile468" +import { ManyImportComponent469 } from "./manyImportFile469" + + +@Component +export struct ManyImportComponent234 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent468() + ManyImportComponent469() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile235.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile235.ets new file mode 100644 index 000000000..06786a908 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile235.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent470 } from "./manyImportFile470" +import { ManyImportComponent471 } from "./manyImportFile471" + + +@Component +export struct ManyImportComponent235 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent470() + ManyImportComponent471() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile236.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile236.ets new file mode 100644 index 000000000..69366b161 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile236.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent472 } from "./manyImportFile472" +import { ManyImportComponent473 } from "./manyImportFile473" + + +@Component +export struct ManyImportComponent236 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent472() + ManyImportComponent473() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile237.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile237.ets new file mode 100644 index 000000000..49cf7f380 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile237.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent474 } from "./manyImportFile474" +import { ManyImportComponent475 } from "./manyImportFile475" + + +@Component +export struct ManyImportComponent237 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent474() + ManyImportComponent475() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile238.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile238.ets new file mode 100644 index 000000000..02acd38bf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile238.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent476 } from "./manyImportFile476" +import { ManyImportComponent477 } from "./manyImportFile477" + + +@Component +export struct ManyImportComponent238 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent476() + ManyImportComponent477() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile239.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile239.ets new file mode 100644 index 000000000..e410b66c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile239.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent478 } from "./manyImportFile478" +import { ManyImportComponent479 } from "./manyImportFile479" + + +@Component +export struct ManyImportComponent239 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent478() + ManyImportComponent479() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile24.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile24.ets new file mode 100644 index 000000000..030df768b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile24.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent48 } from "./manyImportFile48" +import { ManyImportComponent49 } from "./manyImportFile49" + + +@Component +export struct ManyImportComponent24 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent48() + ManyImportComponent49() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile240.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile240.ets new file mode 100644 index 000000000..38b46210c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile240.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent480 } from "./manyImportFile480" +import { ManyImportComponent481 } from "./manyImportFile481" + + +@Component +export struct ManyImportComponent240 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent480() + ManyImportComponent481() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile241.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile241.ets new file mode 100644 index 000000000..a324c7b1d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile241.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent482 } from "./manyImportFile482" +import { ManyImportComponent483 } from "./manyImportFile483" + + +@Component +export struct ManyImportComponent241 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent482() + ManyImportComponent483() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile242.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile242.ets new file mode 100644 index 000000000..59342fc21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile242.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent484 } from "./manyImportFile484" +import { ManyImportComponent485 } from "./manyImportFile485" + + +@Component +export struct ManyImportComponent242 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent484() + ManyImportComponent485() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile243.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile243.ets new file mode 100644 index 000000000..584822a7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile243.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent486 } from "./manyImportFile486" +import { ManyImportComponent487 } from "./manyImportFile487" + + +@Component +export struct ManyImportComponent243 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent486() + ManyImportComponent487() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile244.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile244.ets new file mode 100644 index 000000000..c020cd58b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile244.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent488 } from "./manyImportFile488" +import { ManyImportComponent489 } from "./manyImportFile489" + + +@Component +export struct ManyImportComponent244 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent488() + ManyImportComponent489() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile245.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile245.ets new file mode 100644 index 000000000..9ea1aad3e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile245.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent490 } from "./manyImportFile490" +import { ManyImportComponent491 } from "./manyImportFile491" + + +@Component +export struct ManyImportComponent245 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent490() + ManyImportComponent491() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile246.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile246.ets new file mode 100644 index 000000000..ea13d0cdc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile246.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent492 } from "./manyImportFile492" +import { ManyImportComponent493 } from "./manyImportFile493" + + +@Component +export struct ManyImportComponent246 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent492() + ManyImportComponent493() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile247.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile247.ets new file mode 100644 index 000000000..15e10ad0f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile247.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent494 } from "./manyImportFile494" +import { ManyImportComponent495 } from "./manyImportFile495" + + +@Component +export struct ManyImportComponent247 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent494() + ManyImportComponent495() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile248.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile248.ets new file mode 100644 index 000000000..92f8d60e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile248.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent496 } from "./manyImportFile496" +import { ManyImportComponent497 } from "./manyImportFile497" + + +@Component +export struct ManyImportComponent248 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent496() + ManyImportComponent497() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile249.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile249.ets new file mode 100644 index 000000000..3c2ca0eb6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile249.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent498 } from "./manyImportFile498" +import { ManyImportComponent499 } from "./manyImportFile499" + + +@Component +export struct ManyImportComponent249 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent498() + ManyImportComponent499() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile25.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile25.ets new file mode 100644 index 000000000..e36d1883b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile25.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent50 } from "./manyImportFile50" +import { ManyImportComponent51 } from "./manyImportFile51" + + +@Component +export struct ManyImportComponent25 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent50() + ManyImportComponent51() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile250.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile250.ets new file mode 100644 index 000000000..4764f08d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile250.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent500 } from "./manyImportFile500" +import { ManyImportComponent501 } from "./manyImportFile501" + + +@Component +export struct ManyImportComponent250 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent500() + ManyImportComponent501() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile251.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile251.ets new file mode 100644 index 000000000..53786b330 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile251.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent502 } from "./manyImportFile502" +import { ManyImportComponent503 } from "./manyImportFile503" + + +@Component +export struct ManyImportComponent251 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent502() + ManyImportComponent503() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile252.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile252.ets new file mode 100644 index 000000000..5805f75d1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile252.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent504 } from "./manyImportFile504" +import { ManyImportComponent505 } from "./manyImportFile505" + + +@Component +export struct ManyImportComponent252 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent504() + ManyImportComponent505() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile253.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile253.ets new file mode 100644 index 000000000..122433581 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile253.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent506 } from "./manyImportFile506" +import { ManyImportComponent507 } from "./manyImportFile507" + + +@Component +export struct ManyImportComponent253 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent506() + ManyImportComponent507() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile254.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile254.ets new file mode 100644 index 000000000..e5c3aa741 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile254.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent508 } from "./manyImportFile508" +import { ManyImportComponent509 } from "./manyImportFile509" + + +@Component +export struct ManyImportComponent254 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent508() + ManyImportComponent509() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile255.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile255.ets new file mode 100644 index 000000000..1b060d1e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile255.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent510 } from "./manyImportFile510" +import { ManyImportComponent511 } from "./manyImportFile511" + + +@Component +export struct ManyImportComponent255 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent510() + ManyImportComponent511() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile256.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile256.ets new file mode 100644 index 000000000..a45511f29 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile256.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent512 } from "./manyImportFile512" +import { ManyImportComponent513 } from "./manyImportFile513" + + +@Component +export struct ManyImportComponent256 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent512() + ManyImportComponent513() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile257.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile257.ets new file mode 100644 index 000000000..d7bfedee1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile257.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent514 } from "./manyImportFile514" +import { ManyImportComponent515 } from "./manyImportFile515" + + +@Component +export struct ManyImportComponent257 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent514() + ManyImportComponent515() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile258.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile258.ets new file mode 100644 index 000000000..d29470ea6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile258.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent516 } from "./manyImportFile516" +import { ManyImportComponent517 } from "./manyImportFile517" + + +@Component +export struct ManyImportComponent258 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent516() + ManyImportComponent517() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile259.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile259.ets new file mode 100644 index 000000000..970f41cea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile259.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent518 } from "./manyImportFile518" +import { ManyImportComponent519 } from "./manyImportFile519" + + +@Component +export struct ManyImportComponent259 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent518() + ManyImportComponent519() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile26.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile26.ets new file mode 100644 index 000000000..7063dc9db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile26.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent52 } from "./manyImportFile52" +import { ManyImportComponent53 } from "./manyImportFile53" + + +@Component +export struct ManyImportComponent26 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent52() + ManyImportComponent53() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile260.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile260.ets new file mode 100644 index 000000000..67129edbb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile260.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent520 } from "./manyImportFile520" +import { ManyImportComponent521 } from "./manyImportFile521" + + +@Component +export struct ManyImportComponent260 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent520() + ManyImportComponent521() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile261.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile261.ets new file mode 100644 index 000000000..bfeaef9c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile261.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent522 } from "./manyImportFile522" +import { ManyImportComponent523 } from "./manyImportFile523" + + +@Component +export struct ManyImportComponent261 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent522() + ManyImportComponent523() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile262.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile262.ets new file mode 100644 index 000000000..9b0699b21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile262.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent524 } from "./manyImportFile524" +import { ManyImportComponent525 } from "./manyImportFile525" + + +@Component +export struct ManyImportComponent262 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent524() + ManyImportComponent525() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile263.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile263.ets new file mode 100644 index 000000000..54e44d1bf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile263.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent526 } from "./manyImportFile526" +import { ManyImportComponent527 } from "./manyImportFile527" + + +@Component +export struct ManyImportComponent263 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent526() + ManyImportComponent527() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile264.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile264.ets new file mode 100644 index 000000000..8f9369174 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile264.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent528 } from "./manyImportFile528" +import { ManyImportComponent529 } from "./manyImportFile529" + + +@Component +export struct ManyImportComponent264 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent528() + ManyImportComponent529() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile265.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile265.ets new file mode 100644 index 000000000..687b5cade --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile265.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent530 } from "./manyImportFile530" +import { ManyImportComponent531 } from "./manyImportFile531" + + +@Component +export struct ManyImportComponent265 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent530() + ManyImportComponent531() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile266.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile266.ets new file mode 100644 index 000000000..b4a687e10 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile266.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent532 } from "./manyImportFile532" +import { ManyImportComponent533 } from "./manyImportFile533" + + +@Component +export struct ManyImportComponent266 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent532() + ManyImportComponent533() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile267.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile267.ets new file mode 100644 index 000000000..ded7ddc44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile267.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent534 } from "./manyImportFile534" +import { ManyImportComponent535 } from "./manyImportFile535" + + +@Component +export struct ManyImportComponent267 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent534() + ManyImportComponent535() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile268.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile268.ets new file mode 100644 index 000000000..c5a108675 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile268.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent536 } from "./manyImportFile536" +import { ManyImportComponent537 } from "./manyImportFile537" + + +@Component +export struct ManyImportComponent268 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent536() + ManyImportComponent537() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile269.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile269.ets new file mode 100644 index 000000000..64d023eee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile269.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent538 } from "./manyImportFile538" +import { ManyImportComponent539 } from "./manyImportFile539" + + +@Component +export struct ManyImportComponent269 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent538() + ManyImportComponent539() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile27.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile27.ets new file mode 100644 index 000000000..05d413b12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile27.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent54 } from "./manyImportFile54" +import { ManyImportComponent55 } from "./manyImportFile55" + + +@Component +export struct ManyImportComponent27 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent54() + ManyImportComponent55() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile270.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile270.ets new file mode 100644 index 000000000..6cbec91e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile270.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent540 } from "./manyImportFile540" +import { ManyImportComponent541 } from "./manyImportFile541" + + +@Component +export struct ManyImportComponent270 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent540() + ManyImportComponent541() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile271.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile271.ets new file mode 100644 index 000000000..0a0b8e78a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile271.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent542 } from "./manyImportFile542" +import { ManyImportComponent543 } from "./manyImportFile543" + + +@Component +export struct ManyImportComponent271 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent542() + ManyImportComponent543() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile272.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile272.ets new file mode 100644 index 000000000..65e9ff848 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile272.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent544 } from "./manyImportFile544" +import { ManyImportComponent545 } from "./manyImportFile545" + + +@Component +export struct ManyImportComponent272 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent544() + ManyImportComponent545() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile273.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile273.ets new file mode 100644 index 000000000..0101e8907 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile273.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent546 } from "./manyImportFile546" +import { ManyImportComponent547 } from "./manyImportFile547" + + +@Component +export struct ManyImportComponent273 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent546() + ManyImportComponent547() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile274.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile274.ets new file mode 100644 index 000000000..66e56aeb8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile274.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent548 } from "./manyImportFile548" +import { ManyImportComponent549 } from "./manyImportFile549" + + +@Component +export struct ManyImportComponent274 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent548() + ManyImportComponent549() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile275.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile275.ets new file mode 100644 index 000000000..cca01d264 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile275.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent550 } from "./manyImportFile550" +import { ManyImportComponent551 } from "./manyImportFile551" + + +@Component +export struct ManyImportComponent275 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent550() + ManyImportComponent551() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile276.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile276.ets new file mode 100644 index 000000000..fa8fea141 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile276.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent552 } from "./manyImportFile552" +import { ManyImportComponent553 } from "./manyImportFile553" + + +@Component +export struct ManyImportComponent276 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent552() + ManyImportComponent553() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile277.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile277.ets new file mode 100644 index 000000000..29e708d07 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile277.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent554 } from "./manyImportFile554" +import { ManyImportComponent555 } from "./manyImportFile555" + + +@Component +export struct ManyImportComponent277 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent554() + ManyImportComponent555() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile278.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile278.ets new file mode 100644 index 000000000..1154acc50 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile278.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent556 } from "./manyImportFile556" +import { ManyImportComponent557 } from "./manyImportFile557" + + +@Component +export struct ManyImportComponent278 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent556() + ManyImportComponent557() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile279.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile279.ets new file mode 100644 index 000000000..293c06cce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile279.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent558 } from "./manyImportFile558" +import { ManyImportComponent559 } from "./manyImportFile559" + + +@Component +export struct ManyImportComponent279 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent558() + ManyImportComponent559() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile28.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile28.ets new file mode 100644 index 000000000..609f4017a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile28.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent56 } from "./manyImportFile56" +import { ManyImportComponent57 } from "./manyImportFile57" + + +@Component +export struct ManyImportComponent28 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent56() + ManyImportComponent57() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile280.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile280.ets new file mode 100644 index 000000000..0d7582aec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile280.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent560 } from "./manyImportFile560" +import { ManyImportComponent561 } from "./manyImportFile561" + + +@Component +export struct ManyImportComponent280 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent560() + ManyImportComponent561() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile281.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile281.ets new file mode 100644 index 000000000..9dc79c443 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile281.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent562 } from "./manyImportFile562" +import { ManyImportComponent563 } from "./manyImportFile563" + + +@Component +export struct ManyImportComponent281 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent562() + ManyImportComponent563() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile282.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile282.ets new file mode 100644 index 000000000..3b51aea5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile282.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent564 } from "./manyImportFile564" +import { ManyImportComponent565 } from "./manyImportFile565" + + +@Component +export struct ManyImportComponent282 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent564() + ManyImportComponent565() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile283.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile283.ets new file mode 100644 index 000000000..34ca08483 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile283.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent566 } from "./manyImportFile566" +import { ManyImportComponent567 } from "./manyImportFile567" + + +@Component +export struct ManyImportComponent283 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent566() + ManyImportComponent567() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile284.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile284.ets new file mode 100644 index 000000000..ac489f7b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile284.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent568 } from "./manyImportFile568" +import { ManyImportComponent569 } from "./manyImportFile569" + + +@Component +export struct ManyImportComponent284 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent568() + ManyImportComponent569() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile285.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile285.ets new file mode 100644 index 000000000..8682b55c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile285.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent570 } from "./manyImportFile570" +import { ManyImportComponent571 } from "./manyImportFile571" + + +@Component +export struct ManyImportComponent285 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent570() + ManyImportComponent571() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile286.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile286.ets new file mode 100644 index 000000000..eb1cd3c18 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile286.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent572 } from "./manyImportFile572" +import { ManyImportComponent573 } from "./manyImportFile573" + + +@Component +export struct ManyImportComponent286 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent572() + ManyImportComponent573() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile287.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile287.ets new file mode 100644 index 000000000..3d51eb2c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile287.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent574 } from "./manyImportFile574" +import { ManyImportComponent575 } from "./manyImportFile575" + + +@Component +export struct ManyImportComponent287 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent574() + ManyImportComponent575() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile288.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile288.ets new file mode 100644 index 000000000..2ae5d0eed --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile288.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent576 } from "./manyImportFile576" +import { ManyImportComponent577 } from "./manyImportFile577" + + +@Component +export struct ManyImportComponent288 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent576() + ManyImportComponent577() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile289.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile289.ets new file mode 100644 index 000000000..206f92114 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile289.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent578 } from "./manyImportFile578" +import { ManyImportComponent579 } from "./manyImportFile579" + + +@Component +export struct ManyImportComponent289 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent578() + ManyImportComponent579() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile29.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile29.ets new file mode 100644 index 000000000..9dd359359 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile29.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent58 } from "./manyImportFile58" +import { ManyImportComponent59 } from "./manyImportFile59" + + +@Component +export struct ManyImportComponent29 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent58() + ManyImportComponent59() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile290.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile290.ets new file mode 100644 index 000000000..1a456d79d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile290.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent580 } from "./manyImportFile580" +import { ManyImportComponent581 } from "./manyImportFile581" + + +@Component +export struct ManyImportComponent290 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent580() + ManyImportComponent581() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile291.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile291.ets new file mode 100644 index 000000000..23478dcdb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile291.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent582 } from "./manyImportFile582" +import { ManyImportComponent583 } from "./manyImportFile583" + + +@Component +export struct ManyImportComponent291 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent582() + ManyImportComponent583() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile292.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile292.ets new file mode 100644 index 000000000..186cbdd74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile292.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent584 } from "./manyImportFile584" +import { ManyImportComponent585 } from "./manyImportFile585" + + +@Component +export struct ManyImportComponent292 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent584() + ManyImportComponent585() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile293.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile293.ets new file mode 100644 index 000000000..d2d2e50ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile293.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent586 } from "./manyImportFile586" +import { ManyImportComponent587 } from "./manyImportFile587" + + +@Component +export struct ManyImportComponent293 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent586() + ManyImportComponent587() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile294.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile294.ets new file mode 100644 index 000000000..9fdd4400b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile294.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent588 } from "./manyImportFile588" +import { ManyImportComponent589 } from "./manyImportFile589" + + +@Component +export struct ManyImportComponent294 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent588() + ManyImportComponent589() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile295.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile295.ets new file mode 100644 index 000000000..5b978ed09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile295.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent590 } from "./manyImportFile590" +import { ManyImportComponent591 } from "./manyImportFile591" + + +@Component +export struct ManyImportComponent295 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent590() + ManyImportComponent591() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile296.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile296.ets new file mode 100644 index 000000000..d1b00215d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile296.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent592 } from "./manyImportFile592" +import { ManyImportComponent593 } from "./manyImportFile593" + + +@Component +export struct ManyImportComponent296 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent592() + ManyImportComponent593() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile297.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile297.ets new file mode 100644 index 000000000..5b28897af --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile297.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent594 } from "./manyImportFile594" +import { ManyImportComponent595 } from "./manyImportFile595" + + +@Component +export struct ManyImportComponent297 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent594() + ManyImportComponent595() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile298.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile298.ets new file mode 100644 index 000000000..0b2674e17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile298.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent596 } from "./manyImportFile596" +import { ManyImportComponent597 } from "./manyImportFile597" + + +@Component +export struct ManyImportComponent298 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent596() + ManyImportComponent597() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile299.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile299.ets new file mode 100644 index 000000000..23078fd42 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile299.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent598 } from "./manyImportFile598" +import { ManyImportComponent599 } from "./manyImportFile599" + + +@Component +export struct ManyImportComponent299 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent598() + ManyImportComponent599() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile3.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile3.ets new file mode 100644 index 000000000..ceec169a5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile3.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent6 } from "./manyImportFile6" +import { ManyImportComponent7 } from "./manyImportFile7" + + +@Component +export struct ManyImportComponent3 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent6() + ManyImportComponent7() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile30.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile30.ets new file mode 100644 index 000000000..42f89cdb8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile30.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent60 } from "./manyImportFile60" +import { ManyImportComponent61 } from "./manyImportFile61" + + +@Component +export struct ManyImportComponent30 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent60() + ManyImportComponent61() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile300.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile300.ets new file mode 100644 index 000000000..a6f864cf4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile300.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent600 } from "./manyImportFile600" +import { ManyImportComponent601 } from "./manyImportFile601" + + +@Component +export struct ManyImportComponent300 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent600() + ManyImportComponent601() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile301.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile301.ets new file mode 100644 index 000000000..a91f51d77 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile301.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent602 } from "./manyImportFile602" +import { ManyImportComponent603 } from "./manyImportFile603" + + +@Component +export struct ManyImportComponent301 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent602() + ManyImportComponent603() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile302.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile302.ets new file mode 100644 index 000000000..f25858967 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile302.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent604 } from "./manyImportFile604" +import { ManyImportComponent605 } from "./manyImportFile605" + + +@Component +export struct ManyImportComponent302 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent604() + ManyImportComponent605() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile303.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile303.ets new file mode 100644 index 000000000..11e7413cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile303.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent606 } from "./manyImportFile606" +import { ManyImportComponent607 } from "./manyImportFile607" + + +@Component +export struct ManyImportComponent303 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent606() + ManyImportComponent607() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile304.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile304.ets new file mode 100644 index 000000000..96467d43b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile304.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent608 } from "./manyImportFile608" +import { ManyImportComponent609 } from "./manyImportFile609" + + +@Component +export struct ManyImportComponent304 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent608() + ManyImportComponent609() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile305.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile305.ets new file mode 100644 index 000000000..81025cd43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile305.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent610 } from "./manyImportFile610" +import { ManyImportComponent611 } from "./manyImportFile611" + + +@Component +export struct ManyImportComponent305 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent610() + ManyImportComponent611() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile306.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile306.ets new file mode 100644 index 000000000..beaf989d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile306.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent612 } from "./manyImportFile612" +import { ManyImportComponent613 } from "./manyImportFile613" + + +@Component +export struct ManyImportComponent306 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent612() + ManyImportComponent613() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile307.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile307.ets new file mode 100644 index 000000000..ecc241a2b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile307.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent614 } from "./manyImportFile614" +import { ManyImportComponent615 } from "./manyImportFile615" + + +@Component +export struct ManyImportComponent307 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent614() + ManyImportComponent615() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile308.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile308.ets new file mode 100644 index 000000000..4b66254fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile308.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent616 } from "./manyImportFile616" +import { ManyImportComponent617 } from "./manyImportFile617" + + +@Component +export struct ManyImportComponent308 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent616() + ManyImportComponent617() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile309.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile309.ets new file mode 100644 index 000000000..0528459f4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile309.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent618 } from "./manyImportFile618" +import { ManyImportComponent619 } from "./manyImportFile619" + + +@Component +export struct ManyImportComponent309 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent618() + ManyImportComponent619() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile31.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile31.ets new file mode 100644 index 000000000..7121cda1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile31.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent62 } from "./manyImportFile62" +import { ManyImportComponent63 } from "./manyImportFile63" + + +@Component +export struct ManyImportComponent31 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent62() + ManyImportComponent63() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile310.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile310.ets new file mode 100644 index 000000000..8e0b60219 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile310.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent620 } from "./manyImportFile620" +import { ManyImportComponent621 } from "./manyImportFile621" + + +@Component +export struct ManyImportComponent310 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent620() + ManyImportComponent621() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile311.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile311.ets new file mode 100644 index 000000000..7eb7b1409 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile311.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent622 } from "./manyImportFile622" +import { ManyImportComponent623 } from "./manyImportFile623" + + +@Component +export struct ManyImportComponent311 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent622() + ManyImportComponent623() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile312.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile312.ets new file mode 100644 index 000000000..efa8c003d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile312.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent624 } from "./manyImportFile624" +import { ManyImportComponent625 } from "./manyImportFile625" + + +@Component +export struct ManyImportComponent312 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent624() + ManyImportComponent625() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile313.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile313.ets new file mode 100644 index 000000000..ed54da28a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile313.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent626 } from "./manyImportFile626" +import { ManyImportComponent627 } from "./manyImportFile627" + + +@Component +export struct ManyImportComponent313 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent626() + ManyImportComponent627() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile314.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile314.ets new file mode 100644 index 000000000..cbc448885 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile314.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent628 } from "./manyImportFile628" +import { ManyImportComponent629 } from "./manyImportFile629" + + +@Component +export struct ManyImportComponent314 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent628() + ManyImportComponent629() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile315.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile315.ets new file mode 100644 index 000000000..69ef65b35 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile315.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent630 } from "./manyImportFile630" +import { ManyImportComponent631 } from "./manyImportFile631" + + +@Component +export struct ManyImportComponent315 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent630() + ManyImportComponent631() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile316.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile316.ets new file mode 100644 index 000000000..9555f0c85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile316.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent632 } from "./manyImportFile632" +import { ManyImportComponent633 } from "./manyImportFile633" + + +@Component +export struct ManyImportComponent316 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent632() + ManyImportComponent633() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile317.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile317.ets new file mode 100644 index 000000000..84c164a56 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile317.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent634 } from "./manyImportFile634" +import { ManyImportComponent635 } from "./manyImportFile635" + + +@Component +export struct ManyImportComponent317 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent634() + ManyImportComponent635() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile318.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile318.ets new file mode 100644 index 000000000..fad6a622b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile318.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent636 } from "./manyImportFile636" +import { ManyImportComponent637 } from "./manyImportFile637" + + +@Component +export struct ManyImportComponent318 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent636() + ManyImportComponent637() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile319.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile319.ets new file mode 100644 index 000000000..49fc9f963 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile319.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent638 } from "./manyImportFile638" +import { ManyImportComponent639 } from "./manyImportFile639" + + +@Component +export struct ManyImportComponent319 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent638() + ManyImportComponent639() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile32.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile32.ets new file mode 100644 index 000000000..b30c2d07a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile32.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent64 } from "./manyImportFile64" +import { ManyImportComponent65 } from "./manyImportFile65" + + +@Component +export struct ManyImportComponent32 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent64() + ManyImportComponent65() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile320.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile320.ets new file mode 100644 index 000000000..ce6676f30 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile320.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent640 } from "./manyImportFile640" +import { ManyImportComponent641 } from "./manyImportFile641" + + +@Component +export struct ManyImportComponent320 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent640() + ManyImportComponent641() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile321.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile321.ets new file mode 100644 index 000000000..71c4f41ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile321.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent642 } from "./manyImportFile642" +import { ManyImportComponent643 } from "./manyImportFile643" + + +@Component +export struct ManyImportComponent321 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent642() + ManyImportComponent643() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile322.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile322.ets new file mode 100644 index 000000000..664881ba0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile322.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent644 } from "./manyImportFile644" +import { ManyImportComponent645 } from "./manyImportFile645" + + +@Component +export struct ManyImportComponent322 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent644() + ManyImportComponent645() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile323.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile323.ets new file mode 100644 index 000000000..90161b85a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile323.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent646 } from "./manyImportFile646" +import { ManyImportComponent647 } from "./manyImportFile647" + + +@Component +export struct ManyImportComponent323 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent646() + ManyImportComponent647() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile324.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile324.ets new file mode 100644 index 000000000..13c827753 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile324.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent648 } from "./manyImportFile648" +import { ManyImportComponent649 } from "./manyImportFile649" + + +@Component +export struct ManyImportComponent324 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent648() + ManyImportComponent649() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile325.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile325.ets new file mode 100644 index 000000000..958df83e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile325.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent650 } from "./manyImportFile650" +import { ManyImportComponent651 } from "./manyImportFile651" + + +@Component +export struct ManyImportComponent325 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent650() + ManyImportComponent651() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile326.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile326.ets new file mode 100644 index 000000000..c4e5e0a35 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile326.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent652 } from "./manyImportFile652" +import { ManyImportComponent653 } from "./manyImportFile653" + + +@Component +export struct ManyImportComponent326 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent652() + ManyImportComponent653() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile327.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile327.ets new file mode 100644 index 000000000..acddb3764 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile327.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent654 } from "./manyImportFile654" +import { ManyImportComponent655 } from "./manyImportFile655" + + +@Component +export struct ManyImportComponent327 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent654() + ManyImportComponent655() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile328.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile328.ets new file mode 100644 index 000000000..6ff17de4a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile328.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent656 } from "./manyImportFile656" +import { ManyImportComponent657 } from "./manyImportFile657" + + +@Component +export struct ManyImportComponent328 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent656() + ManyImportComponent657() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile329.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile329.ets new file mode 100644 index 000000000..60709f61e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile329.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent658 } from "./manyImportFile658" +import { ManyImportComponent659 } from "./manyImportFile659" + + +@Component +export struct ManyImportComponent329 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent658() + ManyImportComponent659() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile33.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile33.ets new file mode 100644 index 000000000..3654596e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile33.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent66 } from "./manyImportFile66" +import { ManyImportComponent67 } from "./manyImportFile67" + + +@Component +export struct ManyImportComponent33 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent66() + ManyImportComponent67() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile330.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile330.ets new file mode 100644 index 000000000..8c3ea331c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile330.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent660 } from "./manyImportFile660" +import { ManyImportComponent661 } from "./manyImportFile661" + + +@Component +export struct ManyImportComponent330 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent660() + ManyImportComponent661() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile331.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile331.ets new file mode 100644 index 000000000..9cafa4707 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile331.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent662 } from "./manyImportFile662" +import { ManyImportComponent663 } from "./manyImportFile663" + + +@Component +export struct ManyImportComponent331 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent662() + ManyImportComponent663() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile332.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile332.ets new file mode 100644 index 000000000..ed5cdb952 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile332.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent664 } from "./manyImportFile664" +import { ManyImportComponent665 } from "./manyImportFile665" + + +@Component +export struct ManyImportComponent332 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent664() + ManyImportComponent665() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile333.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile333.ets new file mode 100644 index 000000000..bf1c05379 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile333.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent666 } from "./manyImportFile666" +import { ManyImportComponent667 } from "./manyImportFile667" + + +@Component +export struct ManyImportComponent333 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent666() + ManyImportComponent667() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile334.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile334.ets new file mode 100644 index 000000000..6ae6df80a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile334.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent668 } from "./manyImportFile668" +import { ManyImportComponent669 } from "./manyImportFile669" + + +@Component +export struct ManyImportComponent334 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent668() + ManyImportComponent669() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile335.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile335.ets new file mode 100644 index 000000000..1d21d020a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile335.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent670 } from "./manyImportFile670" +import { ManyImportComponent671 } from "./manyImportFile671" + + +@Component +export struct ManyImportComponent335 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent670() + ManyImportComponent671() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile336.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile336.ets new file mode 100644 index 000000000..123050039 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile336.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent672 } from "./manyImportFile672" +import { ManyImportComponent673 } from "./manyImportFile673" + + +@Component +export struct ManyImportComponent336 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent672() + ManyImportComponent673() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile337.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile337.ets new file mode 100644 index 000000000..ba70d2420 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile337.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent674 } from "./manyImportFile674" +import { ManyImportComponent675 } from "./manyImportFile675" + + +@Component +export struct ManyImportComponent337 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent674() + ManyImportComponent675() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile338.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile338.ets new file mode 100644 index 000000000..4fb3b5e4e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile338.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent676 } from "./manyImportFile676" +import { ManyImportComponent677 } from "./manyImportFile677" + + +@Component +export struct ManyImportComponent338 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent676() + ManyImportComponent677() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile339.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile339.ets new file mode 100644 index 000000000..8342de0cd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile339.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent678 } from "./manyImportFile678" +import { ManyImportComponent679 } from "./manyImportFile679" + + +@Component +export struct ManyImportComponent339 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent678() + ManyImportComponent679() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile34.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile34.ets new file mode 100644 index 000000000..91e27bf0f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile34.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent68 } from "./manyImportFile68" +import { ManyImportComponent69 } from "./manyImportFile69" + + +@Component +export struct ManyImportComponent34 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent68() + ManyImportComponent69() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile340.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile340.ets new file mode 100644 index 000000000..400132c8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile340.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent680 } from "./manyImportFile680" +import { ManyImportComponent681 } from "./manyImportFile681" + + +@Component +export struct ManyImportComponent340 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent680() + ManyImportComponent681() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile341.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile341.ets new file mode 100644 index 000000000..bd426234b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile341.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent682 } from "./manyImportFile682" +import { ManyImportComponent683 } from "./manyImportFile683" + + +@Component +export struct ManyImportComponent341 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent682() + ManyImportComponent683() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile342.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile342.ets new file mode 100644 index 000000000..2060e872d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile342.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent684 } from "./manyImportFile684" +import { ManyImportComponent685 } from "./manyImportFile685" + + +@Component +export struct ManyImportComponent342 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent684() + ManyImportComponent685() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile343.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile343.ets new file mode 100644 index 000000000..b8611d3cb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile343.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent686 } from "./manyImportFile686" +import { ManyImportComponent687 } from "./manyImportFile687" + + +@Component +export struct ManyImportComponent343 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent686() + ManyImportComponent687() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile344.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile344.ets new file mode 100644 index 000000000..58d44a9ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile344.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent688 } from "./manyImportFile688" +import { ManyImportComponent689 } from "./manyImportFile689" + + +@Component +export struct ManyImportComponent344 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent688() + ManyImportComponent689() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile345.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile345.ets new file mode 100644 index 000000000..7fe31ce32 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile345.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent690 } from "./manyImportFile690" +import { ManyImportComponent691 } from "./manyImportFile691" + + +@Component +export struct ManyImportComponent345 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent690() + ManyImportComponent691() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile346.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile346.ets new file mode 100644 index 000000000..0171048d6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile346.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent692 } from "./manyImportFile692" +import { ManyImportComponent693 } from "./manyImportFile693" + + +@Component +export struct ManyImportComponent346 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent692() + ManyImportComponent693() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile347.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile347.ets new file mode 100644 index 000000000..6f54e2451 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile347.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent694 } from "./manyImportFile694" +import { ManyImportComponent695 } from "./manyImportFile695" + + +@Component +export struct ManyImportComponent347 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent694() + ManyImportComponent695() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile348.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile348.ets new file mode 100644 index 000000000..198b80677 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile348.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent696 } from "./manyImportFile696" +import { ManyImportComponent697 } from "./manyImportFile697" + + +@Component +export struct ManyImportComponent348 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent696() + ManyImportComponent697() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile349.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile349.ets new file mode 100644 index 000000000..1b5f62dbe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile349.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent698 } from "./manyImportFile698" +import { ManyImportComponent699 } from "./manyImportFile699" + + +@Component +export struct ManyImportComponent349 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent698() + ManyImportComponent699() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile35.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile35.ets new file mode 100644 index 000000000..9fca3e03e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile35.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent70 } from "./manyImportFile70" +import { ManyImportComponent71 } from "./manyImportFile71" + + +@Component +export struct ManyImportComponent35 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent70() + ManyImportComponent71() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile350.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile350.ets new file mode 100644 index 000000000..76571500e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile350.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent700 } from "./manyImportFile700" +import { ManyImportComponent701 } from "./manyImportFile701" + + +@Component +export struct ManyImportComponent350 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent700() + ManyImportComponent701() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile351.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile351.ets new file mode 100644 index 000000000..cc6033b1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile351.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent702 } from "./manyImportFile702" +import { ManyImportComponent703 } from "./manyImportFile703" + + +@Component +export struct ManyImportComponent351 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent702() + ManyImportComponent703() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile352.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile352.ets new file mode 100644 index 000000000..c048702ae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile352.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent704 } from "./manyImportFile704" +import { ManyImportComponent705 } from "./manyImportFile705" + + +@Component +export struct ManyImportComponent352 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent704() + ManyImportComponent705() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile353.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile353.ets new file mode 100644 index 000000000..41856fccc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile353.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent706 } from "./manyImportFile706" +import { ManyImportComponent707 } from "./manyImportFile707" + + +@Component +export struct ManyImportComponent353 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent706() + ManyImportComponent707() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile354.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile354.ets new file mode 100644 index 000000000..a49d1dbd3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile354.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent708 } from "./manyImportFile708" +import { ManyImportComponent709 } from "./manyImportFile709" + + +@Component +export struct ManyImportComponent354 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent708() + ManyImportComponent709() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile355.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile355.ets new file mode 100644 index 000000000..0ecda8729 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile355.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent710 } from "./manyImportFile710" +import { ManyImportComponent711 } from "./manyImportFile711" + + +@Component +export struct ManyImportComponent355 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent710() + ManyImportComponent711() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile356.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile356.ets new file mode 100644 index 000000000..5ad0e8d7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile356.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent712 } from "./manyImportFile712" +import { ManyImportComponent713 } from "./manyImportFile713" + + +@Component +export struct ManyImportComponent356 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent712() + ManyImportComponent713() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile357.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile357.ets new file mode 100644 index 000000000..fd059bddc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile357.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent714 } from "./manyImportFile714" +import { ManyImportComponent715 } from "./manyImportFile715" + + +@Component +export struct ManyImportComponent357 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent714() + ManyImportComponent715() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile358.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile358.ets new file mode 100644 index 000000000..d5b25b2a0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile358.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent716 } from "./manyImportFile716" +import { ManyImportComponent717 } from "./manyImportFile717" + + +@Component +export struct ManyImportComponent358 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent716() + ManyImportComponent717() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile359.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile359.ets new file mode 100644 index 000000000..10e318427 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile359.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent718 } from "./manyImportFile718" +import { ManyImportComponent719 } from "./manyImportFile719" + + +@Component +export struct ManyImportComponent359 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent718() + ManyImportComponent719() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile36.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile36.ets new file mode 100644 index 000000000..851912659 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile36.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent72 } from "./manyImportFile72" +import { ManyImportComponent73 } from "./manyImportFile73" + + +@Component +export struct ManyImportComponent36 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent72() + ManyImportComponent73() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile360.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile360.ets new file mode 100644 index 000000000..fa5c5342f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile360.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent720 } from "./manyImportFile720" +import { ManyImportComponent721 } from "./manyImportFile721" + + +@Component +export struct ManyImportComponent360 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent720() + ManyImportComponent721() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile361.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile361.ets new file mode 100644 index 000000000..40cc4dc71 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile361.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent722 } from "./manyImportFile722" +import { ManyImportComponent723 } from "./manyImportFile723" + + +@Component +export struct ManyImportComponent361 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent722() + ManyImportComponent723() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile362.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile362.ets new file mode 100644 index 000000000..4a4a01716 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile362.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent724 } from "./manyImportFile724" +import { ManyImportComponent725 } from "./manyImportFile725" + + +@Component +export struct ManyImportComponent362 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent724() + ManyImportComponent725() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile363.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile363.ets new file mode 100644 index 000000000..be4a615a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile363.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent726 } from "./manyImportFile726" +import { ManyImportComponent727 } from "./manyImportFile727" + + +@Component +export struct ManyImportComponent363 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent726() + ManyImportComponent727() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile364.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile364.ets new file mode 100644 index 000000000..563ff1e45 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile364.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent728 } from "./manyImportFile728" +import { ManyImportComponent729 } from "./manyImportFile729" + + +@Component +export struct ManyImportComponent364 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent728() + ManyImportComponent729() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile365.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile365.ets new file mode 100644 index 000000000..8cc986c9e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile365.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent730 } from "./manyImportFile730" +import { ManyImportComponent731 } from "./manyImportFile731" + + +@Component +export struct ManyImportComponent365 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent730() + ManyImportComponent731() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile366.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile366.ets new file mode 100644 index 000000000..db2f296ce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile366.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent732 } from "./manyImportFile732" +import { ManyImportComponent733 } from "./manyImportFile733" + + +@Component +export struct ManyImportComponent366 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent732() + ManyImportComponent733() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile367.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile367.ets new file mode 100644 index 000000000..8a1649874 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile367.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent734 } from "./manyImportFile734" +import { ManyImportComponent735 } from "./manyImportFile735" + + +@Component +export struct ManyImportComponent367 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent734() + ManyImportComponent735() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile368.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile368.ets new file mode 100644 index 000000000..418c5a7c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile368.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent736 } from "./manyImportFile736" +import { ManyImportComponent737 } from "./manyImportFile737" + + +@Component +export struct ManyImportComponent368 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent736() + ManyImportComponent737() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile369.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile369.ets new file mode 100644 index 000000000..a3dced0fc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile369.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent738 } from "./manyImportFile738" +import { ManyImportComponent739 } from "./manyImportFile739" + + +@Component +export struct ManyImportComponent369 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent738() + ManyImportComponent739() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile37.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile37.ets new file mode 100644 index 000000000..04a5a4df8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile37.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent74 } from "./manyImportFile74" +import { ManyImportComponent75 } from "./manyImportFile75" + + +@Component +export struct ManyImportComponent37 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent74() + ManyImportComponent75() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile370.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile370.ets new file mode 100644 index 000000000..25975a09f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile370.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent740 } from "./manyImportFile740" +import { ManyImportComponent741 } from "./manyImportFile741" + + +@Component +export struct ManyImportComponent370 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent740() + ManyImportComponent741() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile371.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile371.ets new file mode 100644 index 000000000..22f3e3c4f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile371.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent742 } from "./manyImportFile742" +import { ManyImportComponent743 } from "./manyImportFile743" + + +@Component +export struct ManyImportComponent371 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent742() + ManyImportComponent743() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile372.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile372.ets new file mode 100644 index 000000000..e26bb948e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile372.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent744 } from "./manyImportFile744" +import { ManyImportComponent745 } from "./manyImportFile745" + + +@Component +export struct ManyImportComponent372 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent744() + ManyImportComponent745() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile373.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile373.ets new file mode 100644 index 000000000..6cd017d74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile373.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent746 } from "./manyImportFile746" +import { ManyImportComponent747 } from "./manyImportFile747" + + +@Component +export struct ManyImportComponent373 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent746() + ManyImportComponent747() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile374.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile374.ets new file mode 100644 index 000000000..b01593ba7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile374.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent748 } from "./manyImportFile748" +import { ManyImportComponent749 } from "./manyImportFile749" + + +@Component +export struct ManyImportComponent374 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent748() + ManyImportComponent749() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile375.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile375.ets new file mode 100644 index 000000000..7b7992d09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile375.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent750 } from "./manyImportFile750" +import { ManyImportComponent751 } from "./manyImportFile751" + + +@Component +export struct ManyImportComponent375 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent750() + ManyImportComponent751() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile376.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile376.ets new file mode 100644 index 000000000..607bec764 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile376.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent752 } from "./manyImportFile752" +import { ManyImportComponent753 } from "./manyImportFile753" + + +@Component +export struct ManyImportComponent376 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent752() + ManyImportComponent753() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile377.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile377.ets new file mode 100644 index 000000000..f2f53ee00 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile377.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent754 } from "./manyImportFile754" +import { ManyImportComponent755 } from "./manyImportFile755" + + +@Component +export struct ManyImportComponent377 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent754() + ManyImportComponent755() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile378.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile378.ets new file mode 100644 index 000000000..4286fed8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile378.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent756 } from "./manyImportFile756" +import { ManyImportComponent757 } from "./manyImportFile757" + + +@Component +export struct ManyImportComponent378 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent756() + ManyImportComponent757() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile379.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile379.ets new file mode 100644 index 000000000..935ae2b25 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile379.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent758 } from "./manyImportFile758" +import { ManyImportComponent759 } from "./manyImportFile759" + + +@Component +export struct ManyImportComponent379 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent758() + ManyImportComponent759() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile38.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile38.ets new file mode 100644 index 000000000..74ca70eac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile38.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent76 } from "./manyImportFile76" +import { ManyImportComponent77 } from "./manyImportFile77" + + +@Component +export struct ManyImportComponent38 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent76() + ManyImportComponent77() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile380.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile380.ets new file mode 100644 index 000000000..37014a061 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile380.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent760 } from "./manyImportFile760" +import { ManyImportComponent761 } from "./manyImportFile761" + + +@Component +export struct ManyImportComponent380 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent760() + ManyImportComponent761() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile381.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile381.ets new file mode 100644 index 000000000..1a3d7f7c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile381.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent762 } from "./manyImportFile762" +import { ManyImportComponent763 } from "./manyImportFile763" + + +@Component +export struct ManyImportComponent381 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent762() + ManyImportComponent763() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile382.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile382.ets new file mode 100644 index 000000000..f9a774bd8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile382.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent764 } from "./manyImportFile764" +import { ManyImportComponent765 } from "./manyImportFile765" + + +@Component +export struct ManyImportComponent382 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent764() + ManyImportComponent765() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile383.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile383.ets new file mode 100644 index 000000000..8523cfbfb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile383.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent766 } from "./manyImportFile766" +import { ManyImportComponent767 } from "./manyImportFile767" + + +@Component +export struct ManyImportComponent383 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent766() + ManyImportComponent767() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile384.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile384.ets new file mode 100644 index 000000000..751b3a36e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile384.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent768 } from "./manyImportFile768" +import { ManyImportComponent769 } from "./manyImportFile769" + + +@Component +export struct ManyImportComponent384 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent768() + ManyImportComponent769() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile385.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile385.ets new file mode 100644 index 000000000..ea11ebfed --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile385.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent770 } from "./manyImportFile770" +import { ManyImportComponent771 } from "./manyImportFile771" + + +@Component +export struct ManyImportComponent385 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent770() + ManyImportComponent771() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile386.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile386.ets new file mode 100644 index 000000000..7abdfca22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile386.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent772 } from "./manyImportFile772" +import { ManyImportComponent773 } from "./manyImportFile773" + + +@Component +export struct ManyImportComponent386 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent772() + ManyImportComponent773() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile387.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile387.ets new file mode 100644 index 000000000..90d8d7a30 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile387.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent774 } from "./manyImportFile774" +import { ManyImportComponent775 } from "./manyImportFile775" + + +@Component +export struct ManyImportComponent387 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent774() + ManyImportComponent775() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile388.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile388.ets new file mode 100644 index 000000000..a01d18176 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile388.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent776 } from "./manyImportFile776" +import { ManyImportComponent777 } from "./manyImportFile777" + + +@Component +export struct ManyImportComponent388 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent776() + ManyImportComponent777() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile389.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile389.ets new file mode 100644 index 000000000..9038f5aec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile389.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent778 } from "./manyImportFile778" +import { ManyImportComponent779 } from "./manyImportFile779" + + +@Component +export struct ManyImportComponent389 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent778() + ManyImportComponent779() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile39.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile39.ets new file mode 100644 index 000000000..b201b4650 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile39.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent78 } from "./manyImportFile78" +import { ManyImportComponent79 } from "./manyImportFile79" + + +@Component +export struct ManyImportComponent39 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent78() + ManyImportComponent79() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile390.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile390.ets new file mode 100644 index 000000000..c7c8e494a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile390.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent780 } from "./manyImportFile780" +import { ManyImportComponent781 } from "./manyImportFile781" + + +@Component +export struct ManyImportComponent390 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent780() + ManyImportComponent781() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile391.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile391.ets new file mode 100644 index 000000000..34b548c81 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile391.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent782 } from "./manyImportFile782" +import { ManyImportComponent783 } from "./manyImportFile783" + + +@Component +export struct ManyImportComponent391 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent782() + ManyImportComponent783() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile392.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile392.ets new file mode 100644 index 000000000..23d0adbba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile392.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent784 } from "./manyImportFile784" +import { ManyImportComponent785 } from "./manyImportFile785" + + +@Component +export struct ManyImportComponent392 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent784() + ManyImportComponent785() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile393.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile393.ets new file mode 100644 index 000000000..33ca80c14 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile393.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent786 } from "./manyImportFile786" +import { ManyImportComponent787 } from "./manyImportFile787" + + +@Component +export struct ManyImportComponent393 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent786() + ManyImportComponent787() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile394.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile394.ets new file mode 100644 index 000000000..f6ceb97d7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile394.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent788 } from "./manyImportFile788" +import { ManyImportComponent789 } from "./manyImportFile789" + + +@Component +export struct ManyImportComponent394 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent788() + ManyImportComponent789() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile395.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile395.ets new file mode 100644 index 000000000..2d1578dfb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile395.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent790 } from "./manyImportFile790" +import { ManyImportComponent791 } from "./manyImportFile791" + + +@Component +export struct ManyImportComponent395 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent790() + ManyImportComponent791() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile396.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile396.ets new file mode 100644 index 000000000..4e059caab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile396.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent792 } from "./manyImportFile792" +import { ManyImportComponent793 } from "./manyImportFile793" + + +@Component +export struct ManyImportComponent396 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent792() + ManyImportComponent793() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile397.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile397.ets new file mode 100644 index 000000000..a744ab33c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile397.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent794 } from "./manyImportFile794" +import { ManyImportComponent795 } from "./manyImportFile795" + + +@Component +export struct ManyImportComponent397 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent794() + ManyImportComponent795() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile398.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile398.ets new file mode 100644 index 000000000..ec3529722 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile398.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent796 } from "./manyImportFile796" +import { ManyImportComponent797 } from "./manyImportFile797" + + +@Component +export struct ManyImportComponent398 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent796() + ManyImportComponent797() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile399.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile399.ets new file mode 100644 index 000000000..1f838eca4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile399.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent798 } from "./manyImportFile798" +import { ManyImportComponent799 } from "./manyImportFile799" + + +@Component +export struct ManyImportComponent399 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent798() + ManyImportComponent799() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile4.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile4.ets new file mode 100644 index 000000000..ebd8e409f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile4.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent8 } from "./manyImportFile8" +import { ManyImportComponent9 } from "./manyImportFile9" + + +@Component +export struct ManyImportComponent4 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent8() + ManyImportComponent9() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile40.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile40.ets new file mode 100644 index 000000000..cd23c09ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile40.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent80 } from "./manyImportFile80" +import { ManyImportComponent81 } from "./manyImportFile81" + + +@Component +export struct ManyImportComponent40 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent80() + ManyImportComponent81() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile400.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile400.ets new file mode 100644 index 000000000..e75ea73b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile400.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent800 } from "./manyImportFile800" +import { ManyImportComponent801 } from "./manyImportFile801" + + +@Component +export struct ManyImportComponent400 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent800() + ManyImportComponent801() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile401.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile401.ets new file mode 100644 index 000000000..58bfe0329 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile401.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent802 } from "./manyImportFile802" +import { ManyImportComponent803 } from "./manyImportFile803" + + +@Component +export struct ManyImportComponent401 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent802() + ManyImportComponent803() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile402.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile402.ets new file mode 100644 index 000000000..0272b5a36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile402.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent804 } from "./manyImportFile804" +import { ManyImportComponent805 } from "./manyImportFile805" + + +@Component +export struct ManyImportComponent402 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent804() + ManyImportComponent805() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile403.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile403.ets new file mode 100644 index 000000000..2d99484ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile403.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent806 } from "./manyImportFile806" +import { ManyImportComponent807 } from "./manyImportFile807" + + +@Component +export struct ManyImportComponent403 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent806() + ManyImportComponent807() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile404.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile404.ets new file mode 100644 index 000000000..f7fa7edec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile404.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent808 } from "./manyImportFile808" +import { ManyImportComponent809 } from "./manyImportFile809" + + +@Component +export struct ManyImportComponent404 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent808() + ManyImportComponent809() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile405.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile405.ets new file mode 100644 index 000000000..2e5d3ae18 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile405.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent810 } from "./manyImportFile810" +import { ManyImportComponent811 } from "./manyImportFile811" + + +@Component +export struct ManyImportComponent405 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent810() + ManyImportComponent811() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile406.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile406.ets new file mode 100644 index 000000000..b20577e63 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile406.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent812 } from "./manyImportFile812" +import { ManyImportComponent813 } from "./manyImportFile813" + + +@Component +export struct ManyImportComponent406 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent812() + ManyImportComponent813() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile407.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile407.ets new file mode 100644 index 000000000..c20514ad8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile407.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent814 } from "./manyImportFile814" +import { ManyImportComponent815 } from "./manyImportFile815" + + +@Component +export struct ManyImportComponent407 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent814() + ManyImportComponent815() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile408.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile408.ets new file mode 100644 index 000000000..fdd3b4336 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile408.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent816 } from "./manyImportFile816" +import { ManyImportComponent817 } from "./manyImportFile817" + + +@Component +export struct ManyImportComponent408 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent816() + ManyImportComponent817() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile409.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile409.ets new file mode 100644 index 000000000..e10929f23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile409.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent818 } from "./manyImportFile818" +import { ManyImportComponent819 } from "./manyImportFile819" + + +@Component +export struct ManyImportComponent409 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent818() + ManyImportComponent819() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile41.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile41.ets new file mode 100644 index 000000000..2018ad1a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile41.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent82 } from "./manyImportFile82" +import { ManyImportComponent83 } from "./manyImportFile83" + + +@Component +export struct ManyImportComponent41 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent82() + ManyImportComponent83() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile410.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile410.ets new file mode 100644 index 000000000..65d4fef23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile410.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent820 } from "./manyImportFile820" +import { ManyImportComponent821 } from "./manyImportFile821" + + +@Component +export struct ManyImportComponent410 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent820() + ManyImportComponent821() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile411.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile411.ets new file mode 100644 index 000000000..9e3af14ec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile411.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent822 } from "./manyImportFile822" +import { ManyImportComponent823 } from "./manyImportFile823" + + +@Component +export struct ManyImportComponent411 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent822() + ManyImportComponent823() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile412.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile412.ets new file mode 100644 index 000000000..d8e5fbe89 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile412.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent824 } from "./manyImportFile824" +import { ManyImportComponent825 } from "./manyImportFile825" + + +@Component +export struct ManyImportComponent412 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent824() + ManyImportComponent825() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile413.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile413.ets new file mode 100644 index 000000000..2057401c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile413.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent826 } from "./manyImportFile826" +import { ManyImportComponent827 } from "./manyImportFile827" + + +@Component +export struct ManyImportComponent413 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent826() + ManyImportComponent827() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile414.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile414.ets new file mode 100644 index 000000000..ce82fee5a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile414.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent828 } from "./manyImportFile828" +import { ManyImportComponent829 } from "./manyImportFile829" + + +@Component +export struct ManyImportComponent414 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent828() + ManyImportComponent829() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile415.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile415.ets new file mode 100644 index 000000000..1678d5af0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile415.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent830 } from "./manyImportFile830" +import { ManyImportComponent831 } from "./manyImportFile831" + + +@Component +export struct ManyImportComponent415 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent830() + ManyImportComponent831() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile416.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile416.ets new file mode 100644 index 000000000..1c966dbea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile416.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent832 } from "./manyImportFile832" +import { ManyImportComponent833 } from "./manyImportFile833" + + +@Component +export struct ManyImportComponent416 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent832() + ManyImportComponent833() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile417.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile417.ets new file mode 100644 index 000000000..a8bfa1ae5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile417.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent834 } from "./manyImportFile834" +import { ManyImportComponent835 } from "./manyImportFile835" + + +@Component +export struct ManyImportComponent417 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent834() + ManyImportComponent835() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile418.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile418.ets new file mode 100644 index 000000000..3601e0b36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile418.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent836 } from "./manyImportFile836" +import { ManyImportComponent837 } from "./manyImportFile837" + + +@Component +export struct ManyImportComponent418 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent836() + ManyImportComponent837() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile419.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile419.ets new file mode 100644 index 000000000..a757f8134 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile419.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent838 } from "./manyImportFile838" +import { ManyImportComponent839 } from "./manyImportFile839" + + +@Component +export struct ManyImportComponent419 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent838() + ManyImportComponent839() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile42.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile42.ets new file mode 100644 index 000000000..21ddd5989 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile42.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent84 } from "./manyImportFile84" +import { ManyImportComponent85 } from "./manyImportFile85" + + +@Component +export struct ManyImportComponent42 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent84() + ManyImportComponent85() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile420.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile420.ets new file mode 100644 index 000000000..e261aeef9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile420.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent840 } from "./manyImportFile840" +import { ManyImportComponent841 } from "./manyImportFile841" + + +@Component +export struct ManyImportComponent420 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent840() + ManyImportComponent841() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile421.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile421.ets new file mode 100644 index 000000000..8fc1da7be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile421.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent842 } from "./manyImportFile842" +import { ManyImportComponent843 } from "./manyImportFile843" + + +@Component +export struct ManyImportComponent421 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent842() + ManyImportComponent843() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile422.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile422.ets new file mode 100644 index 000000000..586e8051c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile422.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent844 } from "./manyImportFile844" +import { ManyImportComponent845 } from "./manyImportFile845" + + +@Component +export struct ManyImportComponent422 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent844() + ManyImportComponent845() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile423.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile423.ets new file mode 100644 index 000000000..0381fe21d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile423.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent846 } from "./manyImportFile846" +import { ManyImportComponent847 } from "./manyImportFile847" + + +@Component +export struct ManyImportComponent423 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent846() + ManyImportComponent847() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile424.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile424.ets new file mode 100644 index 000000000..42b5823fe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile424.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent848 } from "./manyImportFile848" +import { ManyImportComponent849 } from "./manyImportFile849" + + +@Component +export struct ManyImportComponent424 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent848() + ManyImportComponent849() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile425.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile425.ets new file mode 100644 index 000000000..ef9899eee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile425.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent850 } from "./manyImportFile850" +import { ManyImportComponent851 } from "./manyImportFile851" + + +@Component +export struct ManyImportComponent425 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent850() + ManyImportComponent851() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile426.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile426.ets new file mode 100644 index 000000000..29748e9c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile426.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent852 } from "./manyImportFile852" +import { ManyImportComponent853 } from "./manyImportFile853" + + +@Component +export struct ManyImportComponent426 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent852() + ManyImportComponent853() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile427.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile427.ets new file mode 100644 index 000000000..c44034404 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile427.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent854 } from "./manyImportFile854" +import { ManyImportComponent855 } from "./manyImportFile855" + + +@Component +export struct ManyImportComponent427 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent854() + ManyImportComponent855() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile428.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile428.ets new file mode 100644 index 000000000..f8db74c38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile428.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent856 } from "./manyImportFile856" +import { ManyImportComponent857 } from "./manyImportFile857" + + +@Component +export struct ManyImportComponent428 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent856() + ManyImportComponent857() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile429.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile429.ets new file mode 100644 index 000000000..ff044fd88 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile429.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent858 } from "./manyImportFile858" +import { ManyImportComponent859 } from "./manyImportFile859" + + +@Component +export struct ManyImportComponent429 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent858() + ManyImportComponent859() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile43.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile43.ets new file mode 100644 index 000000000..359de16c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile43.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent86 } from "./manyImportFile86" +import { ManyImportComponent87 } from "./manyImportFile87" + + +@Component +export struct ManyImportComponent43 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent86() + ManyImportComponent87() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile430.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile430.ets new file mode 100644 index 000000000..6a86c96b1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile430.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent860 } from "./manyImportFile860" +import { ManyImportComponent861 } from "./manyImportFile861" + + +@Component +export struct ManyImportComponent430 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent860() + ManyImportComponent861() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile431.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile431.ets new file mode 100644 index 000000000..bb93ff5d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile431.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent862 } from "./manyImportFile862" +import { ManyImportComponent863 } from "./manyImportFile863" + + +@Component +export struct ManyImportComponent431 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent862() + ManyImportComponent863() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile432.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile432.ets new file mode 100644 index 000000000..73d5c2dd0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile432.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent864 } from "./manyImportFile864" +import { ManyImportComponent865 } from "./manyImportFile865" + + +@Component +export struct ManyImportComponent432 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent864() + ManyImportComponent865() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile433.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile433.ets new file mode 100644 index 000000000..4d93cc3f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile433.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent866 } from "./manyImportFile866" +import { ManyImportComponent867 } from "./manyImportFile867" + + +@Component +export struct ManyImportComponent433 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent866() + ManyImportComponent867() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile434.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile434.ets new file mode 100644 index 000000000..52b0f59f0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile434.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent868 } from "./manyImportFile868" +import { ManyImportComponent869 } from "./manyImportFile869" + + +@Component +export struct ManyImportComponent434 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent868() + ManyImportComponent869() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile435.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile435.ets new file mode 100644 index 000000000..94349c3be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile435.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent870 } from "./manyImportFile870" +import { ManyImportComponent871 } from "./manyImportFile871" + + +@Component +export struct ManyImportComponent435 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent870() + ManyImportComponent871() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile436.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile436.ets new file mode 100644 index 000000000..7e9650bb6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile436.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent872 } from "./manyImportFile872" +import { ManyImportComponent873 } from "./manyImportFile873" + + +@Component +export struct ManyImportComponent436 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent872() + ManyImportComponent873() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile437.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile437.ets new file mode 100644 index 000000000..450b2c0f5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile437.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent874 } from "./manyImportFile874" +import { ManyImportComponent875 } from "./manyImportFile875" + + +@Component +export struct ManyImportComponent437 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent874() + ManyImportComponent875() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile438.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile438.ets new file mode 100644 index 000000000..7107c4e83 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile438.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent876 } from "./manyImportFile876" +import { ManyImportComponent877 } from "./manyImportFile877" + + +@Component +export struct ManyImportComponent438 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent876() + ManyImportComponent877() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile439.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile439.ets new file mode 100644 index 000000000..fbda78819 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile439.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent878 } from "./manyImportFile878" +import { ManyImportComponent879 } from "./manyImportFile879" + + +@Component +export struct ManyImportComponent439 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent878() + ManyImportComponent879() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile44.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile44.ets new file mode 100644 index 000000000..cb9380a93 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile44.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent88 } from "./manyImportFile88" +import { ManyImportComponent89 } from "./manyImportFile89" + + +@Component +export struct ManyImportComponent44 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent88() + ManyImportComponent89() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile440.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile440.ets new file mode 100644 index 000000000..714681971 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile440.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent880 } from "./manyImportFile880" +import { ManyImportComponent881 } from "./manyImportFile881" + + +@Component +export struct ManyImportComponent440 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent880() + ManyImportComponent881() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile441.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile441.ets new file mode 100644 index 000000000..b69ea895b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile441.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent882 } from "./manyImportFile882" +import { ManyImportComponent883 } from "./manyImportFile883" + + +@Component +export struct ManyImportComponent441 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent882() + ManyImportComponent883() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile442.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile442.ets new file mode 100644 index 000000000..df7db7cbc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile442.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent884 } from "./manyImportFile884" +import { ManyImportComponent885 } from "./manyImportFile885" + + +@Component +export struct ManyImportComponent442 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent884() + ManyImportComponent885() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile443.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile443.ets new file mode 100644 index 000000000..e9046d779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile443.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent886 } from "./manyImportFile886" +import { ManyImportComponent887 } from "./manyImportFile887" + + +@Component +export struct ManyImportComponent443 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent886() + ManyImportComponent887() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile444.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile444.ets new file mode 100644 index 000000000..e98c67356 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile444.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent888 } from "./manyImportFile888" +import { ManyImportComponent889 } from "./manyImportFile889" + + +@Component +export struct ManyImportComponent444 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent888() + ManyImportComponent889() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile445.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile445.ets new file mode 100644 index 000000000..527d249e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile445.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent890 } from "./manyImportFile890" +import { ManyImportComponent891 } from "./manyImportFile891" + + +@Component +export struct ManyImportComponent445 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent890() + ManyImportComponent891() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile446.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile446.ets new file mode 100644 index 000000000..247a6c003 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile446.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent892 } from "./manyImportFile892" +import { ManyImportComponent893 } from "./manyImportFile893" + + +@Component +export struct ManyImportComponent446 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent892() + ManyImportComponent893() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile447.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile447.ets new file mode 100644 index 000000000..cc4454c1f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile447.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent894 } from "./manyImportFile894" +import { ManyImportComponent895 } from "./manyImportFile895" + + +@Component +export struct ManyImportComponent447 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent894() + ManyImportComponent895() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile448.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile448.ets new file mode 100644 index 000000000..2628a5991 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile448.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent896 } from "./manyImportFile896" +import { ManyImportComponent897 } from "./manyImportFile897" + + +@Component +export struct ManyImportComponent448 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent896() + ManyImportComponent897() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile449.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile449.ets new file mode 100644 index 000000000..7b7dae256 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile449.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent898 } from "./manyImportFile898" +import { ManyImportComponent899 } from "./manyImportFile899" + + +@Component +export struct ManyImportComponent449 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent898() + ManyImportComponent899() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile45.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile45.ets new file mode 100644 index 000000000..56b9d60b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile45.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent90 } from "./manyImportFile90" +import { ManyImportComponent91 } from "./manyImportFile91" + + +@Component +export struct ManyImportComponent45 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent90() + ManyImportComponent91() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile450.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile450.ets new file mode 100644 index 000000000..c5a4e792b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile450.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent900 } from "./manyImportFile900" +import { ManyImportComponent901 } from "./manyImportFile901" + + +@Component +export struct ManyImportComponent450 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent900() + ManyImportComponent901() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile451.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile451.ets new file mode 100644 index 000000000..b1d87cd87 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile451.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent902 } from "./manyImportFile902" +import { ManyImportComponent903 } from "./manyImportFile903" + + +@Component +export struct ManyImportComponent451 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent902() + ManyImportComponent903() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile452.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile452.ets new file mode 100644 index 000000000..7497c6392 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile452.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent904 } from "./manyImportFile904" +import { ManyImportComponent905 } from "./manyImportFile905" + + +@Component +export struct ManyImportComponent452 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent904() + ManyImportComponent905() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile453.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile453.ets new file mode 100644 index 000000000..b865c7582 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile453.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent906 } from "./manyImportFile906" +import { ManyImportComponent907 } from "./manyImportFile907" + + +@Component +export struct ManyImportComponent453 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent906() + ManyImportComponent907() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile454.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile454.ets new file mode 100644 index 000000000..c9445bc83 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile454.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent908 } from "./manyImportFile908" +import { ManyImportComponent909 } from "./manyImportFile909" + + +@Component +export struct ManyImportComponent454 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent908() + ManyImportComponent909() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile455.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile455.ets new file mode 100644 index 000000000..1d44b50f7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile455.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent910 } from "./manyImportFile910" +import { ManyImportComponent911 } from "./manyImportFile911" + + +@Component +export struct ManyImportComponent455 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent910() + ManyImportComponent911() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile456.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile456.ets new file mode 100644 index 000000000..9330c4aac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile456.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent912 } from "./manyImportFile912" +import { ManyImportComponent913 } from "./manyImportFile913" + + +@Component +export struct ManyImportComponent456 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent912() + ManyImportComponent913() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile457.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile457.ets new file mode 100644 index 000000000..6798f2cae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile457.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent914 } from "./manyImportFile914" +import { ManyImportComponent915 } from "./manyImportFile915" + + +@Component +export struct ManyImportComponent457 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent914() + ManyImportComponent915() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile458.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile458.ets new file mode 100644 index 000000000..a0348a148 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile458.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent916 } from "./manyImportFile916" +import { ManyImportComponent917 } from "./manyImportFile917" + + +@Component +export struct ManyImportComponent458 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent916() + ManyImportComponent917() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile459.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile459.ets new file mode 100644 index 000000000..406f264b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile459.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent918 } from "./manyImportFile918" +import { ManyImportComponent919 } from "./manyImportFile919" + + +@Component +export struct ManyImportComponent459 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent918() + ManyImportComponent919() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile46.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile46.ets new file mode 100644 index 000000000..4f10d1487 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile46.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent92 } from "./manyImportFile92" +import { ManyImportComponent93 } from "./manyImportFile93" + + +@Component +export struct ManyImportComponent46 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent92() + ManyImportComponent93() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile460.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile460.ets new file mode 100644 index 000000000..edcb63bec --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile460.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent920 } from "./manyImportFile920" +import { ManyImportComponent921 } from "./manyImportFile921" + + +@Component +export struct ManyImportComponent460 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent920() + ManyImportComponent921() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile461.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile461.ets new file mode 100644 index 000000000..79f52e5e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile461.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent922 } from "./manyImportFile922" +import { ManyImportComponent923 } from "./manyImportFile923" + + +@Component +export struct ManyImportComponent461 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent922() + ManyImportComponent923() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile462.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile462.ets new file mode 100644 index 000000000..0e1f506db --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile462.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent924 } from "./manyImportFile924" +import { ManyImportComponent925 } from "./manyImportFile925" + + +@Component +export struct ManyImportComponent462 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent924() + ManyImportComponent925() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile463.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile463.ets new file mode 100644 index 000000000..31f8fcedf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile463.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent926 } from "./manyImportFile926" +import { ManyImportComponent927 } from "./manyImportFile927" + + +@Component +export struct ManyImportComponent463 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent926() + ManyImportComponent927() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile464.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile464.ets new file mode 100644 index 000000000..0916b1536 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile464.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent928 } from "./manyImportFile928" +import { ManyImportComponent929 } from "./manyImportFile929" + + +@Component +export struct ManyImportComponent464 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent928() + ManyImportComponent929() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile465.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile465.ets new file mode 100644 index 000000000..5aba040e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile465.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent930 } from "./manyImportFile930" +import { ManyImportComponent931 } from "./manyImportFile931" + + +@Component +export struct ManyImportComponent465 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent930() + ManyImportComponent931() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile466.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile466.ets new file mode 100644 index 000000000..ef4307c5e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile466.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent932 } from "./manyImportFile932" +import { ManyImportComponent933 } from "./manyImportFile933" + + +@Component +export struct ManyImportComponent466 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent932() + ManyImportComponent933() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile467.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile467.ets new file mode 100644 index 000000000..23b5c8f97 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile467.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent934 } from "./manyImportFile934" +import { ManyImportComponent935 } from "./manyImportFile935" + + +@Component +export struct ManyImportComponent467 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent934() + ManyImportComponent935() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile468.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile468.ets new file mode 100644 index 000000000..dc01afb74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile468.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent936 } from "./manyImportFile936" +import { ManyImportComponent937 } from "./manyImportFile937" + + +@Component +export struct ManyImportComponent468 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent936() + ManyImportComponent937() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile469.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile469.ets new file mode 100644 index 000000000..1be5335bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile469.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent938 } from "./manyImportFile938" +import { ManyImportComponent939 } from "./manyImportFile939" + + +@Component +export struct ManyImportComponent469 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent938() + ManyImportComponent939() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile47.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile47.ets new file mode 100644 index 000000000..d216ef178 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile47.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent94 } from "./manyImportFile94" +import { ManyImportComponent95 } from "./manyImportFile95" + + +@Component +export struct ManyImportComponent47 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent94() + ManyImportComponent95() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile470.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile470.ets new file mode 100644 index 000000000..22b0e21e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile470.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent940 } from "./manyImportFile940" +import { ManyImportComponent941 } from "./manyImportFile941" + + +@Component +export struct ManyImportComponent470 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent940() + ManyImportComponent941() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile471.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile471.ets new file mode 100644 index 000000000..c744b19a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile471.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent942 } from "./manyImportFile942" +import { ManyImportComponent943 } from "./manyImportFile943" + + +@Component +export struct ManyImportComponent471 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent942() + ManyImportComponent943() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile472.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile472.ets new file mode 100644 index 000000000..6b62827b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile472.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent944 } from "./manyImportFile944" +import { ManyImportComponent945 } from "./manyImportFile945" + + +@Component +export struct ManyImportComponent472 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent944() + ManyImportComponent945() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile473.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile473.ets new file mode 100644 index 000000000..541acd05d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile473.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent946 } from "./manyImportFile946" +import { ManyImportComponent947 } from "./manyImportFile947" + + +@Component +export struct ManyImportComponent473 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent946() + ManyImportComponent947() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile474.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile474.ets new file mode 100644 index 000000000..e7fcc530f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile474.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent948 } from "./manyImportFile948" +import { ManyImportComponent949 } from "./manyImportFile949" + + +@Component +export struct ManyImportComponent474 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent948() + ManyImportComponent949() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile475.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile475.ets new file mode 100644 index 000000000..6e1e904b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile475.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent950 } from "./manyImportFile950" +import { ManyImportComponent951 } from "./manyImportFile951" + + +@Component +export struct ManyImportComponent475 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent950() + ManyImportComponent951() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile476.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile476.ets new file mode 100644 index 000000000..9d578b19f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile476.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent952 } from "./manyImportFile952" +import { ManyImportComponent953 } from "./manyImportFile953" + + +@Component +export struct ManyImportComponent476 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent952() + ManyImportComponent953() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile477.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile477.ets new file mode 100644 index 000000000..299ae22b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile477.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent954 } from "./manyImportFile954" +import { ManyImportComponent955 } from "./manyImportFile955" + + +@Component +export struct ManyImportComponent477 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent954() + ManyImportComponent955() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile478.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile478.ets new file mode 100644 index 000000000..f6d3ba830 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile478.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent956 } from "./manyImportFile956" +import { ManyImportComponent957 } from "./manyImportFile957" + + +@Component +export struct ManyImportComponent478 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent956() + ManyImportComponent957() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile479.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile479.ets new file mode 100644 index 000000000..2885c7162 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile479.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent958 } from "./manyImportFile958" +import { ManyImportComponent959 } from "./manyImportFile959" + + +@Component +export struct ManyImportComponent479 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent958() + ManyImportComponent959() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile48.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile48.ets new file mode 100644 index 000000000..edd9eb537 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile48.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent96 } from "./manyImportFile96" +import { ManyImportComponent97 } from "./manyImportFile97" + + +@Component +export struct ManyImportComponent48 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent96() + ManyImportComponent97() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile480.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile480.ets new file mode 100644 index 000000000..0b0244a79 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile480.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent960 } from "./manyImportFile960" +import { ManyImportComponent961 } from "./manyImportFile961" + + +@Component +export struct ManyImportComponent480 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent960() + ManyImportComponent961() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile481.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile481.ets new file mode 100644 index 000000000..e750c27d5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile481.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent962 } from "./manyImportFile962" +import { ManyImportComponent963 } from "./manyImportFile963" + + +@Component +export struct ManyImportComponent481 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent962() + ManyImportComponent963() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile482.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile482.ets new file mode 100644 index 000000000..06c0b9fc9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile482.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent964 } from "./manyImportFile964" +import { ManyImportComponent965 } from "./manyImportFile965" + + +@Component +export struct ManyImportComponent482 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent964() + ManyImportComponent965() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile483.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile483.ets new file mode 100644 index 000000000..74078c1fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile483.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent966 } from "./manyImportFile966" +import { ManyImportComponent967 } from "./manyImportFile967" + + +@Component +export struct ManyImportComponent483 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent966() + ManyImportComponent967() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile484.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile484.ets new file mode 100644 index 000000000..54f264b62 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile484.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent968 } from "./manyImportFile968" +import { ManyImportComponent969 } from "./manyImportFile969" + + +@Component +export struct ManyImportComponent484 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent968() + ManyImportComponent969() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile485.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile485.ets new file mode 100644 index 000000000..2bd293d69 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile485.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent970 } from "./manyImportFile970" +import { ManyImportComponent971 } from "./manyImportFile971" + + +@Component +export struct ManyImportComponent485 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent970() + ManyImportComponent971() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile486.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile486.ets new file mode 100644 index 000000000..c752b0e5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile486.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent972 } from "./manyImportFile972" +import { ManyImportComponent973 } from "./manyImportFile973" + + +@Component +export struct ManyImportComponent486 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent972() + ManyImportComponent973() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile487.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile487.ets new file mode 100644 index 000000000..a25702ba3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile487.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent974 } from "./manyImportFile974" +import { ManyImportComponent975 } from "./manyImportFile975" + + +@Component +export struct ManyImportComponent487 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent974() + ManyImportComponent975() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile488.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile488.ets new file mode 100644 index 000000000..ce190f3d3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile488.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent976 } from "./manyImportFile976" +import { ManyImportComponent977 } from "./manyImportFile977" + + +@Component +export struct ManyImportComponent488 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent976() + ManyImportComponent977() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile489.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile489.ets new file mode 100644 index 000000000..6676b38b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile489.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent978 } from "./manyImportFile978" +import { ManyImportComponent979 } from "./manyImportFile979" + + +@Component +export struct ManyImportComponent489 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent978() + ManyImportComponent979() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile49.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile49.ets new file mode 100644 index 000000000..4368cd3ea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile49.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent98 } from "./manyImportFile98" +import { ManyImportComponent99 } from "./manyImportFile99" + + +@Component +export struct ManyImportComponent49 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent98() + ManyImportComponent99() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile490.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile490.ets new file mode 100644 index 000000000..e503a021b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile490.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent980 } from "./manyImportFile980" +import { ManyImportComponent981 } from "./manyImportFile981" + + +@Component +export struct ManyImportComponent490 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent980() + ManyImportComponent981() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile491.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile491.ets new file mode 100644 index 000000000..3adc8f0e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile491.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent982 } from "./manyImportFile982" +import { ManyImportComponent983 } from "./manyImportFile983" + + +@Component +export struct ManyImportComponent491 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent982() + ManyImportComponent983() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile492.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile492.ets new file mode 100644 index 000000000..3a030646f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile492.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent984 } from "./manyImportFile984" +import { ManyImportComponent985 } from "./manyImportFile985" + + +@Component +export struct ManyImportComponent492 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent984() + ManyImportComponent985() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile493.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile493.ets new file mode 100644 index 000000000..6d0c2cee3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile493.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent986 } from "./manyImportFile986" +import { ManyImportComponent987 } from "./manyImportFile987" + + +@Component +export struct ManyImportComponent493 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent986() + ManyImportComponent987() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile494.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile494.ets new file mode 100644 index 000000000..7fe3de7b4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile494.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent988 } from "./manyImportFile988" +import { ManyImportComponent989 } from "./manyImportFile989" + + +@Component +export struct ManyImportComponent494 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent988() + ManyImportComponent989() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile495.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile495.ets new file mode 100644 index 000000000..648feaf13 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile495.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent990 } from "./manyImportFile990" +import { ManyImportComponent991 } from "./manyImportFile991" + + +@Component +export struct ManyImportComponent495 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent990() + ManyImportComponent991() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile496.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile496.ets new file mode 100644 index 000000000..52b98a0e4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile496.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent992 } from "./manyImportFile992" +import { ManyImportComponent993 } from "./manyImportFile993" + + +@Component +export struct ManyImportComponent496 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent992() + ManyImportComponent993() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile497.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile497.ets new file mode 100644 index 000000000..4dbe35cc9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile497.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent994 } from "./manyImportFile994" +import { ManyImportComponent995 } from "./manyImportFile995" + + +@Component +export struct ManyImportComponent497 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent994() + ManyImportComponent995() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile498.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile498.ets new file mode 100644 index 000000000..038c81a16 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile498.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent996 } from "./manyImportFile996" +import { ManyImportComponent997 } from "./manyImportFile997" + + +@Component +export struct ManyImportComponent498 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent996() + ManyImportComponent997() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile499.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile499.ets new file mode 100644 index 000000000..714bc2a0e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile499.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent998 } from "./manyImportFile998" +import { ManyImportComponent999 } from "./manyImportFile999" + + +@Component +export struct ManyImportComponent499 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent998() + ManyImportComponent999() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile5.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile5.ets new file mode 100644 index 000000000..ec7bfd277 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile5.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent10 } from "./manyImportFile10" +import { ManyImportComponent11 } from "./manyImportFile11" + + +@Component +export struct ManyImportComponent5 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent10() + ManyImportComponent11() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile50.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile50.ets new file mode 100644 index 000000000..0a01b511e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile50.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent100 } from "./manyImportFile100" +import { ManyImportComponent101 } from "./manyImportFile101" + + +@Component +export struct ManyImportComponent50 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent100() + ManyImportComponent101() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile500.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile500.ets new file mode 100644 index 000000000..fd97febae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile500.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1000 } from "./manyImportFile1000" +import { ManyImportComponent1001 } from "./manyImportFile1001" + + +@Component +export struct ManyImportComponent500 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1000() + ManyImportComponent1001() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile501.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile501.ets new file mode 100644 index 000000000..1b821bb74 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile501.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1002 } from "./manyImportFile1002" +import { ManyImportComponent1003 } from "./manyImportFile1003" + + +@Component +export struct ManyImportComponent501 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1002() + ManyImportComponent1003() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile502.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile502.ets new file mode 100644 index 000000000..d16b5cdac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile502.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1004 } from "./manyImportFile1004" +import { ManyImportComponent1005 } from "./manyImportFile1005" + + +@Component +export struct ManyImportComponent502 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1004() + ManyImportComponent1005() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile503.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile503.ets new file mode 100644 index 000000000..5e9d1af01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile503.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1006 } from "./manyImportFile1006" +import { ManyImportComponent1007 } from "./manyImportFile1007" + + +@Component +export struct ManyImportComponent503 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1006() + ManyImportComponent1007() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile504.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile504.ets new file mode 100644 index 000000000..7d25929f5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile504.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1008 } from "./manyImportFile1008" +import { ManyImportComponent1009 } from "./manyImportFile1009" + + +@Component +export struct ManyImportComponent504 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1008() + ManyImportComponent1009() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile505.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile505.ets new file mode 100644 index 000000000..df2ac898c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile505.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1010 } from "./manyImportFile1010" +import { ManyImportComponent1011 } from "./manyImportFile1011" + + +@Component +export struct ManyImportComponent505 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1010() + ManyImportComponent1011() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile506.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile506.ets new file mode 100644 index 000000000..ce8612b6f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile506.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1012 } from "./manyImportFile1012" +import { ManyImportComponent1013 } from "./manyImportFile1013" + + +@Component +export struct ManyImportComponent506 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1012() + ManyImportComponent1013() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile507.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile507.ets new file mode 100644 index 000000000..498d7be1e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile507.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1014 } from "./manyImportFile1014" +import { ManyImportComponent1015 } from "./manyImportFile1015" + + +@Component +export struct ManyImportComponent507 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1014() + ManyImportComponent1015() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile508.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile508.ets new file mode 100644 index 000000000..ad106e6ac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile508.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1016 } from "./manyImportFile1016" +import { ManyImportComponent1017 } from "./manyImportFile1017" + + +@Component +export struct ManyImportComponent508 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1016() + ManyImportComponent1017() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile509.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile509.ets new file mode 100644 index 000000000..c8e4d4f02 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile509.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1018 } from "./manyImportFile1018" +import { ManyImportComponent1019 } from "./manyImportFile1019" + + +@Component +export struct ManyImportComponent509 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1018() + ManyImportComponent1019() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile51.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile51.ets new file mode 100644 index 000000000..0ada9e30e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile51.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent102 } from "./manyImportFile102" +import { ManyImportComponent103 } from "./manyImportFile103" + + +@Component +export struct ManyImportComponent51 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent102() + ManyImportComponent103() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile510.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile510.ets new file mode 100644 index 000000000..e3937cf66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile510.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1020 } from "./manyImportFile1020" +import { ManyImportComponent1021 } from "./manyImportFile1021" + + +@Component +export struct ManyImportComponent510 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1020() + ManyImportComponent1021() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile511.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile511.ets new file mode 100644 index 000000000..0c831e9e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile511.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1022 } from "./manyImportFile1022" +import { ManyImportComponent1023 } from "./manyImportFile1023" + + +@Component +export struct ManyImportComponent511 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1022() + ManyImportComponent1023() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile512.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile512.ets new file mode 100644 index 000000000..b9ab6d10b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile512.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1024 } from "./manyImportFile1024" +import { ManyImportComponent1025 } from "./manyImportFile1025" + + +@Component +export struct ManyImportComponent512 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1024() + ManyImportComponent1025() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile513.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile513.ets new file mode 100644 index 000000000..a82d88e22 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile513.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1026 } from "./manyImportFile1026" +import { ManyImportComponent1027 } from "./manyImportFile1027" + + +@Component +export struct ManyImportComponent513 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1026() + ManyImportComponent1027() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile514.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile514.ets new file mode 100644 index 000000000..0b99de430 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile514.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1028 } from "./manyImportFile1028" +import { ManyImportComponent1029 } from "./manyImportFile1029" + + +@Component +export struct ManyImportComponent514 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1028() + ManyImportComponent1029() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile515.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile515.ets new file mode 100644 index 000000000..29bc64580 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile515.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1030 } from "./manyImportFile1030" +import { ManyImportComponent1031 } from "./manyImportFile1031" + + +@Component +export struct ManyImportComponent515 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1030() + ManyImportComponent1031() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile516.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile516.ets new file mode 100644 index 000000000..06bb96501 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile516.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1032 } from "./manyImportFile1032" +import { ManyImportComponent1033 } from "./manyImportFile1033" + + +@Component +export struct ManyImportComponent516 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1032() + ManyImportComponent1033() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile517.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile517.ets new file mode 100644 index 000000000..133acd475 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile517.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1034 } from "./manyImportFile1034" +import { ManyImportComponent1035 } from "./manyImportFile1035" + + +@Component +export struct ManyImportComponent517 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1034() + ManyImportComponent1035() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile518.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile518.ets new file mode 100644 index 000000000..a17a7e480 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile518.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1036 } from "./manyImportFile1036" +import { ManyImportComponent1037 } from "./manyImportFile1037" + + +@Component +export struct ManyImportComponent518 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1036() + ManyImportComponent1037() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile519.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile519.ets new file mode 100644 index 000000000..3841382b1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile519.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1038 } from "./manyImportFile1038" +import { ManyImportComponent1039 } from "./manyImportFile1039" + + +@Component +export struct ManyImportComponent519 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1038() + ManyImportComponent1039() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile52.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile52.ets new file mode 100644 index 000000000..fe95289ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile52.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent104 } from "./manyImportFile104" +import { ManyImportComponent105 } from "./manyImportFile105" + + +@Component +export struct ManyImportComponent52 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent104() + ManyImportComponent105() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile520.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile520.ets new file mode 100644 index 000000000..b3b398751 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile520.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1040 } from "./manyImportFile1040" +import { ManyImportComponent1041 } from "./manyImportFile1041" + + +@Component +export struct ManyImportComponent520 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1040() + ManyImportComponent1041() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile521.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile521.ets new file mode 100644 index 000000000..ef0bb0bde --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile521.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1042 } from "./manyImportFile1042" +import { ManyImportComponent1043 } from "./manyImportFile1043" + + +@Component +export struct ManyImportComponent521 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1042() + ManyImportComponent1043() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile522.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile522.ets new file mode 100644 index 000000000..e8973984e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile522.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1044 } from "./manyImportFile1044" +import { ManyImportComponent1045 } from "./manyImportFile1045" + + +@Component +export struct ManyImportComponent522 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1044() + ManyImportComponent1045() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile523.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile523.ets new file mode 100644 index 000000000..67e0721c6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile523.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1046 } from "./manyImportFile1046" +import { ManyImportComponent1047 } from "./manyImportFile1047" + + +@Component +export struct ManyImportComponent523 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1046() + ManyImportComponent1047() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile524.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile524.ets new file mode 100644 index 000000000..b5f24e7d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile524.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1048 } from "./manyImportFile1048" +import { ManyImportComponent1049 } from "./manyImportFile1049" + + +@Component +export struct ManyImportComponent524 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1048() + ManyImportComponent1049() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile525.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile525.ets new file mode 100644 index 000000000..016014256 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile525.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1050 } from "./manyImportFile1050" +import { ManyImportComponent1051 } from "./manyImportFile1051" + + +@Component +export struct ManyImportComponent525 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1050() + ManyImportComponent1051() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile526.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile526.ets new file mode 100644 index 000000000..3691cfc96 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile526.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1052 } from "./manyImportFile1052" +import { ManyImportComponent1053 } from "./manyImportFile1053" + + +@Component +export struct ManyImportComponent526 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1052() + ManyImportComponent1053() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile527.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile527.ets new file mode 100644 index 000000000..f78d67f29 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile527.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1054 } from "./manyImportFile1054" +import { ManyImportComponent1055 } from "./manyImportFile1055" + + +@Component +export struct ManyImportComponent527 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1054() + ManyImportComponent1055() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile528.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile528.ets new file mode 100644 index 000000000..948532054 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile528.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1056 } from "./manyImportFile1056" +import { ManyImportComponent1057 } from "./manyImportFile1057" + + +@Component +export struct ManyImportComponent528 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1056() + ManyImportComponent1057() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile529.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile529.ets new file mode 100644 index 000000000..dea9b84d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile529.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1058 } from "./manyImportFile1058" +import { ManyImportComponent1059 } from "./manyImportFile1059" + + +@Component +export struct ManyImportComponent529 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1058() + ManyImportComponent1059() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile53.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile53.ets new file mode 100644 index 000000000..e3f365876 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile53.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent106 } from "./manyImportFile106" +import { ManyImportComponent107 } from "./manyImportFile107" + + +@Component +export struct ManyImportComponent53 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent106() + ManyImportComponent107() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile530.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile530.ets new file mode 100644 index 000000000..e156a178c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile530.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1060 } from "./manyImportFile1060" +import { ManyImportComponent1061 } from "./manyImportFile1061" + + +@Component +export struct ManyImportComponent530 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1060() + ManyImportComponent1061() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile531.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile531.ets new file mode 100644 index 000000000..f2fdb14ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile531.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1062 } from "./manyImportFile1062" +import { ManyImportComponent1063 } from "./manyImportFile1063" + + +@Component +export struct ManyImportComponent531 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1062() + ManyImportComponent1063() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile532.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile532.ets new file mode 100644 index 000000000..29be8a03f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile532.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1064 } from "./manyImportFile1064" +import { ManyImportComponent1065 } from "./manyImportFile1065" + + +@Component +export struct ManyImportComponent532 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1064() + ManyImportComponent1065() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile533.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile533.ets new file mode 100644 index 000000000..19d108fa9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile533.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1066 } from "./manyImportFile1066" +import { ManyImportComponent1067 } from "./manyImportFile1067" + + +@Component +export struct ManyImportComponent533 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1066() + ManyImportComponent1067() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile534.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile534.ets new file mode 100644 index 000000000..7d11aa471 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile534.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1068 } from "./manyImportFile1068" +import { ManyImportComponent1069 } from "./manyImportFile1069" + + +@Component +export struct ManyImportComponent534 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1068() + ManyImportComponent1069() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile535.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile535.ets new file mode 100644 index 000000000..25cb688f3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile535.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1070 } from "./manyImportFile1070" +import { ManyImportComponent1071 } from "./manyImportFile1071" + + +@Component +export struct ManyImportComponent535 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1070() + ManyImportComponent1071() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile536.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile536.ets new file mode 100644 index 000000000..c44c8cb15 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile536.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1072 } from "./manyImportFile1072" +import { ManyImportComponent1073 } from "./manyImportFile1073" + + +@Component +export struct ManyImportComponent536 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1072() + ManyImportComponent1073() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile537.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile537.ets new file mode 100644 index 000000000..7e0d0b5e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile537.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1074 } from "./manyImportFile1074" +import { ManyImportComponent1075 } from "./manyImportFile1075" + + +@Component +export struct ManyImportComponent537 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1074() + ManyImportComponent1075() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile538.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile538.ets new file mode 100644 index 000000000..12a880981 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile538.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1076 } from "./manyImportFile1076" +import { ManyImportComponent1077 } from "./manyImportFile1077" + + +@Component +export struct ManyImportComponent538 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1076() + ManyImportComponent1077() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile539.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile539.ets new file mode 100644 index 000000000..1357ff42e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile539.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1078 } from "./manyImportFile1078" +import { ManyImportComponent1079 } from "./manyImportFile1079" + + +@Component +export struct ManyImportComponent539 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1078() + ManyImportComponent1079() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile54.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile54.ets new file mode 100644 index 000000000..3072b35d3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile54.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent108 } from "./manyImportFile108" +import { ManyImportComponent109 } from "./manyImportFile109" + + +@Component +export struct ManyImportComponent54 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent108() + ManyImportComponent109() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile540.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile540.ets new file mode 100644 index 000000000..202fc5e97 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile540.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1080 } from "./manyImportFile1080" +import { ManyImportComponent1081 } from "./manyImportFile1081" + + +@Component +export struct ManyImportComponent540 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1080() + ManyImportComponent1081() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile541.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile541.ets new file mode 100644 index 000000000..38322f8e9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile541.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1082 } from "./manyImportFile1082" +import { ManyImportComponent1083 } from "./manyImportFile1083" + + +@Component +export struct ManyImportComponent541 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1082() + ManyImportComponent1083() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile542.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile542.ets new file mode 100644 index 000000000..1137236df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile542.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1084 } from "./manyImportFile1084" +import { ManyImportComponent1085 } from "./manyImportFile1085" + + +@Component +export struct ManyImportComponent542 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1084() + ManyImportComponent1085() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile543.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile543.ets new file mode 100644 index 000000000..618704681 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile543.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1086 } from "./manyImportFile1086" +import { ManyImportComponent1087 } from "./manyImportFile1087" + + +@Component +export struct ManyImportComponent543 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1086() + ManyImportComponent1087() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile544.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile544.ets new file mode 100644 index 000000000..2079fc720 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile544.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1088 } from "./manyImportFile1088" +import { ManyImportComponent1089 } from "./manyImportFile1089" + + +@Component +export struct ManyImportComponent544 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1088() + ManyImportComponent1089() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile545.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile545.ets new file mode 100644 index 000000000..a295e0c17 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile545.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1090 } from "./manyImportFile1090" +import { ManyImportComponent1091 } from "./manyImportFile1091" + + +@Component +export struct ManyImportComponent545 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1090() + ManyImportComponent1091() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile546.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile546.ets new file mode 100644 index 000000000..41034482b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile546.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1092 } from "./manyImportFile1092" +import { ManyImportComponent1093 } from "./manyImportFile1093" + + +@Component +export struct ManyImportComponent546 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1092() + ManyImportComponent1093() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile547.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile547.ets new file mode 100644 index 000000000..187611db0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile547.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1094 } from "./manyImportFile1094" +import { ManyImportComponent1095 } from "./manyImportFile1095" + + +@Component +export struct ManyImportComponent547 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1094() + ManyImportComponent1095() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile548.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile548.ets new file mode 100644 index 000000000..3ff3be7b3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile548.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1096 } from "./manyImportFile1096" +import { ManyImportComponent1097 } from "./manyImportFile1097" + + +@Component +export struct ManyImportComponent548 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1096() + ManyImportComponent1097() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile549.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile549.ets new file mode 100644 index 000000000..0ed099b27 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile549.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1098 } from "./manyImportFile1098" +import { ManyImportComponent1099 } from "./manyImportFile1099" + + +@Component +export struct ManyImportComponent549 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1098() + ManyImportComponent1099() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile55.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile55.ets new file mode 100644 index 000000000..21566d779 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile55.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent110 } from "./manyImportFile110" +import { ManyImportComponent111 } from "./manyImportFile111" + + +@Component +export struct ManyImportComponent55 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent110() + ManyImportComponent111() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile550.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile550.ets new file mode 100644 index 000000000..0b0f51b26 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile550.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1100 } from "./manyImportFile1100" +import { ManyImportComponent1101 } from "./manyImportFile1101" + + +@Component +export struct ManyImportComponent550 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1100() + ManyImportComponent1101() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile551.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile551.ets new file mode 100644 index 000000000..61acd3b90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile551.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1102 } from "./manyImportFile1102" +import { ManyImportComponent1103 } from "./manyImportFile1103" + + +@Component +export struct ManyImportComponent551 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1102() + ManyImportComponent1103() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile552.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile552.ets new file mode 100644 index 000000000..bf9c3ab6d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile552.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1104 } from "./manyImportFile1104" +import { ManyImportComponent1105 } from "./manyImportFile1105" + + +@Component +export struct ManyImportComponent552 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1104() + ManyImportComponent1105() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile553.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile553.ets new file mode 100644 index 000000000..7225b622f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile553.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1106 } from "./manyImportFile1106" +import { ManyImportComponent1107 } from "./manyImportFile1107" + + +@Component +export struct ManyImportComponent553 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1106() + ManyImportComponent1107() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile554.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile554.ets new file mode 100644 index 000000000..c63c00ad1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile554.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1108 } from "./manyImportFile1108" +import { ManyImportComponent1109 } from "./manyImportFile1109" + + +@Component +export struct ManyImportComponent554 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1108() + ManyImportComponent1109() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile555.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile555.ets new file mode 100644 index 000000000..bd7a37155 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile555.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1110 } from "./manyImportFile1110" +import { ManyImportComponent1111 } from "./manyImportFile1111" + + +@Component +export struct ManyImportComponent555 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1110() + ManyImportComponent1111() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile556.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile556.ets new file mode 100644 index 000000000..8ef782b77 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile556.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1112 } from "./manyImportFile1112" +import { ManyImportComponent1113 } from "./manyImportFile1113" + + +@Component +export struct ManyImportComponent556 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1112() + ManyImportComponent1113() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile557.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile557.ets new file mode 100644 index 000000000..54951cdc2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile557.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1114 } from "./manyImportFile1114" +import { ManyImportComponent1115 } from "./manyImportFile1115" + + +@Component +export struct ManyImportComponent557 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1114() + ManyImportComponent1115() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile558.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile558.ets new file mode 100644 index 000000000..5b9993735 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile558.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1116 } from "./manyImportFile1116" +import { ManyImportComponent1117 } from "./manyImportFile1117" + + +@Component +export struct ManyImportComponent558 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1116() + ManyImportComponent1117() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile559.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile559.ets new file mode 100644 index 000000000..9dc82377f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile559.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1118 } from "./manyImportFile1118" +import { ManyImportComponent1119 } from "./manyImportFile1119" + + +@Component +export struct ManyImportComponent559 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1118() + ManyImportComponent1119() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile56.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile56.ets new file mode 100644 index 000000000..9a9f039f8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile56.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent112 } from "./manyImportFile112" +import { ManyImportComponent113 } from "./manyImportFile113" + + +@Component +export struct ManyImportComponent56 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent112() + ManyImportComponent113() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile560.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile560.ets new file mode 100644 index 000000000..eb03e8843 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile560.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1120 } from "./manyImportFile1120" +import { ManyImportComponent1121 } from "./manyImportFile1121" + + +@Component +export struct ManyImportComponent560 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1120() + ManyImportComponent1121() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile561.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile561.ets new file mode 100644 index 000000000..ffcb9fe92 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile561.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1122 } from "./manyImportFile1122" +import { ManyImportComponent1123 } from "./manyImportFile1123" + + +@Component +export struct ManyImportComponent561 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1122() + ManyImportComponent1123() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile562.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile562.ets new file mode 100644 index 000000000..9abbf8404 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile562.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1124 } from "./manyImportFile1124" +import { ManyImportComponent1125 } from "./manyImportFile1125" + + +@Component +export struct ManyImportComponent562 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1124() + ManyImportComponent1125() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile563.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile563.ets new file mode 100644 index 000000000..5f1411ffe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile563.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1126 } from "./manyImportFile1126" +import { ManyImportComponent1127 } from "./manyImportFile1127" + + +@Component +export struct ManyImportComponent563 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1126() + ManyImportComponent1127() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile564.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile564.ets new file mode 100644 index 000000000..617a89c14 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile564.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1128 } from "./manyImportFile1128" +import { ManyImportComponent1129 } from "./manyImportFile1129" + + +@Component +export struct ManyImportComponent564 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1128() + ManyImportComponent1129() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile565.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile565.ets new file mode 100644 index 000000000..9ef4e5f0b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile565.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1130 } from "./manyImportFile1130" +import { ManyImportComponent1131 } from "./manyImportFile1131" + + +@Component +export struct ManyImportComponent565 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1130() + ManyImportComponent1131() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile566.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile566.ets new file mode 100644 index 000000000..d16261c7f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile566.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1132 } from "./manyImportFile1132" +import { ManyImportComponent1133 } from "./manyImportFile1133" + + +@Component +export struct ManyImportComponent566 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1132() + ManyImportComponent1133() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile567.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile567.ets new file mode 100644 index 000000000..015a958f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile567.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1134 } from "./manyImportFile1134" +import { ManyImportComponent1135 } from "./manyImportFile1135" + + +@Component +export struct ManyImportComponent567 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1134() + ManyImportComponent1135() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile568.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile568.ets new file mode 100644 index 000000000..b3420b2bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile568.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1136 } from "./manyImportFile1136" +import { ManyImportComponent1137 } from "./manyImportFile1137" + + +@Component +export struct ManyImportComponent568 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1136() + ManyImportComponent1137() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile569.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile569.ets new file mode 100644 index 000000000..c0dbca21c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile569.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1138 } from "./manyImportFile1138" +import { ManyImportComponent1139 } from "./manyImportFile1139" + + +@Component +export struct ManyImportComponent569 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1138() + ManyImportComponent1139() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile57.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile57.ets new file mode 100644 index 000000000..f392cbd8b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile57.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent114 } from "./manyImportFile114" +import { ManyImportComponent115 } from "./manyImportFile115" + + +@Component +export struct ManyImportComponent57 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent114() + ManyImportComponent115() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile570.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile570.ets new file mode 100644 index 000000000..e1859275a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile570.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1140 } from "./manyImportFile1140" +import { ManyImportComponent1141 } from "./manyImportFile1141" + + +@Component +export struct ManyImportComponent570 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1140() + ManyImportComponent1141() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile571.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile571.ets new file mode 100644 index 000000000..f067eb76a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile571.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1142 } from "./manyImportFile1142" +import { ManyImportComponent1143 } from "./manyImportFile1143" + + +@Component +export struct ManyImportComponent571 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1142() + ManyImportComponent1143() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile572.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile572.ets new file mode 100644 index 000000000..28dcabc5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile572.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1144 } from "./manyImportFile1144" +import { ManyImportComponent1145 } from "./manyImportFile1145" + + +@Component +export struct ManyImportComponent572 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1144() + ManyImportComponent1145() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile573.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile573.ets new file mode 100644 index 000000000..397f4a10c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile573.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1146 } from "./manyImportFile1146" +import { ManyImportComponent1147 } from "./manyImportFile1147" + + +@Component +export struct ManyImportComponent573 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1146() + ManyImportComponent1147() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile574.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile574.ets new file mode 100644 index 000000000..3c732d27a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile574.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1148 } from "./manyImportFile1148" +import { ManyImportComponent1149 } from "./manyImportFile1149" + + +@Component +export struct ManyImportComponent574 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1148() + ManyImportComponent1149() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile575.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile575.ets new file mode 100644 index 000000000..563940440 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile575.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1150 } from "./manyImportFile1150" +import { ManyImportComponent1151 } from "./manyImportFile1151" + + +@Component +export struct ManyImportComponent575 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1150() + ManyImportComponent1151() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile576.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile576.ets new file mode 100644 index 000000000..20689e6bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile576.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1152 } from "./manyImportFile1152" +import { ManyImportComponent1153 } from "./manyImportFile1153" + + +@Component +export struct ManyImportComponent576 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1152() + ManyImportComponent1153() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile577.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile577.ets new file mode 100644 index 000000000..735a5075b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile577.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1154 } from "./manyImportFile1154" +import { ManyImportComponent1155 } from "./manyImportFile1155" + + +@Component +export struct ManyImportComponent577 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1154() + ManyImportComponent1155() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile578.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile578.ets new file mode 100644 index 000000000..06aa27fe5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile578.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1156 } from "./manyImportFile1156" +import { ManyImportComponent1157 } from "./manyImportFile1157" + + +@Component +export struct ManyImportComponent578 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1156() + ManyImportComponent1157() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile579.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile579.ets new file mode 100644 index 000000000..8ae0d124a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile579.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1158 } from "./manyImportFile1158" +import { ManyImportComponent1159 } from "./manyImportFile1159" + + +@Component +export struct ManyImportComponent579 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1158() + ManyImportComponent1159() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile58.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile58.ets new file mode 100644 index 000000000..6e713561d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile58.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent116 } from "./manyImportFile116" +import { ManyImportComponent117 } from "./manyImportFile117" + + +@Component +export struct ManyImportComponent58 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent116() + ManyImportComponent117() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile580.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile580.ets new file mode 100644 index 000000000..3d4fad9c1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile580.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1160 } from "./manyImportFile1160" +import { ManyImportComponent1161 } from "./manyImportFile1161" + + +@Component +export struct ManyImportComponent580 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1160() + ManyImportComponent1161() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile581.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile581.ets new file mode 100644 index 000000000..cd1f645c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile581.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1162 } from "./manyImportFile1162" +import { ManyImportComponent1163 } from "./manyImportFile1163" + + +@Component +export struct ManyImportComponent581 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1162() + ManyImportComponent1163() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile582.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile582.ets new file mode 100644 index 000000000..b98d78c01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile582.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1164 } from "./manyImportFile1164" +import { ManyImportComponent1165 } from "./manyImportFile1165" + + +@Component +export struct ManyImportComponent582 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1164() + ManyImportComponent1165() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile583.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile583.ets new file mode 100644 index 000000000..fd6f99914 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile583.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1166 } from "./manyImportFile1166" +import { ManyImportComponent1167 } from "./manyImportFile1167" + + +@Component +export struct ManyImportComponent583 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1166() + ManyImportComponent1167() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile584.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile584.ets new file mode 100644 index 000000000..1b22b9da8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile584.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1168 } from "./manyImportFile1168" +import { ManyImportComponent1169 } from "./manyImportFile1169" + + +@Component +export struct ManyImportComponent584 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1168() + ManyImportComponent1169() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile585.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile585.ets new file mode 100644 index 000000000..5cfa4e0ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile585.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1170 } from "./manyImportFile1170" +import { ManyImportComponent1171 } from "./manyImportFile1171" + + +@Component +export struct ManyImportComponent585 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1170() + ManyImportComponent1171() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile586.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile586.ets new file mode 100644 index 000000000..b0b615b81 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile586.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1172 } from "./manyImportFile1172" +import { ManyImportComponent1173 } from "./manyImportFile1173" + + +@Component +export struct ManyImportComponent586 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1172() + ManyImportComponent1173() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile587.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile587.ets new file mode 100644 index 000000000..87f3e6c79 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile587.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1174 } from "./manyImportFile1174" +import { ManyImportComponent1175 } from "./manyImportFile1175" + + +@Component +export struct ManyImportComponent587 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1174() + ManyImportComponent1175() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile588.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile588.ets new file mode 100644 index 000000000..8affe0f7c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile588.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1176 } from "./manyImportFile1176" +import { ManyImportComponent1177 } from "./manyImportFile1177" + + +@Component +export struct ManyImportComponent588 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1176() + ManyImportComponent1177() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile589.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile589.ets new file mode 100644 index 000000000..d498e22de --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile589.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1178 } from "./manyImportFile1178" +import { ManyImportComponent1179 } from "./manyImportFile1179" + + +@Component +export struct ManyImportComponent589 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1178() + ManyImportComponent1179() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile59.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile59.ets new file mode 100644 index 000000000..03bd57a26 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile59.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent118 } from "./manyImportFile118" +import { ManyImportComponent119 } from "./manyImportFile119" + + +@Component +export struct ManyImportComponent59 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent118() + ManyImportComponent119() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile590.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile590.ets new file mode 100644 index 000000000..85facfd8f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile590.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1180 } from "./manyImportFile1180" +import { ManyImportComponent1181 } from "./manyImportFile1181" + + +@Component +export struct ManyImportComponent590 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1180() + ManyImportComponent1181() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile591.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile591.ets new file mode 100644 index 000000000..2637de68a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile591.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1182 } from "./manyImportFile1182" +import { ManyImportComponent1183 } from "./manyImportFile1183" + + +@Component +export struct ManyImportComponent591 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1182() + ManyImportComponent1183() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile592.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile592.ets new file mode 100644 index 000000000..caa974072 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile592.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1184 } from "./manyImportFile1184" +import { ManyImportComponent1185 } from "./manyImportFile1185" + + +@Component +export struct ManyImportComponent592 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1184() + ManyImportComponent1185() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile593.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile593.ets new file mode 100644 index 000000000..6972e4e58 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile593.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1186 } from "./manyImportFile1186" +import { ManyImportComponent1187 } from "./manyImportFile1187" + + +@Component +export struct ManyImportComponent593 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1186() + ManyImportComponent1187() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile594.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile594.ets new file mode 100644 index 000000000..b702a60ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile594.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1188 } from "./manyImportFile1188" +import { ManyImportComponent1189 } from "./manyImportFile1189" + + +@Component +export struct ManyImportComponent594 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1188() + ManyImportComponent1189() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile595.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile595.ets new file mode 100644 index 000000000..49d7e5526 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile595.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1190 } from "./manyImportFile1190" +import { ManyImportComponent1191 } from "./manyImportFile1191" + + +@Component +export struct ManyImportComponent595 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1190() + ManyImportComponent1191() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile596.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile596.ets new file mode 100644 index 000000000..2fa9197b2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile596.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1192 } from "./manyImportFile1192" +import { ManyImportComponent1193 } from "./manyImportFile1193" + + +@Component +export struct ManyImportComponent596 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1192() + ManyImportComponent1193() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile597.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile597.ets new file mode 100644 index 000000000..edb1087b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile597.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1194 } from "./manyImportFile1194" +import { ManyImportComponent1195 } from "./manyImportFile1195" + + +@Component +export struct ManyImportComponent597 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1194() + ManyImportComponent1195() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile598.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile598.ets new file mode 100644 index 000000000..606fd3a8c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile598.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1196 } from "./manyImportFile1196" +import { ManyImportComponent1197 } from "./manyImportFile1197" + + +@Component +export struct ManyImportComponent598 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1196() + ManyImportComponent1197() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile599.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile599.ets new file mode 100644 index 000000000..365f9d9df --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile599.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1198 } from "./manyImportFile1198" +import { ManyImportComponent1199 } from "./manyImportFile1199" + + +@Component +export struct ManyImportComponent599 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1198() + ManyImportComponent1199() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile6.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile6.ets new file mode 100644 index 000000000..81840c1f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile6.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent12 } from "./manyImportFile12" +import { ManyImportComponent13 } from "./manyImportFile13" + + +@Component +export struct ManyImportComponent6 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent12() + ManyImportComponent13() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile60.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile60.ets new file mode 100644 index 000000000..6feb082ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile60.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent120 } from "./manyImportFile120" +import { ManyImportComponent121 } from "./manyImportFile121" + + +@Component +export struct ManyImportComponent60 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent120() + ManyImportComponent121() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile600.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile600.ets new file mode 100644 index 000000000..04c337dfd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile600.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1200 } from "./manyImportFile1200" +import { ManyImportComponent1201 } from "./manyImportFile1201" + + +@Component +export struct ManyImportComponent600 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1200() + ManyImportComponent1201() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile601.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile601.ets new file mode 100644 index 000000000..16f4b7bd6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile601.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1202 } from "./manyImportFile1202" +import { ManyImportComponent1203 } from "./manyImportFile1203" + + +@Component +export struct ManyImportComponent601 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1202() + ManyImportComponent1203() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile602.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile602.ets new file mode 100644 index 000000000..bbbe91b9f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile602.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1204 } from "./manyImportFile1204" +import { ManyImportComponent1205 } from "./manyImportFile1205" + + +@Component +export struct ManyImportComponent602 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1204() + ManyImportComponent1205() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile603.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile603.ets new file mode 100644 index 000000000..bf9aecbd0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile603.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1206 } from "./manyImportFile1206" +import { ManyImportComponent1207 } from "./manyImportFile1207" + + +@Component +export struct ManyImportComponent603 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1206() + ManyImportComponent1207() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile604.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile604.ets new file mode 100644 index 000000000..828cc9a5b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile604.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1208 } from "./manyImportFile1208" +import { ManyImportComponent1209 } from "./manyImportFile1209" + + +@Component +export struct ManyImportComponent604 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1208() + ManyImportComponent1209() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile605.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile605.ets new file mode 100644 index 000000000..59e24dd2b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile605.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1210 } from "./manyImportFile1210" +import { ManyImportComponent1211 } from "./manyImportFile1211" + + +@Component +export struct ManyImportComponent605 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1210() + ManyImportComponent1211() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile606.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile606.ets new file mode 100644 index 000000000..c345d5496 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile606.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1212 } from "./manyImportFile1212" +import { ManyImportComponent1213 } from "./manyImportFile1213" + + +@Component +export struct ManyImportComponent606 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1212() + ManyImportComponent1213() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile607.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile607.ets new file mode 100644 index 000000000..48dd3956a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile607.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1214 } from "./manyImportFile1214" +import { ManyImportComponent1215 } from "./manyImportFile1215" + + +@Component +export struct ManyImportComponent607 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1214() + ManyImportComponent1215() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile608.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile608.ets new file mode 100644 index 000000000..d3479e178 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile608.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1216 } from "./manyImportFile1216" +import { ManyImportComponent1217 } from "./manyImportFile1217" + + +@Component +export struct ManyImportComponent608 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1216() + ManyImportComponent1217() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile609.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile609.ets new file mode 100644 index 000000000..c6c64561d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile609.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1218 } from "./manyImportFile1218" +import { ManyImportComponent1219 } from "./manyImportFile1219" + + +@Component +export struct ManyImportComponent609 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1218() + ManyImportComponent1219() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile61.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile61.ets new file mode 100644 index 000000000..a7d0c685d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile61.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent122 } from "./manyImportFile122" +import { ManyImportComponent123 } from "./manyImportFile123" + + +@Component +export struct ManyImportComponent61 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent122() + ManyImportComponent123() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile610.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile610.ets new file mode 100644 index 000000000..6aa1a651f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile610.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1220 } from "./manyImportFile1220" +import { ManyImportComponent1221 } from "./manyImportFile1221" + + +@Component +export struct ManyImportComponent610 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1220() + ManyImportComponent1221() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile611.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile611.ets new file mode 100644 index 000000000..000a14590 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile611.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1222 } from "./manyImportFile1222" +import { ManyImportComponent1223 } from "./manyImportFile1223" + + +@Component +export struct ManyImportComponent611 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1222() + ManyImportComponent1223() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile612.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile612.ets new file mode 100644 index 000000000..f0121e0ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile612.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1224 } from "./manyImportFile1224" +import { ManyImportComponent1225 } from "./manyImportFile1225" + + +@Component +export struct ManyImportComponent612 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1224() + ManyImportComponent1225() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile613.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile613.ets new file mode 100644 index 000000000..e14c9c821 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile613.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1226 } from "./manyImportFile1226" +import { ManyImportComponent1227 } from "./manyImportFile1227" + + +@Component +export struct ManyImportComponent613 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1226() + ManyImportComponent1227() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile614.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile614.ets new file mode 100644 index 000000000..2b382aba1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile614.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1228 } from "./manyImportFile1228" +import { ManyImportComponent1229 } from "./manyImportFile1229" + + +@Component +export struct ManyImportComponent614 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1228() + ManyImportComponent1229() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile615.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile615.ets new file mode 100644 index 000000000..b4493b15a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile615.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1230 } from "./manyImportFile1230" +import { ManyImportComponent1231 } from "./manyImportFile1231" + + +@Component +export struct ManyImportComponent615 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1230() + ManyImportComponent1231() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile616.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile616.ets new file mode 100644 index 000000000..54ff4a287 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile616.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1232 } from "./manyImportFile1232" +import { ManyImportComponent1233 } from "./manyImportFile1233" + + +@Component +export struct ManyImportComponent616 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1232() + ManyImportComponent1233() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile617.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile617.ets new file mode 100644 index 000000000..f438e2e80 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile617.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1234 } from "./manyImportFile1234" +import { ManyImportComponent1235 } from "./manyImportFile1235" + + +@Component +export struct ManyImportComponent617 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1234() + ManyImportComponent1235() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile618.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile618.ets new file mode 100644 index 000000000..77ed5cf93 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile618.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1236 } from "./manyImportFile1236" +import { ManyImportComponent1237 } from "./manyImportFile1237" + + +@Component +export struct ManyImportComponent618 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1236() + ManyImportComponent1237() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile619.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile619.ets new file mode 100644 index 000000000..45c451f03 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile619.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1238 } from "./manyImportFile1238" +import { ManyImportComponent1239 } from "./manyImportFile1239" + + +@Component +export struct ManyImportComponent619 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1238() + ManyImportComponent1239() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile62.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile62.ets new file mode 100644 index 000000000..4e92b00ff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile62.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent124 } from "./manyImportFile124" +import { ManyImportComponent125 } from "./manyImportFile125" + + +@Component +export struct ManyImportComponent62 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent124() + ManyImportComponent125() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile620.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile620.ets new file mode 100644 index 000000000..22966fb3d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile620.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1240 } from "./manyImportFile1240" +import { ManyImportComponent1241 } from "./manyImportFile1241" + + +@Component +export struct ManyImportComponent620 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1240() + ManyImportComponent1241() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile621.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile621.ets new file mode 100644 index 000000000..1d73cd0a6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile621.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1242 } from "./manyImportFile1242" +import { ManyImportComponent1243 } from "./manyImportFile1243" + + +@Component +export struct ManyImportComponent621 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1242() + ManyImportComponent1243() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile622.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile622.ets new file mode 100644 index 000000000..3b85cc08f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile622.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1244 } from "./manyImportFile1244" +import { ManyImportComponent1245 } from "./manyImportFile1245" + + +@Component +export struct ManyImportComponent622 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1244() + ManyImportComponent1245() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile623.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile623.ets new file mode 100644 index 000000000..13f8e80bf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile623.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1246 } from "./manyImportFile1246" +import { ManyImportComponent1247 } from "./manyImportFile1247" + + +@Component +export struct ManyImportComponent623 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1246() + ManyImportComponent1247() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile624.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile624.ets new file mode 100644 index 000000000..617dac7b0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile624.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1248 } from "./manyImportFile1248" +import { ManyImportComponent1249 } from "./manyImportFile1249" + + +@Component +export struct ManyImportComponent624 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1248() + ManyImportComponent1249() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile625.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile625.ets new file mode 100644 index 000000000..195fdba4c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile625.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1250 } from "./manyImportFile1250" +import { ManyImportComponent1251 } from "./manyImportFile1251" + + +@Component +export struct ManyImportComponent625 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1250() + ManyImportComponent1251() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile626.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile626.ets new file mode 100644 index 000000000..01b4a3304 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile626.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1252 } from "./manyImportFile1252" +import { ManyImportComponent1253 } from "./manyImportFile1253" + + +@Component +export struct ManyImportComponent626 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1252() + ManyImportComponent1253() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile627.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile627.ets new file mode 100644 index 000000000..50ed9cbe0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile627.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1254 } from "./manyImportFile1254" +import { ManyImportComponent1255 } from "./manyImportFile1255" + + +@Component +export struct ManyImportComponent627 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1254() + ManyImportComponent1255() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile628.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile628.ets new file mode 100644 index 000000000..5f41495a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile628.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1256 } from "./manyImportFile1256" +import { ManyImportComponent1257 } from "./manyImportFile1257" + + +@Component +export struct ManyImportComponent628 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1256() + ManyImportComponent1257() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile629.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile629.ets new file mode 100644 index 000000000..5186b9f37 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile629.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1258 } from "./manyImportFile1258" +import { ManyImportComponent1259 } from "./manyImportFile1259" + + +@Component +export struct ManyImportComponent629 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1258() + ManyImportComponent1259() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile63.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile63.ets new file mode 100644 index 000000000..4a05543e8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile63.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent126 } from "./manyImportFile126" +import { ManyImportComponent127 } from "./manyImportFile127" + + +@Component +export struct ManyImportComponent63 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent126() + ManyImportComponent127() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile630.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile630.ets new file mode 100644 index 000000000..8961b8a18 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile630.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1260 } from "./manyImportFile1260" +import { ManyImportComponent1261 } from "./manyImportFile1261" + + +@Component +export struct ManyImportComponent630 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1260() + ManyImportComponent1261() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile631.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile631.ets new file mode 100644 index 000000000..cfe06f156 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile631.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1262 } from "./manyImportFile1262" +import { ManyImportComponent1263 } from "./manyImportFile1263" + + +@Component +export struct ManyImportComponent631 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1262() + ManyImportComponent1263() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile632.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile632.ets new file mode 100644 index 000000000..5659d7429 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile632.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1264 } from "./manyImportFile1264" +import { ManyImportComponent1265 } from "./manyImportFile1265" + + +@Component +export struct ManyImportComponent632 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1264() + ManyImportComponent1265() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile633.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile633.ets new file mode 100644 index 000000000..73ff600e5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile633.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1266 } from "./manyImportFile1266" +import { ManyImportComponent1267 } from "./manyImportFile1267" + + +@Component +export struct ManyImportComponent633 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1266() + ManyImportComponent1267() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile634.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile634.ets new file mode 100644 index 000000000..5dd73d56d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile634.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1268 } from "./manyImportFile1268" +import { ManyImportComponent1269 } from "./manyImportFile1269" + + +@Component +export struct ManyImportComponent634 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1268() + ManyImportComponent1269() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile635.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile635.ets new file mode 100644 index 000000000..4c7d10fc1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile635.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1270 } from "./manyImportFile1270" +import { ManyImportComponent1271 } from "./manyImportFile1271" + + +@Component +export struct ManyImportComponent635 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1270() + ManyImportComponent1271() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile636.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile636.ets new file mode 100644 index 000000000..034bb0a90 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile636.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1272 } from "./manyImportFile1272" +import { ManyImportComponent1273 } from "./manyImportFile1273" + + +@Component +export struct ManyImportComponent636 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1272() + ManyImportComponent1273() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile637.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile637.ets new file mode 100644 index 000000000..ee474caea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile637.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1274 } from "./manyImportFile1274" +import { ManyImportComponent1275 } from "./manyImportFile1275" + + +@Component +export struct ManyImportComponent637 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1274() + ManyImportComponent1275() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile638.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile638.ets new file mode 100644 index 000000000..730bbe931 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile638.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1276 } from "./manyImportFile1276" +import { ManyImportComponent1277 } from "./manyImportFile1277" + + +@Component +export struct ManyImportComponent638 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1276() + ManyImportComponent1277() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile639.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile639.ets new file mode 100644 index 000000000..111b69063 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile639.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1278 } from "./manyImportFile1278" +import { ManyImportComponent1279 } from "./manyImportFile1279" + + +@Component +export struct ManyImportComponent639 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1278() + ManyImportComponent1279() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile64.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile64.ets new file mode 100644 index 000000000..860515a1a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile64.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent128 } from "./manyImportFile128" +import { ManyImportComponent129 } from "./manyImportFile129" + + +@Component +export struct ManyImportComponent64 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent128() + ManyImportComponent129() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile640.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile640.ets new file mode 100644 index 000000000..ce4815e4e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile640.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1280 } from "./manyImportFile1280" +import { ManyImportComponent1281 } from "./manyImportFile1281" + + +@Component +export struct ManyImportComponent640 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1280() + ManyImportComponent1281() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile641.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile641.ets new file mode 100644 index 000000000..c706c10cf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile641.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1282 } from "./manyImportFile1282" +import { ManyImportComponent1283 } from "./manyImportFile1283" + + +@Component +export struct ManyImportComponent641 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1282() + ManyImportComponent1283() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile642.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile642.ets new file mode 100644 index 000000000..196c72849 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile642.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1284 } from "./manyImportFile1284" +import { ManyImportComponent1285 } from "./manyImportFile1285" + + +@Component +export struct ManyImportComponent642 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1284() + ManyImportComponent1285() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile643.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile643.ets new file mode 100644 index 000000000..885117a66 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile643.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1286 } from "./manyImportFile1286" +import { ManyImportComponent1287 } from "./manyImportFile1287" + + +@Component +export struct ManyImportComponent643 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1286() + ManyImportComponent1287() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile644.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile644.ets new file mode 100644 index 000000000..9778b42d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile644.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1288 } from "./manyImportFile1288" +import { ManyImportComponent1289 } from "./manyImportFile1289" + + +@Component +export struct ManyImportComponent644 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1288() + ManyImportComponent1289() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile645.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile645.ets new file mode 100644 index 000000000..bd353a2b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile645.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1290 } from "./manyImportFile1290" +import { ManyImportComponent1291 } from "./manyImportFile1291" + + +@Component +export struct ManyImportComponent645 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1290() + ManyImportComponent1291() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile646.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile646.ets new file mode 100644 index 000000000..6a6855763 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile646.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1292 } from "./manyImportFile1292" +import { ManyImportComponent1293 } from "./manyImportFile1293" + + +@Component +export struct ManyImportComponent646 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1292() + ManyImportComponent1293() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile647.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile647.ets new file mode 100644 index 000000000..5e28004d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile647.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1294 } from "./manyImportFile1294" +import { ManyImportComponent1295 } from "./manyImportFile1295" + + +@Component +export struct ManyImportComponent647 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1294() + ManyImportComponent1295() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile648.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile648.ets new file mode 100644 index 000000000..838b3787f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile648.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1296 } from "./manyImportFile1296" +import { ManyImportComponent1297 } from "./manyImportFile1297" + + +@Component +export struct ManyImportComponent648 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1296() + ManyImportComponent1297() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile649.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile649.ets new file mode 100644 index 000000000..11b1edd2c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile649.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1298 } from "./manyImportFile1298" +import { ManyImportComponent1299 } from "./manyImportFile1299" + + +@Component +export struct ManyImportComponent649 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1298() + ManyImportComponent1299() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile65.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile65.ets new file mode 100644 index 000000000..8ae995c3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile65.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent130 } from "./manyImportFile130" +import { ManyImportComponent131 } from "./manyImportFile131" + + +@Component +export struct ManyImportComponent65 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent130() + ManyImportComponent131() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile650.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile650.ets new file mode 100644 index 000000000..c83c6bc6c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile650.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1300 } from "./manyImportFile1300" +import { ManyImportComponent1301 } from "./manyImportFile1301" + + +@Component +export struct ManyImportComponent650 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1300() + ManyImportComponent1301() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile651.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile651.ets new file mode 100644 index 000000000..1071455a0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile651.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1302 } from "./manyImportFile1302" +import { ManyImportComponent1303 } from "./manyImportFile1303" + + +@Component +export struct ManyImportComponent651 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1302() + ManyImportComponent1303() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile652.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile652.ets new file mode 100644 index 000000000..03926f71a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile652.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1304 } from "./manyImportFile1304" +import { ManyImportComponent1305 } from "./manyImportFile1305" + + +@Component +export struct ManyImportComponent652 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1304() + ManyImportComponent1305() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile653.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile653.ets new file mode 100644 index 000000000..d3f38bc20 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile653.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1306 } from "./manyImportFile1306" +import { ManyImportComponent1307 } from "./manyImportFile1307" + + +@Component +export struct ManyImportComponent653 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1306() + ManyImportComponent1307() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile654.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile654.ets new file mode 100644 index 000000000..f74ba6c8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile654.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1308 } from "./manyImportFile1308" +import { ManyImportComponent1309 } from "./manyImportFile1309" + + +@Component +export struct ManyImportComponent654 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1308() + ManyImportComponent1309() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile655.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile655.ets new file mode 100644 index 000000000..001b254c5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile655.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1310 } from "./manyImportFile1310" +import { ManyImportComponent1311 } from "./manyImportFile1311" + + +@Component +export struct ManyImportComponent655 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1310() + ManyImportComponent1311() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile656.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile656.ets new file mode 100644 index 000000000..8cd4a9f7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile656.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1312 } from "./manyImportFile1312" +import { ManyImportComponent1313 } from "./manyImportFile1313" + + +@Component +export struct ManyImportComponent656 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1312() + ManyImportComponent1313() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile657.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile657.ets new file mode 100644 index 000000000..0c34ae63b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile657.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1314 } from "./manyImportFile1314" +import { ManyImportComponent1315 } from "./manyImportFile1315" + + +@Component +export struct ManyImportComponent657 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1314() + ManyImportComponent1315() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile658.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile658.ets new file mode 100644 index 000000000..dfac74cdf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile658.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1316 } from "./manyImportFile1316" +import { ManyImportComponent1317 } from "./manyImportFile1317" + + +@Component +export struct ManyImportComponent658 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1316() + ManyImportComponent1317() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile659.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile659.ets new file mode 100644 index 000000000..6e9c72f36 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile659.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1318 } from "./manyImportFile1318" +import { ManyImportComponent1319 } from "./manyImportFile1319" + + +@Component +export struct ManyImportComponent659 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1318() + ManyImportComponent1319() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile66.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile66.ets new file mode 100644 index 000000000..c12f3f2aa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile66.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent132 } from "./manyImportFile132" +import { ManyImportComponent133 } from "./manyImportFile133" + + +@Component +export struct ManyImportComponent66 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent132() + ManyImportComponent133() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile660.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile660.ets new file mode 100644 index 000000000..47fa80377 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile660.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1320 } from "./manyImportFile1320" +import { ManyImportComponent1321 } from "./manyImportFile1321" + + +@Component +export struct ManyImportComponent660 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1320() + ManyImportComponent1321() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile661.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile661.ets new file mode 100644 index 000000000..9701314d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile661.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1322 } from "./manyImportFile1322" +import { ManyImportComponent1323 } from "./manyImportFile1323" + + +@Component +export struct ManyImportComponent661 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1322() + ManyImportComponent1323() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile662.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile662.ets new file mode 100644 index 000000000..7b9976bcf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile662.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1324 } from "./manyImportFile1324" +import { ManyImportComponent1325 } from "./manyImportFile1325" + + +@Component +export struct ManyImportComponent662 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1324() + ManyImportComponent1325() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile663.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile663.ets new file mode 100644 index 000000000..b549062f1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile663.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1326 } from "./manyImportFile1326" +import { ManyImportComponent1327 } from "./manyImportFile1327" + + +@Component +export struct ManyImportComponent663 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1326() + ManyImportComponent1327() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile664.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile664.ets new file mode 100644 index 000000000..d521a6e24 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile664.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1328 } from "./manyImportFile1328" +import { ManyImportComponent1329 } from "./manyImportFile1329" + + +@Component +export struct ManyImportComponent664 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1328() + ManyImportComponent1329() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile665.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile665.ets new file mode 100644 index 000000000..a6db6d8e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile665.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1330 } from "./manyImportFile1330" +import { ManyImportComponent1331 } from "./manyImportFile1331" + + +@Component +export struct ManyImportComponent665 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1330() + ManyImportComponent1331() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile666.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile666.ets new file mode 100644 index 000000000..1266e15b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile666.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1332 } from "./manyImportFile1332" +import { ManyImportComponent1333 } from "./manyImportFile1333" + + +@Component +export struct ManyImportComponent666 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1332() + ManyImportComponent1333() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile667.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile667.ets new file mode 100644 index 000000000..527de1647 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile667.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1334 } from "./manyImportFile1334" +import { ManyImportComponent1335 } from "./manyImportFile1335" + + +@Component +export struct ManyImportComponent667 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1334() + ManyImportComponent1335() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile668.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile668.ets new file mode 100644 index 000000000..81c6efd6e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile668.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1336 } from "./manyImportFile1336" +import { ManyImportComponent1337 } from "./manyImportFile1337" + + +@Component +export struct ManyImportComponent668 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1336() + ManyImportComponent1337() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile669.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile669.ets new file mode 100644 index 000000000..30173e8e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile669.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1338 } from "./manyImportFile1338" +import { ManyImportComponent1339 } from "./manyImportFile1339" + + +@Component +export struct ManyImportComponent669 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1338() + ManyImportComponent1339() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile67.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile67.ets new file mode 100644 index 000000000..24fdf3143 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile67.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent134 } from "./manyImportFile134" +import { ManyImportComponent135 } from "./manyImportFile135" + + +@Component +export struct ManyImportComponent67 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent134() + ManyImportComponent135() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile670.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile670.ets new file mode 100644 index 000000000..b3fc65bb7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile670.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1340 } from "./manyImportFile1340" +import { ManyImportComponent1341 } from "./manyImportFile1341" + + +@Component +export struct ManyImportComponent670 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1340() + ManyImportComponent1341() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile671.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile671.ets new file mode 100644 index 000000000..dfc486d78 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile671.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1342 } from "./manyImportFile1342" +import { ManyImportComponent1343 } from "./manyImportFile1343" + + +@Component +export struct ManyImportComponent671 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1342() + ManyImportComponent1343() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile672.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile672.ets new file mode 100644 index 000000000..9221df80c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile672.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1344 } from "./manyImportFile1344" +import { ManyImportComponent1345 } from "./manyImportFile1345" + + +@Component +export struct ManyImportComponent672 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1344() + ManyImportComponent1345() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile673.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile673.ets new file mode 100644 index 000000000..e59878175 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile673.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1346 } from "./manyImportFile1346" +import { ManyImportComponent1347 } from "./manyImportFile1347" + + +@Component +export struct ManyImportComponent673 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1346() + ManyImportComponent1347() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile674.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile674.ets new file mode 100644 index 000000000..9d3061ef3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile674.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1348 } from "./manyImportFile1348" +import { ManyImportComponent1349 } from "./manyImportFile1349" + + +@Component +export struct ManyImportComponent674 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1348() + ManyImportComponent1349() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile675.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile675.ets new file mode 100644 index 000000000..037fbb07e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile675.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1350 } from "./manyImportFile1350" +import { ManyImportComponent1351 } from "./manyImportFile1351" + + +@Component +export struct ManyImportComponent675 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1350() + ManyImportComponent1351() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile676.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile676.ets new file mode 100644 index 000000000..2f6a22969 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile676.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1352 } from "./manyImportFile1352" +import { ManyImportComponent1353 } from "./manyImportFile1353" + + +@Component +export struct ManyImportComponent676 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1352() + ManyImportComponent1353() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile677.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile677.ets new file mode 100644 index 000000000..f950cc0f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile677.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1354 } from "./manyImportFile1354" +import { ManyImportComponent1355 } from "./manyImportFile1355" + + +@Component +export struct ManyImportComponent677 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1354() + ManyImportComponent1355() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile678.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile678.ets new file mode 100644 index 000000000..41d889fee --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile678.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1356 } from "./manyImportFile1356" +import { ManyImportComponent1357 } from "./manyImportFile1357" + + +@Component +export struct ManyImportComponent678 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1356() + ManyImportComponent1357() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile679.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile679.ets new file mode 100644 index 000000000..58c8c2052 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile679.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1358 } from "./manyImportFile1358" +import { ManyImportComponent1359 } from "./manyImportFile1359" + + +@Component +export struct ManyImportComponent679 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1358() + ManyImportComponent1359() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile68.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile68.ets new file mode 100644 index 000000000..f8c70b20c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile68.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent136 } from "./manyImportFile136" +import { ManyImportComponent137 } from "./manyImportFile137" + + +@Component +export struct ManyImportComponent68 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent136() + ManyImportComponent137() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile680.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile680.ets new file mode 100644 index 000000000..d35c95d30 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile680.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1360 } from "./manyImportFile1360" +import { ManyImportComponent1361 } from "./manyImportFile1361" + + +@Component +export struct ManyImportComponent680 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1360() + ManyImportComponent1361() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile681.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile681.ets new file mode 100644 index 000000000..13c031576 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile681.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1362 } from "./manyImportFile1362" +import { ManyImportComponent1363 } from "./manyImportFile1363" + + +@Component +export struct ManyImportComponent681 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1362() + ManyImportComponent1363() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile682.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile682.ets new file mode 100644 index 000000000..d28faa6e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile682.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1364 } from "./manyImportFile1364" +import { ManyImportComponent1365 } from "./manyImportFile1365" + + +@Component +export struct ManyImportComponent682 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1364() + ManyImportComponent1365() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile683.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile683.ets new file mode 100644 index 000000000..f2bc48b68 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile683.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1366 } from "./manyImportFile1366" +import { ManyImportComponent1367 } from "./manyImportFile1367" + + +@Component +export struct ManyImportComponent683 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1366() + ManyImportComponent1367() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile684.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile684.ets new file mode 100644 index 000000000..3d57ce9d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile684.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1368 } from "./manyImportFile1368" +import { ManyImportComponent1369 } from "./manyImportFile1369" + + +@Component +export struct ManyImportComponent684 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1368() + ManyImportComponent1369() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile685.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile685.ets new file mode 100644 index 000000000..cc00672ea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile685.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1370 } from "./manyImportFile1370" +import { ManyImportComponent1371 } from "./manyImportFile1371" + + +@Component +export struct ManyImportComponent685 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1370() + ManyImportComponent1371() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile686.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile686.ets new file mode 100644 index 000000000..860701a23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile686.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1372 } from "./manyImportFile1372" +import { ManyImportComponent1373 } from "./manyImportFile1373" + + +@Component +export struct ManyImportComponent686 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1372() + ManyImportComponent1373() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile687.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile687.ets new file mode 100644 index 000000000..94d9a7221 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile687.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1374 } from "./manyImportFile1374" +import { ManyImportComponent1375 } from "./manyImportFile1375" + + +@Component +export struct ManyImportComponent687 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1374() + ManyImportComponent1375() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile688.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile688.ets new file mode 100644 index 000000000..f26e9c33a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile688.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1376 } from "./manyImportFile1376" +import { ManyImportComponent1377 } from "./manyImportFile1377" + + +@Component +export struct ManyImportComponent688 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1376() + ManyImportComponent1377() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile689.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile689.ets new file mode 100644 index 000000000..33d03256f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile689.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1378 } from "./manyImportFile1378" +import { ManyImportComponent1379 } from "./manyImportFile1379" + + +@Component +export struct ManyImportComponent689 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1378() + ManyImportComponent1379() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile69.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile69.ets new file mode 100644 index 000000000..c6c96fdae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile69.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent138 } from "./manyImportFile138" +import { ManyImportComponent139 } from "./manyImportFile139" + + +@Component +export struct ManyImportComponent69 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent138() + ManyImportComponent139() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile690.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile690.ets new file mode 100644 index 000000000..8f1242c89 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile690.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1380 } from "./manyImportFile1380" +import { ManyImportComponent1381 } from "./manyImportFile1381" + + +@Component +export struct ManyImportComponent690 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1380() + ManyImportComponent1381() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile691.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile691.ets new file mode 100644 index 000000000..bf3ca3375 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile691.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1382 } from "./manyImportFile1382" +import { ManyImportComponent1383 } from "./manyImportFile1383" + + +@Component +export struct ManyImportComponent691 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1382() + ManyImportComponent1383() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile692.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile692.ets new file mode 100644 index 000000000..7733ad6b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile692.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1384 } from "./manyImportFile1384" +import { ManyImportComponent1385 } from "./manyImportFile1385" + + +@Component +export struct ManyImportComponent692 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1384() + ManyImportComponent1385() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile693.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile693.ets new file mode 100644 index 000000000..9661821da --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile693.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1386 } from "./manyImportFile1386" +import { ManyImportComponent1387 } from "./manyImportFile1387" + + +@Component +export struct ManyImportComponent693 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1386() + ManyImportComponent1387() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile694.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile694.ets new file mode 100644 index 000000000..f967060ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile694.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1388 } from "./manyImportFile1388" +import { ManyImportComponent1389 } from "./manyImportFile1389" + + +@Component +export struct ManyImportComponent694 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1388() + ManyImportComponent1389() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile695.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile695.ets new file mode 100644 index 000000000..7575bbe40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile695.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1390 } from "./manyImportFile1390" +import { ManyImportComponent1391 } from "./manyImportFile1391" + + +@Component +export struct ManyImportComponent695 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1390() + ManyImportComponent1391() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile696.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile696.ets new file mode 100644 index 000000000..3980ec7e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile696.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1392 } from "./manyImportFile1392" +import { ManyImportComponent1393 } from "./manyImportFile1393" + + +@Component +export struct ManyImportComponent696 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1392() + ManyImportComponent1393() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile697.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile697.ets new file mode 100644 index 000000000..0c00e2438 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile697.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1394 } from "./manyImportFile1394" +import { ManyImportComponent1395 } from "./manyImportFile1395" + + +@Component +export struct ManyImportComponent697 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1394() + ManyImportComponent1395() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile698.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile698.ets new file mode 100644 index 000000000..fee0479ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile698.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1396 } from "./manyImportFile1396" +import { ManyImportComponent1397 } from "./manyImportFile1397" + + +@Component +export struct ManyImportComponent698 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1396() + ManyImportComponent1397() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile699.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile699.ets new file mode 100644 index 000000000..918d5b8a1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile699.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1398 } from "./manyImportFile1398" +import { ManyImportComponent1399 } from "./manyImportFile1399" + + +@Component +export struct ManyImportComponent699 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1398() + ManyImportComponent1399() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile7.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile7.ets new file mode 100644 index 000000000..b6c92c25a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile7.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent14 } from "./manyImportFile14" +import { ManyImportComponent15 } from "./manyImportFile15" + + +@Component +export struct ManyImportComponent7 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent14() + ManyImportComponent15() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile70.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile70.ets new file mode 100644 index 000000000..e5c8aa24e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile70.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent140 } from "./manyImportFile140" +import { ManyImportComponent141 } from "./manyImportFile141" + + +@Component +export struct ManyImportComponent70 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent140() + ManyImportComponent141() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile700.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile700.ets new file mode 100644 index 000000000..6f5fc1cf7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile700.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1400 } from "./manyImportFile1400" +import { ManyImportComponent1401 } from "./manyImportFile1401" + + +@Component +export struct ManyImportComponent700 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1400() + ManyImportComponent1401() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile701.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile701.ets new file mode 100644 index 000000000..dd234b95b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile701.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1402 } from "./manyImportFile1402" +import { ManyImportComponent1403 } from "./manyImportFile1403" + + +@Component +export struct ManyImportComponent701 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1402() + ManyImportComponent1403() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile702.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile702.ets new file mode 100644 index 000000000..796333215 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile702.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1404 } from "./manyImportFile1404" +import { ManyImportComponent1405 } from "./manyImportFile1405" + + +@Component +export struct ManyImportComponent702 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1404() + ManyImportComponent1405() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile703.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile703.ets new file mode 100644 index 000000000..cc7df0ce3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile703.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1406 } from "./manyImportFile1406" +import { ManyImportComponent1407 } from "./manyImportFile1407" + + +@Component +export struct ManyImportComponent703 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1406() + ManyImportComponent1407() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile704.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile704.ets new file mode 100644 index 000000000..3af375c52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile704.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1408 } from "./manyImportFile1408" +import { ManyImportComponent1409 } from "./manyImportFile1409" + + +@Component +export struct ManyImportComponent704 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1408() + ManyImportComponent1409() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile705.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile705.ets new file mode 100644 index 000000000..f61a9f6bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile705.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1410 } from "./manyImportFile1410" +import { ManyImportComponent1411 } from "./manyImportFile1411" + + +@Component +export struct ManyImportComponent705 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1410() + ManyImportComponent1411() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile706.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile706.ets new file mode 100644 index 000000000..fc3403173 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile706.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1412 } from "./manyImportFile1412" +import { ManyImportComponent1413 } from "./manyImportFile1413" + + +@Component +export struct ManyImportComponent706 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1412() + ManyImportComponent1413() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile707.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile707.ets new file mode 100644 index 000000000..5f762a4e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile707.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1414 } from "./manyImportFile1414" +import { ManyImportComponent1415 } from "./manyImportFile1415" + + +@Component +export struct ManyImportComponent707 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1414() + ManyImportComponent1415() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile708.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile708.ets new file mode 100644 index 000000000..0763da556 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile708.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1416 } from "./manyImportFile1416" +import { ManyImportComponent1417 } from "./manyImportFile1417" + + +@Component +export struct ManyImportComponent708 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1416() + ManyImportComponent1417() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile709.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile709.ets new file mode 100644 index 000000000..642d3319d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile709.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1418 } from "./manyImportFile1418" +import { ManyImportComponent1419 } from "./manyImportFile1419" + + +@Component +export struct ManyImportComponent709 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1418() + ManyImportComponent1419() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile71.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile71.ets new file mode 100644 index 000000000..951160178 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile71.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent142 } from "./manyImportFile142" +import { ManyImportComponent143 } from "./manyImportFile143" + + +@Component +export struct ManyImportComponent71 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent142() + ManyImportComponent143() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile710.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile710.ets new file mode 100644 index 000000000..866009502 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile710.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1420 } from "./manyImportFile1420" +import { ManyImportComponent1421 } from "./manyImportFile1421" + + +@Component +export struct ManyImportComponent710 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1420() + ManyImportComponent1421() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile711.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile711.ets new file mode 100644 index 000000000..c2bbe9b52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile711.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1422 } from "./manyImportFile1422" +import { ManyImportComponent1423 } from "./manyImportFile1423" + + +@Component +export struct ManyImportComponent711 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1422() + ManyImportComponent1423() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile712.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile712.ets new file mode 100644 index 000000000..4988688cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile712.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1424 } from "./manyImportFile1424" +import { ManyImportComponent1425 } from "./manyImportFile1425" + + +@Component +export struct ManyImportComponent712 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1424() + ManyImportComponent1425() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile713.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile713.ets new file mode 100644 index 000000000..c90c21954 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile713.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1426 } from "./manyImportFile1426" +import { ManyImportComponent1427 } from "./manyImportFile1427" + + +@Component +export struct ManyImportComponent713 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1426() + ManyImportComponent1427() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile714.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile714.ets new file mode 100644 index 000000000..43518ed35 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile714.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1428 } from "./manyImportFile1428" +import { ManyImportComponent1429 } from "./manyImportFile1429" + + +@Component +export struct ManyImportComponent714 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1428() + ManyImportComponent1429() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile715.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile715.ets new file mode 100644 index 000000000..bdb3e1cfe --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile715.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1430 } from "./manyImportFile1430" +import { ManyImportComponent1431 } from "./manyImportFile1431" + + +@Component +export struct ManyImportComponent715 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1430() + ManyImportComponent1431() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile716.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile716.ets new file mode 100644 index 000000000..34e01a875 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile716.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1432 } from "./manyImportFile1432" +import { ManyImportComponent1433 } from "./manyImportFile1433" + + +@Component +export struct ManyImportComponent716 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1432() + ManyImportComponent1433() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile717.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile717.ets new file mode 100644 index 000000000..80a3f97e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile717.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1434 } from "./manyImportFile1434" +import { ManyImportComponent1435 } from "./manyImportFile1435" + + +@Component +export struct ManyImportComponent717 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1434() + ManyImportComponent1435() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile718.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile718.ets new file mode 100644 index 000000000..d7cf9145e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile718.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1436 } from "./manyImportFile1436" +import { ManyImportComponent1437 } from "./manyImportFile1437" + + +@Component +export struct ManyImportComponent718 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1436() + ManyImportComponent1437() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile719.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile719.ets new file mode 100644 index 000000000..88a015996 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile719.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1438 } from "./manyImportFile1438" +import { ManyImportComponent1439 } from "./manyImportFile1439" + + +@Component +export struct ManyImportComponent719 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1438() + ManyImportComponent1439() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile72.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile72.ets new file mode 100644 index 000000000..1f918a410 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile72.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent144 } from "./manyImportFile144" +import { ManyImportComponent145 } from "./manyImportFile145" + + +@Component +export struct ManyImportComponent72 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent144() + ManyImportComponent145() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile720.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile720.ets new file mode 100644 index 000000000..6951edfd2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile720.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1440 } from "./manyImportFile1440" +import { ManyImportComponent1441 } from "./manyImportFile1441" + + +@Component +export struct ManyImportComponent720 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1440() + ManyImportComponent1441() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile721.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile721.ets new file mode 100644 index 000000000..addfb627e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile721.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1442 } from "./manyImportFile1442" +import { ManyImportComponent1443 } from "./manyImportFile1443" + + +@Component +export struct ManyImportComponent721 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1442() + ManyImportComponent1443() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile722.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile722.ets new file mode 100644 index 000000000..a33935097 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile722.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1444 } from "./manyImportFile1444" +import { ManyImportComponent1445 } from "./manyImportFile1445" + + +@Component +export struct ManyImportComponent722 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1444() + ManyImportComponent1445() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile723.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile723.ets new file mode 100644 index 000000000..b0a94b49d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile723.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1446 } from "./manyImportFile1446" +import { ManyImportComponent1447 } from "./manyImportFile1447" + + +@Component +export struct ManyImportComponent723 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1446() + ManyImportComponent1447() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile724.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile724.ets new file mode 100644 index 000000000..c15b60408 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile724.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1448 } from "./manyImportFile1448" +import { ManyImportComponent1449 } from "./manyImportFile1449" + + +@Component +export struct ManyImportComponent724 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1448() + ManyImportComponent1449() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile725.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile725.ets new file mode 100644 index 000000000..a925077d9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile725.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1450 } from "./manyImportFile1450" +import { ManyImportComponent1451 } from "./manyImportFile1451" + + +@Component +export struct ManyImportComponent725 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1450() + ManyImportComponent1451() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile726.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile726.ets new file mode 100644 index 000000000..27dd7e086 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile726.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1452 } from "./manyImportFile1452" +import { ManyImportComponent1453 } from "./manyImportFile1453" + + +@Component +export struct ManyImportComponent726 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1452() + ManyImportComponent1453() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile727.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile727.ets new file mode 100644 index 000000000..451c33552 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile727.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1454 } from "./manyImportFile1454" +import { ManyImportComponent1455 } from "./manyImportFile1455" + + +@Component +export struct ManyImportComponent727 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1454() + ManyImportComponent1455() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile728.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile728.ets new file mode 100644 index 000000000..725972072 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile728.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1456 } from "./manyImportFile1456" +import { ManyImportComponent1457 } from "./manyImportFile1457" + + +@Component +export struct ManyImportComponent728 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1456() + ManyImportComponent1457() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile729.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile729.ets new file mode 100644 index 000000000..340ebb6fb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile729.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1458 } from "./manyImportFile1458" +import { ManyImportComponent1459 } from "./manyImportFile1459" + + +@Component +export struct ManyImportComponent729 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1458() + ManyImportComponent1459() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile73.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile73.ets new file mode 100644 index 000000000..bcbb003a5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile73.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent146 } from "./manyImportFile146" +import { ManyImportComponent147 } from "./manyImportFile147" + + +@Component +export struct ManyImportComponent73 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent146() + ManyImportComponent147() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile730.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile730.ets new file mode 100644 index 000000000..7f7fa78b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile730.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1460 } from "./manyImportFile1460" +import { ManyImportComponent1461 } from "./manyImportFile1461" + + +@Component +export struct ManyImportComponent730 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1460() + ManyImportComponent1461() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile731.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile731.ets new file mode 100644 index 000000000..628d0e92d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile731.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1462 } from "./manyImportFile1462" +import { ManyImportComponent1463 } from "./manyImportFile1463" + + +@Component +export struct ManyImportComponent731 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1462() + ManyImportComponent1463() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile732.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile732.ets new file mode 100644 index 000000000..a350fb4e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile732.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1464 } from "./manyImportFile1464" +import { ManyImportComponent1465 } from "./manyImportFile1465" + + +@Component +export struct ManyImportComponent732 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1464() + ManyImportComponent1465() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile733.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile733.ets new file mode 100644 index 000000000..1b639255c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile733.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1466 } from "./manyImportFile1466" +import { ManyImportComponent1467 } from "./manyImportFile1467" + + +@Component +export struct ManyImportComponent733 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1466() + ManyImportComponent1467() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile734.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile734.ets new file mode 100644 index 000000000..e07efa5a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile734.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1468 } from "./manyImportFile1468" +import { ManyImportComponent1469 } from "./manyImportFile1469" + + +@Component +export struct ManyImportComponent734 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1468() + ManyImportComponent1469() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile735.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile735.ets new file mode 100644 index 000000000..c09773658 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile735.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1470 } from "./manyImportFile1470" +import { ManyImportComponent1471 } from "./manyImportFile1471" + + +@Component +export struct ManyImportComponent735 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1470() + ManyImportComponent1471() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile736.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile736.ets new file mode 100644 index 000000000..4ee9a03a8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile736.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1472 } from "./manyImportFile1472" +import { ManyImportComponent1473 } from "./manyImportFile1473" + + +@Component +export struct ManyImportComponent736 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1472() + ManyImportComponent1473() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile737.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile737.ets new file mode 100644 index 000000000..d91b908e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile737.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1474 } from "./manyImportFile1474" +import { ManyImportComponent1475 } from "./manyImportFile1475" + + +@Component +export struct ManyImportComponent737 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1474() + ManyImportComponent1475() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile738.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile738.ets new file mode 100644 index 000000000..9b0795360 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile738.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1476 } from "./manyImportFile1476" +import { ManyImportComponent1477 } from "./manyImportFile1477" + + +@Component +export struct ManyImportComponent738 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1476() + ManyImportComponent1477() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile739.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile739.ets new file mode 100644 index 000000000..cafec0dac --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile739.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1478 } from "./manyImportFile1478" +import { ManyImportComponent1479 } from "./manyImportFile1479" + + +@Component +export struct ManyImportComponent739 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1478() + ManyImportComponent1479() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile74.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile74.ets new file mode 100644 index 000000000..c82ceaa84 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile74.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent148 } from "./manyImportFile148" +import { ManyImportComponent149 } from "./manyImportFile149" + + +@Component +export struct ManyImportComponent74 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent148() + ManyImportComponent149() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile740.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile740.ets new file mode 100644 index 000000000..915102615 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile740.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1480 } from "./manyImportFile1480" +import { ManyImportComponent1481 } from "./manyImportFile1481" + + +@Component +export struct ManyImportComponent740 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1480() + ManyImportComponent1481() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile741.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile741.ets new file mode 100644 index 000000000..d815e8a5b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile741.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1482 } from "./manyImportFile1482" +import { ManyImportComponent1483 } from "./manyImportFile1483" + + +@Component +export struct ManyImportComponent741 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1482() + ManyImportComponent1483() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile742.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile742.ets new file mode 100644 index 000000000..fe9aa86d0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile742.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1484 } from "./manyImportFile1484" +import { ManyImportComponent1485 } from "./manyImportFile1485" + + +@Component +export struct ManyImportComponent742 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1484() + ManyImportComponent1485() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile743.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile743.ets new file mode 100644 index 000000000..9aed9ea7b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile743.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1486 } from "./manyImportFile1486" +import { ManyImportComponent1487 } from "./manyImportFile1487" + + +@Component +export struct ManyImportComponent743 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1486() + ManyImportComponent1487() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile744.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile744.ets new file mode 100644 index 000000000..df24a3fbb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile744.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1488 } from "./manyImportFile1488" +import { ManyImportComponent1489 } from "./manyImportFile1489" + + +@Component +export struct ManyImportComponent744 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1488() + ManyImportComponent1489() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile745.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile745.ets new file mode 100644 index 000000000..896ab4134 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile745.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1490 } from "./manyImportFile1490" +import { ManyImportComponent1491 } from "./manyImportFile1491" + + +@Component +export struct ManyImportComponent745 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1490() + ManyImportComponent1491() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile746.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile746.ets new file mode 100644 index 000000000..55faafc2e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile746.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1492 } from "./manyImportFile1492" +import { ManyImportComponent1493 } from "./manyImportFile1493" + + +@Component +export struct ManyImportComponent746 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1492() + ManyImportComponent1493() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile747.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile747.ets new file mode 100644 index 000000000..2f65b0d70 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile747.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1494 } from "./manyImportFile1494" +import { ManyImportComponent1495 } from "./manyImportFile1495" + + +@Component +export struct ManyImportComponent747 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1494() + ManyImportComponent1495() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile748.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile748.ets new file mode 100644 index 000000000..c86950281 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile748.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1496 } from "./manyImportFile1496" +import { ManyImportComponent1497 } from "./manyImportFile1497" + + +@Component +export struct ManyImportComponent748 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1496() + ManyImportComponent1497() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile749.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile749.ets new file mode 100644 index 000000000..eab2a50cc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile749.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1498 } from "./manyImportFile1498" +import { ManyImportComponent1499 } from "./manyImportFile1499" + + +@Component +export struct ManyImportComponent749 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1498() + ManyImportComponent1499() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile75.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile75.ets new file mode 100644 index 000000000..d2c789195 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile75.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent150 } from "./manyImportFile150" +import { ManyImportComponent151 } from "./manyImportFile151" + + +@Component +export struct ManyImportComponent75 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent150() + ManyImportComponent151() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile750.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile750.ets new file mode 100644 index 000000000..f99eb3ec5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile750.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1500 } from "./manyImportFile1500" +import { ManyImportComponent1501 } from "./manyImportFile1501" + + +@Component +export struct ManyImportComponent750 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1500() + ManyImportComponent1501() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile751.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile751.ets new file mode 100644 index 000000000..915a5ce6f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile751.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1502 } from "./manyImportFile1502" +import { ManyImportComponent1503 } from "./manyImportFile1503" + + +@Component +export struct ManyImportComponent751 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1502() + ManyImportComponent1503() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile752.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile752.ets new file mode 100644 index 000000000..40cd3a8a2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile752.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1504 } from "./manyImportFile1504" +import { ManyImportComponent1505 } from "./manyImportFile1505" + + +@Component +export struct ManyImportComponent752 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1504() + ManyImportComponent1505() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile753.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile753.ets new file mode 100644 index 000000000..739bdf1de --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile753.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1506 } from "./manyImportFile1506" +import { ManyImportComponent1507 } from "./manyImportFile1507" + + +@Component +export struct ManyImportComponent753 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1506() + ManyImportComponent1507() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile754.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile754.ets new file mode 100644 index 000000000..8503b3139 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile754.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1508 } from "./manyImportFile1508" +import { ManyImportComponent1509 } from "./manyImportFile1509" + + +@Component +export struct ManyImportComponent754 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1508() + ManyImportComponent1509() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile755.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile755.ets new file mode 100644 index 000000000..3848438e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile755.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1510 } from "./manyImportFile1510" +import { ManyImportComponent1511 } from "./manyImportFile1511" + + +@Component +export struct ManyImportComponent755 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1510() + ManyImportComponent1511() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile756.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile756.ets new file mode 100644 index 000000000..fab5cacd8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile756.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1512 } from "./manyImportFile1512" +import { ManyImportComponent1513 } from "./manyImportFile1513" + + +@Component +export struct ManyImportComponent756 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1512() + ManyImportComponent1513() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile757.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile757.ets new file mode 100644 index 000000000..19d09d55f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile757.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1514 } from "./manyImportFile1514" +import { ManyImportComponent1515 } from "./manyImportFile1515" + + +@Component +export struct ManyImportComponent757 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1514() + ManyImportComponent1515() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile758.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile758.ets new file mode 100644 index 000000000..b9d126c6e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile758.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1516 } from "./manyImportFile1516" +import { ManyImportComponent1517 } from "./manyImportFile1517" + + +@Component +export struct ManyImportComponent758 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1516() + ManyImportComponent1517() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile759.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile759.ets new file mode 100644 index 000000000..cbac37589 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile759.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1518 } from "./manyImportFile1518" +import { ManyImportComponent1519 } from "./manyImportFile1519" + + +@Component +export struct ManyImportComponent759 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1518() + ManyImportComponent1519() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile76.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile76.ets new file mode 100644 index 000000000..1ab5ad947 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile76.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent152 } from "./manyImportFile152" +import { ManyImportComponent153 } from "./manyImportFile153" + + +@Component +export struct ManyImportComponent76 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent152() + ManyImportComponent153() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile760.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile760.ets new file mode 100644 index 000000000..f636ab729 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile760.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1520 } from "./manyImportFile1520" +import { ManyImportComponent1521 } from "./manyImportFile1521" + + +@Component +export struct ManyImportComponent760 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1520() + ManyImportComponent1521() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile761.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile761.ets new file mode 100644 index 000000000..73bf6d133 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile761.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1522 } from "./manyImportFile1522" +import { ManyImportComponent1523 } from "./manyImportFile1523" + + +@Component +export struct ManyImportComponent761 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1522() + ManyImportComponent1523() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile762.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile762.ets new file mode 100644 index 000000000..4e0e2676e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile762.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1524 } from "./manyImportFile1524" +import { ManyImportComponent1525 } from "./manyImportFile1525" + + +@Component +export struct ManyImportComponent762 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1524() + ManyImportComponent1525() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile763.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile763.ets new file mode 100644 index 000000000..398fb14ca --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile763.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1526 } from "./manyImportFile1526" +import { ManyImportComponent1527 } from "./manyImportFile1527" + + +@Component +export struct ManyImportComponent763 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1526() + ManyImportComponent1527() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile764.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile764.ets new file mode 100644 index 000000000..783aebe3b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile764.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1528 } from "./manyImportFile1528" +import { ManyImportComponent1529 } from "./manyImportFile1529" + + +@Component +export struct ManyImportComponent764 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1528() + ManyImportComponent1529() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile765.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile765.ets new file mode 100644 index 000000000..fa85f72e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile765.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1530 } from "./manyImportFile1530" +import { ManyImportComponent1531 } from "./manyImportFile1531" + + +@Component +export struct ManyImportComponent765 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1530() + ManyImportComponent1531() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile766.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile766.ets new file mode 100644 index 000000000..b7bb2a7e0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile766.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1532 } from "./manyImportFile1532" +import { ManyImportComponent1533 } from "./manyImportFile1533" + + +@Component +export struct ManyImportComponent766 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1532() + ManyImportComponent1533() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile767.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile767.ets new file mode 100644 index 000000000..bb955044b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile767.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1534 } from "./manyImportFile1534" +import { ManyImportComponent1535 } from "./manyImportFile1535" + + +@Component +export struct ManyImportComponent767 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1534() + ManyImportComponent1535() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile768.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile768.ets new file mode 100644 index 000000000..4adcd80dc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile768.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1536 } from "./manyImportFile1536" +import { ManyImportComponent1537 } from "./manyImportFile1537" + + +@Component +export struct ManyImportComponent768 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1536() + ManyImportComponent1537() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile769.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile769.ets new file mode 100644 index 000000000..cbe2fef43 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile769.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1538 } from "./manyImportFile1538" +import { ManyImportComponent1539 } from "./manyImportFile1539" + + +@Component +export struct ManyImportComponent769 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1538() + ManyImportComponent1539() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile77.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile77.ets new file mode 100644 index 000000000..215191ef2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile77.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent154 } from "./manyImportFile154" +import { ManyImportComponent155 } from "./manyImportFile155" + + +@Component +export struct ManyImportComponent77 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent154() + ManyImportComponent155() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile770.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile770.ets new file mode 100644 index 000000000..02732a394 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile770.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1540 } from "./manyImportFile1540" +import { ManyImportComponent1541 } from "./manyImportFile1541" + + +@Component +export struct ManyImportComponent770 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1540() + ManyImportComponent1541() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile771.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile771.ets new file mode 100644 index 000000000..39fadcf3a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile771.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1542 } from "./manyImportFile1542" +import { ManyImportComponent1543 } from "./manyImportFile1543" + + +@Component +export struct ManyImportComponent771 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1542() + ManyImportComponent1543() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile772.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile772.ets new file mode 100644 index 000000000..774dc4ff8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile772.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1544 } from "./manyImportFile1544" +import { ManyImportComponent1545 } from "./manyImportFile1545" + + +@Component +export struct ManyImportComponent772 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1544() + ManyImportComponent1545() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile773.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile773.ets new file mode 100644 index 000000000..6659c5393 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile773.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1546 } from "./manyImportFile1546" +import { ManyImportComponent1547 } from "./manyImportFile1547" + + +@Component +export struct ManyImportComponent773 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1546() + ManyImportComponent1547() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile774.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile774.ets new file mode 100644 index 000000000..cace29974 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile774.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1548 } from "./manyImportFile1548" +import { ManyImportComponent1549 } from "./manyImportFile1549" + + +@Component +export struct ManyImportComponent774 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1548() + ManyImportComponent1549() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile775.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile775.ets new file mode 100644 index 000000000..3cdb6192f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile775.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1550 } from "./manyImportFile1550" +import { ManyImportComponent1551 } from "./manyImportFile1551" + + +@Component +export struct ManyImportComponent775 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1550() + ManyImportComponent1551() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile776.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile776.ets new file mode 100644 index 000000000..af93ad563 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile776.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1552 } from "./manyImportFile1552" +import { ManyImportComponent1553 } from "./manyImportFile1553" + + +@Component +export struct ManyImportComponent776 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1552() + ManyImportComponent1553() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile777.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile777.ets new file mode 100644 index 000000000..21ee105c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile777.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1554 } from "./manyImportFile1554" +import { ManyImportComponent1555 } from "./manyImportFile1555" + + +@Component +export struct ManyImportComponent777 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1554() + ManyImportComponent1555() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile778.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile778.ets new file mode 100644 index 000000000..cdd5cd912 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile778.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1556 } from "./manyImportFile1556" +import { ManyImportComponent1557 } from "./manyImportFile1557" + + +@Component +export struct ManyImportComponent778 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1556() + ManyImportComponent1557() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile779.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile779.ets new file mode 100644 index 000000000..8a25c310b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile779.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1558 } from "./manyImportFile1558" +import { ManyImportComponent1559 } from "./manyImportFile1559" + + +@Component +export struct ManyImportComponent779 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1558() + ManyImportComponent1559() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile78.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile78.ets new file mode 100644 index 000000000..5e4441dfc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile78.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent156 } from "./manyImportFile156" +import { ManyImportComponent157 } from "./manyImportFile157" + + +@Component +export struct ManyImportComponent78 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent156() + ManyImportComponent157() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile780.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile780.ets new file mode 100644 index 000000000..13cd72575 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile780.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1560 } from "./manyImportFile1560" +import { ManyImportComponent1561 } from "./manyImportFile1561" + + +@Component +export struct ManyImportComponent780 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1560() + ManyImportComponent1561() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile781.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile781.ets new file mode 100644 index 000000000..84a133082 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile781.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1562 } from "./manyImportFile1562" +import { ManyImportComponent1563 } from "./manyImportFile1563" + + +@Component +export struct ManyImportComponent781 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1562() + ManyImportComponent1563() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile782.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile782.ets new file mode 100644 index 000000000..208c8b968 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile782.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1564 } from "./manyImportFile1564" +import { ManyImportComponent1565 } from "./manyImportFile1565" + + +@Component +export struct ManyImportComponent782 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1564() + ManyImportComponent1565() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile783.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile783.ets new file mode 100644 index 000000000..a1498be7c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile783.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1566 } from "./manyImportFile1566" +import { ManyImportComponent1567 } from "./manyImportFile1567" + + +@Component +export struct ManyImportComponent783 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1566() + ManyImportComponent1567() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile784.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile784.ets new file mode 100644 index 000000000..cbfb051b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile784.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1568 } from "./manyImportFile1568" +import { ManyImportComponent1569 } from "./manyImportFile1569" + + +@Component +export struct ManyImportComponent784 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1568() + ManyImportComponent1569() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile785.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile785.ets new file mode 100644 index 000000000..23060157e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile785.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1570 } from "./manyImportFile1570" +import { ManyImportComponent1571 } from "./manyImportFile1571" + + +@Component +export struct ManyImportComponent785 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1570() + ManyImportComponent1571() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile786.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile786.ets new file mode 100644 index 000000000..29cd312ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile786.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1572 } from "./manyImportFile1572" +import { ManyImportComponent1573 } from "./manyImportFile1573" + + +@Component +export struct ManyImportComponent786 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1572() + ManyImportComponent1573() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile787.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile787.ets new file mode 100644 index 000000000..b454f1b7d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile787.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1574 } from "./manyImportFile1574" +import { ManyImportComponent1575 } from "./manyImportFile1575" + + +@Component +export struct ManyImportComponent787 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1574() + ManyImportComponent1575() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile788.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile788.ets new file mode 100644 index 000000000..abe2620ab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile788.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1576 } from "./manyImportFile1576" +import { ManyImportComponent1577 } from "./manyImportFile1577" + + +@Component +export struct ManyImportComponent788 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1576() + ManyImportComponent1577() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile789.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile789.ets new file mode 100644 index 000000000..b74e547d2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile789.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1578 } from "./manyImportFile1578" +import { ManyImportComponent1579 } from "./manyImportFile1579" + + +@Component +export struct ManyImportComponent789 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1578() + ManyImportComponent1579() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile79.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile79.ets new file mode 100644 index 000000000..81840444d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile79.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent158 } from "./manyImportFile158" +import { ManyImportComponent159 } from "./manyImportFile159" + + +@Component +export struct ManyImportComponent79 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent158() + ManyImportComponent159() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile790.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile790.ets new file mode 100644 index 000000000..33f8cb155 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile790.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1580 } from "./manyImportFile1580" +import { ManyImportComponent1581 } from "./manyImportFile1581" + + +@Component +export struct ManyImportComponent790 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1580() + ManyImportComponent1581() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile791.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile791.ets new file mode 100644 index 000000000..fd1206f2d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile791.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1582 } from "./manyImportFile1582" +import { ManyImportComponent1583 } from "./manyImportFile1583" + + +@Component +export struct ManyImportComponent791 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1582() + ManyImportComponent1583() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile792.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile792.ets new file mode 100644 index 000000000..d8251b3e6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile792.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1584 } from "./manyImportFile1584" +import { ManyImportComponent1585 } from "./manyImportFile1585" + + +@Component +export struct ManyImportComponent792 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1584() + ManyImportComponent1585() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile793.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile793.ets new file mode 100644 index 000000000..94df3870f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile793.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1586 } from "./manyImportFile1586" +import { ManyImportComponent1587 } from "./manyImportFile1587" + + +@Component +export struct ManyImportComponent793 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1586() + ManyImportComponent1587() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile794.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile794.ets new file mode 100644 index 000000000..bc2dd88d8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile794.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1588 } from "./manyImportFile1588" +import { ManyImportComponent1589 } from "./manyImportFile1589" + + +@Component +export struct ManyImportComponent794 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1588() + ManyImportComponent1589() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile795.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile795.ets new file mode 100644 index 000000000..b2cfeeee6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile795.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1590 } from "./manyImportFile1590" +import { ManyImportComponent1591 } from "./manyImportFile1591" + + +@Component +export struct ManyImportComponent795 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1590() + ManyImportComponent1591() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile796.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile796.ets new file mode 100644 index 000000000..26ad08888 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile796.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1592 } from "./manyImportFile1592" +import { ManyImportComponent1593 } from "./manyImportFile1593" + + +@Component +export struct ManyImportComponent796 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1592() + ManyImportComponent1593() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile797.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile797.ets new file mode 100644 index 000000000..3e95c0945 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile797.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1594 } from "./manyImportFile1594" +import { ManyImportComponent1595 } from "./manyImportFile1595" + + +@Component +export struct ManyImportComponent797 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1594() + ManyImportComponent1595() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile798.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile798.ets new file mode 100644 index 000000000..288ad595e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile798.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1596 } from "./manyImportFile1596" +import { ManyImportComponent1597 } from "./manyImportFile1597" + + +@Component +export struct ManyImportComponent798 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1596() + ManyImportComponent1597() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile799.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile799.ets new file mode 100644 index 000000000..ded2465eb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile799.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1598 } from "./manyImportFile1598" +import { ManyImportComponent1599 } from "./manyImportFile1599" + + +@Component +export struct ManyImportComponent799 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1598() + ManyImportComponent1599() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile8.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile8.ets new file mode 100644 index 000000000..7e121cdf6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile8.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent16 } from "./manyImportFile16" +import { ManyImportComponent17 } from "./manyImportFile17" + + +@Component +export struct ManyImportComponent8 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent16() + ManyImportComponent17() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile80.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile80.ets new file mode 100644 index 000000000..c29fdf72d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile80.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent160 } from "./manyImportFile160" +import { ManyImportComponent161 } from "./manyImportFile161" + + +@Component +export struct ManyImportComponent80 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent160() + ManyImportComponent161() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile800.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile800.ets new file mode 100644 index 000000000..0d4da6bc3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile800.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1600 } from "./manyImportFile1600" +import { ManyImportComponent1601 } from "./manyImportFile1601" + + +@Component +export struct ManyImportComponent800 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1600() + ManyImportComponent1601() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile801.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile801.ets new file mode 100644 index 000000000..13a2e9c68 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile801.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1602 } from "./manyImportFile1602" +import { ManyImportComponent1603 } from "./manyImportFile1603" + + +@Component +export struct ManyImportComponent801 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1602() + ManyImportComponent1603() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile802.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile802.ets new file mode 100644 index 000000000..d32814ab2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile802.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1604 } from "./manyImportFile1604" +import { ManyImportComponent1605 } from "./manyImportFile1605" + + +@Component +export struct ManyImportComponent802 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1604() + ManyImportComponent1605() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile803.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile803.ets new file mode 100644 index 000000000..627e9d682 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile803.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1606 } from "./manyImportFile1606" +import { ManyImportComponent1607 } from "./manyImportFile1607" + + +@Component +export struct ManyImportComponent803 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1606() + ManyImportComponent1607() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile804.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile804.ets new file mode 100644 index 000000000..e54a28863 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile804.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1608 } from "./manyImportFile1608" +import { ManyImportComponent1609 } from "./manyImportFile1609" + + +@Component +export struct ManyImportComponent804 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1608() + ManyImportComponent1609() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile805.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile805.ets new file mode 100644 index 000000000..3974f4e50 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile805.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1610 } from "./manyImportFile1610" +import { ManyImportComponent1611 } from "./manyImportFile1611" + + +@Component +export struct ManyImportComponent805 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1610() + ManyImportComponent1611() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile806.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile806.ets new file mode 100644 index 000000000..58b917a69 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile806.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1612 } from "./manyImportFile1612" +import { ManyImportComponent1613 } from "./manyImportFile1613" + + +@Component +export struct ManyImportComponent806 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1612() + ManyImportComponent1613() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile807.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile807.ets new file mode 100644 index 000000000..bddaf33d7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile807.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1614 } from "./manyImportFile1614" +import { ManyImportComponent1615 } from "./manyImportFile1615" + + +@Component +export struct ManyImportComponent807 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1614() + ManyImportComponent1615() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile808.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile808.ets new file mode 100644 index 000000000..16207d4c0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile808.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1616 } from "./manyImportFile1616" +import { ManyImportComponent1617 } from "./manyImportFile1617" + + +@Component +export struct ManyImportComponent808 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1616() + ManyImportComponent1617() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile809.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile809.ets new file mode 100644 index 000000000..42fc1c394 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile809.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1618 } from "./manyImportFile1618" +import { ManyImportComponent1619 } from "./manyImportFile1619" + + +@Component +export struct ManyImportComponent809 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1618() + ManyImportComponent1619() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile81.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile81.ets new file mode 100644 index 000000000..213a62ede --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile81.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent162 } from "./manyImportFile162" +import { ManyImportComponent163 } from "./manyImportFile163" + + +@Component +export struct ManyImportComponent81 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent162() + ManyImportComponent163() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile810.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile810.ets new file mode 100644 index 000000000..ce403da01 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile810.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1620 } from "./manyImportFile1620" +import { ManyImportComponent1621 } from "./manyImportFile1621" + + +@Component +export struct ManyImportComponent810 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1620() + ManyImportComponent1621() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile811.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile811.ets new file mode 100644 index 000000000..9ea11b83f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile811.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1622 } from "./manyImportFile1622" +import { ManyImportComponent1623 } from "./manyImportFile1623" + + +@Component +export struct ManyImportComponent811 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1622() + ManyImportComponent1623() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile812.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile812.ets new file mode 100644 index 000000000..edff974c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile812.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1624 } from "./manyImportFile1624" +import { ManyImportComponent1625 } from "./manyImportFile1625" + + +@Component +export struct ManyImportComponent812 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1624() + ManyImportComponent1625() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile813.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile813.ets new file mode 100644 index 000000000..c29c76cc6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile813.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1626 } from "./manyImportFile1626" +import { ManyImportComponent1627 } from "./manyImportFile1627" + + +@Component +export struct ManyImportComponent813 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1626() + ManyImportComponent1627() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile814.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile814.ets new file mode 100644 index 000000000..1a3068c44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile814.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1628 } from "./manyImportFile1628" +import { ManyImportComponent1629 } from "./manyImportFile1629" + + +@Component +export struct ManyImportComponent814 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1628() + ManyImportComponent1629() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile815.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile815.ets new file mode 100644 index 000000000..ac6184af7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile815.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1630 } from "./manyImportFile1630" +import { ManyImportComponent1631 } from "./manyImportFile1631" + + +@Component +export struct ManyImportComponent815 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1630() + ManyImportComponent1631() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile816.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile816.ets new file mode 100644 index 000000000..ad387abd0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile816.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1632 } from "./manyImportFile1632" +import { ManyImportComponent1633 } from "./manyImportFile1633" + + +@Component +export struct ManyImportComponent816 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1632() + ManyImportComponent1633() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile817.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile817.ets new file mode 100644 index 000000000..307df1b59 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile817.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1634 } from "./manyImportFile1634" +import { ManyImportComponent1635 } from "./manyImportFile1635" + + +@Component +export struct ManyImportComponent817 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1634() + ManyImportComponent1635() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile818.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile818.ets new file mode 100644 index 000000000..0c68a81b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile818.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1636 } from "./manyImportFile1636" +import { ManyImportComponent1637 } from "./manyImportFile1637" + + +@Component +export struct ManyImportComponent818 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1636() + ManyImportComponent1637() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile819.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile819.ets new file mode 100644 index 000000000..47490ead8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile819.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1638 } from "./manyImportFile1638" +import { ManyImportComponent1639 } from "./manyImportFile1639" + + +@Component +export struct ManyImportComponent819 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1638() + ManyImportComponent1639() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile82.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile82.ets new file mode 100644 index 000000000..ba4df7d21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile82.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent164 } from "./manyImportFile164" +import { ManyImportComponent165 } from "./manyImportFile165" + + +@Component +export struct ManyImportComponent82 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent164() + ManyImportComponent165() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile820.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile820.ets new file mode 100644 index 000000000..5c7bd3087 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile820.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1640 } from "./manyImportFile1640" +import { ManyImportComponent1641 } from "./manyImportFile1641" + + +@Component +export struct ManyImportComponent820 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1640() + ManyImportComponent1641() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile821.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile821.ets new file mode 100644 index 000000000..c1fe2897d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile821.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1642 } from "./manyImportFile1642" +import { ManyImportComponent1643 } from "./manyImportFile1643" + + +@Component +export struct ManyImportComponent821 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1642() + ManyImportComponent1643() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile822.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile822.ets new file mode 100644 index 000000000..685e25b9e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile822.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1644 } from "./manyImportFile1644" +import { ManyImportComponent1645 } from "./manyImportFile1645" + + +@Component +export struct ManyImportComponent822 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1644() + ManyImportComponent1645() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile823.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile823.ets new file mode 100644 index 000000000..668b98316 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile823.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1646 } from "./manyImportFile1646" +import { ManyImportComponent1647 } from "./manyImportFile1647" + + +@Component +export struct ManyImportComponent823 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1646() + ManyImportComponent1647() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile824.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile824.ets new file mode 100644 index 000000000..555fc750f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile824.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1648 } from "./manyImportFile1648" +import { ManyImportComponent1649 } from "./manyImportFile1649" + + +@Component +export struct ManyImportComponent824 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1648() + ManyImportComponent1649() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile825.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile825.ets new file mode 100644 index 000000000..4db31af52 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile825.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1650 } from "./manyImportFile1650" +import { ManyImportComponent1651 } from "./manyImportFile1651" + + +@Component +export struct ManyImportComponent825 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1650() + ManyImportComponent1651() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile826.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile826.ets new file mode 100644 index 000000000..15c16389d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile826.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1652 } from "./manyImportFile1652" +import { ManyImportComponent1653 } from "./manyImportFile1653" + + +@Component +export struct ManyImportComponent826 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1652() + ManyImportComponent1653() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile827.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile827.ets new file mode 100644 index 000000000..df3f5950c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile827.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1654 } from "./manyImportFile1654" +import { ManyImportComponent1655 } from "./manyImportFile1655" + + +@Component +export struct ManyImportComponent827 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1654() + ManyImportComponent1655() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile828.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile828.ets new file mode 100644 index 000000000..e293a7376 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile828.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1656 } from "./manyImportFile1656" +import { ManyImportComponent1657 } from "./manyImportFile1657" + + +@Component +export struct ManyImportComponent828 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1656() + ManyImportComponent1657() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile829.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile829.ets new file mode 100644 index 000000000..6c7633719 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile829.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1658 } from "./manyImportFile1658" +import { ManyImportComponent1659 } from "./manyImportFile1659" + + +@Component +export struct ManyImportComponent829 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1658() + ManyImportComponent1659() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile83.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile83.ets new file mode 100644 index 000000000..27348f724 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile83.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent166 } from "./manyImportFile166" +import { ManyImportComponent167 } from "./manyImportFile167" + + +@Component +export struct ManyImportComponent83 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent166() + ManyImportComponent167() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile830.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile830.ets new file mode 100644 index 000000000..1d15d0991 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile830.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1660 } from "./manyImportFile1660" +import { ManyImportComponent1661 } from "./manyImportFile1661" + + +@Component +export struct ManyImportComponent830 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1660() + ManyImportComponent1661() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile831.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile831.ets new file mode 100644 index 000000000..bfead543e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile831.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1662 } from "./manyImportFile1662" +import { ManyImportComponent1663 } from "./manyImportFile1663" + + +@Component +export struct ManyImportComponent831 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1662() + ManyImportComponent1663() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile832.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile832.ets new file mode 100644 index 000000000..0adae2c7d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile832.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1664 } from "./manyImportFile1664" +import { ManyImportComponent1665 } from "./manyImportFile1665" + + +@Component +export struct ManyImportComponent832 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1664() + ManyImportComponent1665() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile833.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile833.ets new file mode 100644 index 000000000..94352a959 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile833.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1666 } from "./manyImportFile1666" +import { ManyImportComponent1667 } from "./manyImportFile1667" + + +@Component +export struct ManyImportComponent833 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1666() + ManyImportComponent1667() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile834.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile834.ets new file mode 100644 index 000000000..c59b9771a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile834.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1668 } from "./manyImportFile1668" +import { ManyImportComponent1669 } from "./manyImportFile1669" + + +@Component +export struct ManyImportComponent834 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1668() + ManyImportComponent1669() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile835.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile835.ets new file mode 100644 index 000000000..07e0f7b40 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile835.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1670 } from "./manyImportFile1670" +import { ManyImportComponent1671 } from "./manyImportFile1671" + + +@Component +export struct ManyImportComponent835 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1670() + ManyImportComponent1671() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile836.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile836.ets new file mode 100644 index 000000000..9c11ce0c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile836.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1672 } from "./manyImportFile1672" +import { ManyImportComponent1673 } from "./manyImportFile1673" + + +@Component +export struct ManyImportComponent836 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1672() + ManyImportComponent1673() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile837.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile837.ets new file mode 100644 index 000000000..07d0aacda --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile837.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1674 } from "./manyImportFile1674" +import { ManyImportComponent1675 } from "./manyImportFile1675" + + +@Component +export struct ManyImportComponent837 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1674() + ManyImportComponent1675() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile838.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile838.ets new file mode 100644 index 000000000..d133ed03c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile838.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1676 } from "./manyImportFile1676" +import { ManyImportComponent1677 } from "./manyImportFile1677" + + +@Component +export struct ManyImportComponent838 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1676() + ManyImportComponent1677() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile839.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile839.ets new file mode 100644 index 000000000..2e86b3036 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile839.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1678 } from "./manyImportFile1678" +import { ManyImportComponent1679 } from "./manyImportFile1679" + + +@Component +export struct ManyImportComponent839 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1678() + ManyImportComponent1679() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile84.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile84.ets new file mode 100644 index 000000000..c8e642c8e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile84.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent168 } from "./manyImportFile168" +import { ManyImportComponent169 } from "./manyImportFile169" + + +@Component +export struct ManyImportComponent84 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent168() + ManyImportComponent169() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile840.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile840.ets new file mode 100644 index 000000000..abf0b7da8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile840.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1680 } from "./manyImportFile1680" +import { ManyImportComponent1681 } from "./manyImportFile1681" + + +@Component +export struct ManyImportComponent840 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1680() + ManyImportComponent1681() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile841.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile841.ets new file mode 100644 index 000000000..a65214bf6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile841.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1682 } from "./manyImportFile1682" +import { ManyImportComponent1683 } from "./manyImportFile1683" + + +@Component +export struct ManyImportComponent841 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1682() + ManyImportComponent1683() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile842.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile842.ets new file mode 100644 index 000000000..e76b721ad --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile842.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1684 } from "./manyImportFile1684" +import { ManyImportComponent1685 } from "./manyImportFile1685" + + +@Component +export struct ManyImportComponent842 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1684() + ManyImportComponent1685() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile843.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile843.ets new file mode 100644 index 000000000..1faf4c065 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile843.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1686 } from "./manyImportFile1686" +import { ManyImportComponent1687 } from "./manyImportFile1687" + + +@Component +export struct ManyImportComponent843 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1686() + ManyImportComponent1687() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile844.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile844.ets new file mode 100644 index 000000000..c3214ae12 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile844.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1688 } from "./manyImportFile1688" +import { ManyImportComponent1689 } from "./manyImportFile1689" + + +@Component +export struct ManyImportComponent844 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1688() + ManyImportComponent1689() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile845.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile845.ets new file mode 100644 index 000000000..34afdc60f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile845.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1690 } from "./manyImportFile1690" +import { ManyImportComponent1691 } from "./manyImportFile1691" + + +@Component +export struct ManyImportComponent845 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1690() + ManyImportComponent1691() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile846.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile846.ets new file mode 100644 index 000000000..66b33ee67 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile846.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1692 } from "./manyImportFile1692" +import { ManyImportComponent1693 } from "./manyImportFile1693" + + +@Component +export struct ManyImportComponent846 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1692() + ManyImportComponent1693() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile847.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile847.ets new file mode 100644 index 000000000..df45f050c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile847.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1694 } from "./manyImportFile1694" +import { ManyImportComponent1695 } from "./manyImportFile1695" + + +@Component +export struct ManyImportComponent847 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1694() + ManyImportComponent1695() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile848.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile848.ets new file mode 100644 index 000000000..35c8ab621 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile848.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1696 } from "./manyImportFile1696" +import { ManyImportComponent1697 } from "./manyImportFile1697" + + +@Component +export struct ManyImportComponent848 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1696() + ManyImportComponent1697() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile849.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile849.ets new file mode 100644 index 000000000..1edaf8dfd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile849.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1698 } from "./manyImportFile1698" +import { ManyImportComponent1699 } from "./manyImportFile1699" + + +@Component +export struct ManyImportComponent849 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1698() + ManyImportComponent1699() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile85.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile85.ets new file mode 100644 index 000000000..2aab38648 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile85.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent170 } from "./manyImportFile170" +import { ManyImportComponent171 } from "./manyImportFile171" + + +@Component +export struct ManyImportComponent85 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent170() + ManyImportComponent171() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile850.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile850.ets new file mode 100644 index 000000000..10712eaf1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile850.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1700 } from "./manyImportFile1700" +import { ManyImportComponent1701 } from "./manyImportFile1701" + + +@Component +export struct ManyImportComponent850 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1700() + ManyImportComponent1701() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile851.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile851.ets new file mode 100644 index 000000000..292e9f83e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile851.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1702 } from "./manyImportFile1702" +import { ManyImportComponent1703 } from "./manyImportFile1703" + + +@Component +export struct ManyImportComponent851 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1702() + ManyImportComponent1703() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile852.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile852.ets new file mode 100644 index 000000000..47cf9f39d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile852.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1704 } from "./manyImportFile1704" +import { ManyImportComponent1705 } from "./manyImportFile1705" + + +@Component +export struct ManyImportComponent852 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1704() + ManyImportComponent1705() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile853.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile853.ets new file mode 100644 index 000000000..fce6ec0e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile853.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1706 } from "./manyImportFile1706" +import { ManyImportComponent1707 } from "./manyImportFile1707" + + +@Component +export struct ManyImportComponent853 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1706() + ManyImportComponent1707() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile854.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile854.ets new file mode 100644 index 000000000..1b8b27229 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile854.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1708 } from "./manyImportFile1708" +import { ManyImportComponent1709 } from "./manyImportFile1709" + + +@Component +export struct ManyImportComponent854 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1708() + ManyImportComponent1709() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile855.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile855.ets new file mode 100644 index 000000000..71f9e5b54 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile855.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1710 } from "./manyImportFile1710" +import { ManyImportComponent1711 } from "./manyImportFile1711" + + +@Component +export struct ManyImportComponent855 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1710() + ManyImportComponent1711() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile856.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile856.ets new file mode 100644 index 000000000..899c991a3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile856.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1712 } from "./manyImportFile1712" +import { ManyImportComponent1713 } from "./manyImportFile1713" + + +@Component +export struct ManyImportComponent856 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1712() + ManyImportComponent1713() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile857.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile857.ets new file mode 100644 index 000000000..133e788e7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile857.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1714 } from "./manyImportFile1714" +import { ManyImportComponent1715 } from "./manyImportFile1715" + + +@Component +export struct ManyImportComponent857 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1714() + ManyImportComponent1715() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile858.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile858.ets new file mode 100644 index 000000000..9b15ce3b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile858.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1716 } from "./manyImportFile1716" +import { ManyImportComponent1717 } from "./manyImportFile1717" + + +@Component +export struct ManyImportComponent858 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1716() + ManyImportComponent1717() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile859.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile859.ets new file mode 100644 index 000000000..69debb005 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile859.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1718 } from "./manyImportFile1718" +import { ManyImportComponent1719 } from "./manyImportFile1719" + + +@Component +export struct ManyImportComponent859 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1718() + ManyImportComponent1719() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile86.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile86.ets new file mode 100644 index 000000000..7b085fd24 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile86.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent172 } from "./manyImportFile172" +import { ManyImportComponent173 } from "./manyImportFile173" + + +@Component +export struct ManyImportComponent86 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent172() + ManyImportComponent173() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile860.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile860.ets new file mode 100644 index 000000000..3398920ea --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile860.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1720 } from "./manyImportFile1720" +import { ManyImportComponent1721 } from "./manyImportFile1721" + + +@Component +export struct ManyImportComponent860 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1720() + ManyImportComponent1721() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile861.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile861.ets new file mode 100644 index 000000000..55a67c6ef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile861.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1722 } from "./manyImportFile1722" +import { ManyImportComponent1723 } from "./manyImportFile1723" + + +@Component +export struct ManyImportComponent861 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1722() + ManyImportComponent1723() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile862.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile862.ets new file mode 100644 index 000000000..a4609227c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile862.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1724 } from "./manyImportFile1724" +import { ManyImportComponent1725 } from "./manyImportFile1725" + + +@Component +export struct ManyImportComponent862 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1724() + ManyImportComponent1725() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile863.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile863.ets new file mode 100644 index 000000000..4dcda73c7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile863.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1726 } from "./manyImportFile1726" +import { ManyImportComponent1727 } from "./manyImportFile1727" + + +@Component +export struct ManyImportComponent863 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1726() + ManyImportComponent1727() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile864.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile864.ets new file mode 100644 index 000000000..554ee1a3f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile864.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1728 } from "./manyImportFile1728" +import { ManyImportComponent1729 } from "./manyImportFile1729" + + +@Component +export struct ManyImportComponent864 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1728() + ManyImportComponent1729() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile865.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile865.ets new file mode 100644 index 000000000..542074095 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile865.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1730 } from "./manyImportFile1730" +import { ManyImportComponent1731 } from "./manyImportFile1731" + + +@Component +export struct ManyImportComponent865 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1730() + ManyImportComponent1731() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile866.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile866.ets new file mode 100644 index 000000000..29404bedf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile866.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1732 } from "./manyImportFile1732" +import { ManyImportComponent1733 } from "./manyImportFile1733" + + +@Component +export struct ManyImportComponent866 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1732() + ManyImportComponent1733() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile867.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile867.ets new file mode 100644 index 000000000..76a5652ce --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile867.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1734 } from "./manyImportFile1734" +import { ManyImportComponent1735 } from "./manyImportFile1735" + + +@Component +export struct ManyImportComponent867 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1734() + ManyImportComponent1735() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile868.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile868.ets new file mode 100644 index 000000000..cc7ab25a1 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile868.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1736 } from "./manyImportFile1736" +import { ManyImportComponent1737 } from "./manyImportFile1737" + + +@Component +export struct ManyImportComponent868 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1736() + ManyImportComponent1737() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile869.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile869.ets new file mode 100644 index 000000000..c673e7639 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile869.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1738 } from "./manyImportFile1738" +import { ManyImportComponent1739 } from "./manyImportFile1739" + + +@Component +export struct ManyImportComponent869 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1738() + ManyImportComponent1739() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile87.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile87.ets new file mode 100644 index 000000000..48ce177ba --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile87.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent174 } from "./manyImportFile174" +import { ManyImportComponent175 } from "./manyImportFile175" + + +@Component +export struct ManyImportComponent87 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent174() + ManyImportComponent175() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile870.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile870.ets new file mode 100644 index 000000000..395f8cff9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile870.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1740 } from "./manyImportFile1740" +import { ManyImportComponent1741 } from "./manyImportFile1741" + + +@Component +export struct ManyImportComponent870 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1740() + ManyImportComponent1741() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile871.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile871.ets new file mode 100644 index 000000000..2c5ab8ddf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile871.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1742 } from "./manyImportFile1742" +import { ManyImportComponent1743 } from "./manyImportFile1743" + + +@Component +export struct ManyImportComponent871 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1742() + ManyImportComponent1743() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile872.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile872.ets new file mode 100644 index 000000000..4bf452953 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile872.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1744 } from "./manyImportFile1744" +import { ManyImportComponent1745 } from "./manyImportFile1745" + + +@Component +export struct ManyImportComponent872 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1744() + ManyImportComponent1745() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile873.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile873.ets new file mode 100644 index 000000000..67403d53a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile873.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1746 } from "./manyImportFile1746" +import { ManyImportComponent1747 } from "./manyImportFile1747" + + +@Component +export struct ManyImportComponent873 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1746() + ManyImportComponent1747() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile874.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile874.ets new file mode 100644 index 000000000..af9c8a59b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile874.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1748 } from "./manyImportFile1748" +import { ManyImportComponent1749 } from "./manyImportFile1749" + + +@Component +export struct ManyImportComponent874 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1748() + ManyImportComponent1749() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile875.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile875.ets new file mode 100644 index 000000000..695e3b886 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile875.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1750 } from "./manyImportFile1750" +import { ManyImportComponent1751 } from "./manyImportFile1751" + + +@Component +export struct ManyImportComponent875 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1750() + ManyImportComponent1751() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile876.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile876.ets new file mode 100644 index 000000000..240957f23 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile876.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1752 } from "./manyImportFile1752" +import { ManyImportComponent1753 } from "./manyImportFile1753" + + +@Component +export struct ManyImportComponent876 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1752() + ManyImportComponent1753() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile877.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile877.ets new file mode 100644 index 000000000..1145a8263 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile877.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1754 } from "./manyImportFile1754" +import { ManyImportComponent1755 } from "./manyImportFile1755" + + +@Component +export struct ManyImportComponent877 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1754() + ManyImportComponent1755() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile878.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile878.ets new file mode 100644 index 000000000..71d872a72 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile878.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1756 } from "./manyImportFile1756" +import { ManyImportComponent1757 } from "./manyImportFile1757" + + +@Component +export struct ManyImportComponent878 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1756() + ManyImportComponent1757() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile879.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile879.ets new file mode 100644 index 000000000..8f003fb6c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile879.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1758 } from "./manyImportFile1758" +import { ManyImportComponent1759 } from "./manyImportFile1759" + + +@Component +export struct ManyImportComponent879 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1758() + ManyImportComponent1759() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile88.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile88.ets new file mode 100644 index 000000000..a7b9e2bc3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile88.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent176 } from "./manyImportFile176" +import { ManyImportComponent177 } from "./manyImportFile177" + + +@Component +export struct ManyImportComponent88 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent176() + ManyImportComponent177() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile880.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile880.ets new file mode 100644 index 000000000..f51db1933 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile880.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1760 } from "./manyImportFile1760" +import { ManyImportComponent1761 } from "./manyImportFile1761" + + +@Component +export struct ManyImportComponent880 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1760() + ManyImportComponent1761() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile881.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile881.ets new file mode 100644 index 000000000..65671ad30 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile881.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1762 } from "./manyImportFile1762" +import { ManyImportComponent1763 } from "./manyImportFile1763" + + +@Component +export struct ManyImportComponent881 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1762() + ManyImportComponent1763() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile882.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile882.ets new file mode 100644 index 000000000..a2b91063f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile882.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1764 } from "./manyImportFile1764" +import { ManyImportComponent1765 } from "./manyImportFile1765" + + +@Component +export struct ManyImportComponent882 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1764() + ManyImportComponent1765() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile883.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile883.ets new file mode 100644 index 000000000..ea121c857 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile883.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1766 } from "./manyImportFile1766" +import { ManyImportComponent1767 } from "./manyImportFile1767" + + +@Component +export struct ManyImportComponent883 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1766() + ManyImportComponent1767() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile884.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile884.ets new file mode 100644 index 000000000..2d44c7699 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile884.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1768 } from "./manyImportFile1768" +import { ManyImportComponent1769 } from "./manyImportFile1769" + + +@Component +export struct ManyImportComponent884 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1768() + ManyImportComponent1769() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile885.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile885.ets new file mode 100644 index 000000000..554671a8a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile885.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1770 } from "./manyImportFile1770" +import { ManyImportComponent1771 } from "./manyImportFile1771" + + +@Component +export struct ManyImportComponent885 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1770() + ManyImportComponent1771() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile886.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile886.ets new file mode 100644 index 000000000..5311b085e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile886.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1772 } from "./manyImportFile1772" +import { ManyImportComponent1773 } from "./manyImportFile1773" + + +@Component +export struct ManyImportComponent886 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1772() + ManyImportComponent1773() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile887.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile887.ets new file mode 100644 index 000000000..9ddbe0762 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile887.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1774 } from "./manyImportFile1774" +import { ManyImportComponent1775 } from "./manyImportFile1775" + + +@Component +export struct ManyImportComponent887 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1774() + ManyImportComponent1775() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile888.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile888.ets new file mode 100644 index 000000000..6c0b4bcc6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile888.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1776 } from "./manyImportFile1776" +import { ManyImportComponent1777 } from "./manyImportFile1777" + + +@Component +export struct ManyImportComponent888 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1776() + ManyImportComponent1777() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile889.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile889.ets new file mode 100644 index 000000000..e472e3aff --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile889.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1778 } from "./manyImportFile1778" +import { ManyImportComponent1779 } from "./manyImportFile1779" + + +@Component +export struct ManyImportComponent889 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1778() + ManyImportComponent1779() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile89.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile89.ets new file mode 100644 index 000000000..df02e5b4b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile89.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent178 } from "./manyImportFile178" +import { ManyImportComponent179 } from "./manyImportFile179" + + +@Component +export struct ManyImportComponent89 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent178() + ManyImportComponent179() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile890.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile890.ets new file mode 100644 index 000000000..459caab0e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile890.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1780 } from "./manyImportFile1780" +import { ManyImportComponent1781 } from "./manyImportFile1781" + + +@Component +export struct ManyImportComponent890 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1780() + ManyImportComponent1781() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile891.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile891.ets new file mode 100644 index 000000000..997972530 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile891.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1782 } from "./manyImportFile1782" +import { ManyImportComponent1783 } from "./manyImportFile1783" + + +@Component +export struct ManyImportComponent891 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1782() + ManyImportComponent1783() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile892.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile892.ets new file mode 100644 index 000000000..7a11f845f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile892.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1784 } from "./manyImportFile1784" +import { ManyImportComponent1785 } from "./manyImportFile1785" + + +@Component +export struct ManyImportComponent892 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1784() + ManyImportComponent1785() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile893.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile893.ets new file mode 100644 index 000000000..19151080a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile893.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1786 } from "./manyImportFile1786" +import { ManyImportComponent1787 } from "./manyImportFile1787" + + +@Component +export struct ManyImportComponent893 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1786() + ManyImportComponent1787() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile894.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile894.ets new file mode 100644 index 000000000..ee88a8ce9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile894.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1788 } from "./manyImportFile1788" +import { ManyImportComponent1789 } from "./manyImportFile1789" + + +@Component +export struct ManyImportComponent894 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1788() + ManyImportComponent1789() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile895.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile895.ets new file mode 100644 index 000000000..6edcdef75 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile895.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1790 } from "./manyImportFile1790" +import { ManyImportComponent1791 } from "./manyImportFile1791" + + +@Component +export struct ManyImportComponent895 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1790() + ManyImportComponent1791() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile896.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile896.ets new file mode 100644 index 000000000..c983e0c31 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile896.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1792 } from "./manyImportFile1792" +import { ManyImportComponent1793 } from "./manyImportFile1793" + + +@Component +export struct ManyImportComponent896 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1792() + ManyImportComponent1793() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile897.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile897.ets new file mode 100644 index 000000000..fbd2d83b8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile897.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1794 } from "./manyImportFile1794" +import { ManyImportComponent1795 } from "./manyImportFile1795" + + +@Component +export struct ManyImportComponent897 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1794() + ManyImportComponent1795() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile898.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile898.ets new file mode 100644 index 000000000..5d5322a5c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile898.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1796 } from "./manyImportFile1796" +import { ManyImportComponent1797 } from "./manyImportFile1797" + + +@Component +export struct ManyImportComponent898 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1796() + ManyImportComponent1797() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile899.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile899.ets new file mode 100644 index 000000000..e2bcec54d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile899.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1798 } from "./manyImportFile1798" +import { ManyImportComponent1799 } from "./manyImportFile1799" + + +@Component +export struct ManyImportComponent899 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1798() + ManyImportComponent1799() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile9.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile9.ets new file mode 100644 index 000000000..cd66bd9c8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile9.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent18 } from "./manyImportFile18" +import { ManyImportComponent19 } from "./manyImportFile19" + + +@Component +export struct ManyImportComponent9 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent18() + ManyImportComponent19() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile90.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile90.ets new file mode 100644 index 000000000..b0ed4f920 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile90.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent180 } from "./manyImportFile180" +import { ManyImportComponent181 } from "./manyImportFile181" + + +@Component +export struct ManyImportComponent90 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent180() + ManyImportComponent181() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile900.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile900.ets new file mode 100644 index 000000000..1a5400cdd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile900.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1800 } from "./manyImportFile1800" +import { ManyImportComponent1801 } from "./manyImportFile1801" + + +@Component +export struct ManyImportComponent900 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1800() + ManyImportComponent1801() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile901.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile901.ets new file mode 100644 index 000000000..03d3ea177 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile901.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1802 } from "./manyImportFile1802" +import { ManyImportComponent1803 } from "./manyImportFile1803" + + +@Component +export struct ManyImportComponent901 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1802() + ManyImportComponent1803() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile902.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile902.ets new file mode 100644 index 000000000..33c67a6e3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile902.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1804 } from "./manyImportFile1804" +import { ManyImportComponent1805 } from "./manyImportFile1805" + + +@Component +export struct ManyImportComponent902 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1804() + ManyImportComponent1805() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile903.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile903.ets new file mode 100644 index 000000000..71af3c238 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile903.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1806 } from "./manyImportFile1806" +import { ManyImportComponent1807 } from "./manyImportFile1807" + + +@Component +export struct ManyImportComponent903 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1806() + ManyImportComponent1807() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile904.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile904.ets new file mode 100644 index 000000000..fde29105a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile904.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1808 } from "./manyImportFile1808" +import { ManyImportComponent1809 } from "./manyImportFile1809" + + +@Component +export struct ManyImportComponent904 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1808() + ManyImportComponent1809() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile905.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile905.ets new file mode 100644 index 000000000..95ba6ac6c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile905.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1810 } from "./manyImportFile1810" +import { ManyImportComponent1811 } from "./manyImportFile1811" + + +@Component +export struct ManyImportComponent905 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1810() + ManyImportComponent1811() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile906.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile906.ets new file mode 100644 index 000000000..37a78c722 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile906.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1812 } from "./manyImportFile1812" +import { ManyImportComponent1813 } from "./manyImportFile1813" + + +@Component +export struct ManyImportComponent906 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1812() + ManyImportComponent1813() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile907.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile907.ets new file mode 100644 index 000000000..ed48aa58f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile907.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1814 } from "./manyImportFile1814" +import { ManyImportComponent1815 } from "./manyImportFile1815" + + +@Component +export struct ManyImportComponent907 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1814() + ManyImportComponent1815() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile908.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile908.ets new file mode 100644 index 000000000..4fbb67cb4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile908.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1816 } from "./manyImportFile1816" +import { ManyImportComponent1817 } from "./manyImportFile1817" + + +@Component +export struct ManyImportComponent908 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1816() + ManyImportComponent1817() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile909.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile909.ets new file mode 100644 index 000000000..7b1ab7ff6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile909.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1818 } from "./manyImportFile1818" +import { ManyImportComponent1819 } from "./manyImportFile1819" + + +@Component +export struct ManyImportComponent909 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1818() + ManyImportComponent1819() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile91.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile91.ets new file mode 100644 index 000000000..1471795b5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile91.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent182 } from "./manyImportFile182" +import { ManyImportComponent183 } from "./manyImportFile183" + + +@Component +export struct ManyImportComponent91 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent182() + ManyImportComponent183() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile910.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile910.ets new file mode 100644 index 000000000..e82712883 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile910.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1820 } from "./manyImportFile1820" +import { ManyImportComponent1821 } from "./manyImportFile1821" + + +@Component +export struct ManyImportComponent910 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1820() + ManyImportComponent1821() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile911.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile911.ets new file mode 100644 index 000000000..92d8b3fa8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile911.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1822 } from "./manyImportFile1822" +import { ManyImportComponent1823 } from "./manyImportFile1823" + + +@Component +export struct ManyImportComponent911 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1822() + ManyImportComponent1823() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile912.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile912.ets new file mode 100644 index 000000000..eda8eff96 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile912.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1824 } from "./manyImportFile1824" +import { ManyImportComponent1825 } from "./manyImportFile1825" + + +@Component +export struct ManyImportComponent912 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1824() + ManyImportComponent1825() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile913.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile913.ets new file mode 100644 index 000000000..95f3b00ab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile913.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1826 } from "./manyImportFile1826" +import { ManyImportComponent1827 } from "./manyImportFile1827" + + +@Component +export struct ManyImportComponent913 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1826() + ManyImportComponent1827() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile914.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile914.ets new file mode 100644 index 000000000..a053dd463 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile914.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1828 } from "./manyImportFile1828" +import { ManyImportComponent1829 } from "./manyImportFile1829" + + +@Component +export struct ManyImportComponent914 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1828() + ManyImportComponent1829() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile915.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile915.ets new file mode 100644 index 000000000..5baca304b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile915.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1830 } from "./manyImportFile1830" +import { ManyImportComponent1831 } from "./manyImportFile1831" + + +@Component +export struct ManyImportComponent915 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1830() + ManyImportComponent1831() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile916.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile916.ets new file mode 100644 index 000000000..1e54f95dc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile916.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1832 } from "./manyImportFile1832" +import { ManyImportComponent1833 } from "./manyImportFile1833" + + +@Component +export struct ManyImportComponent916 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1832() + ManyImportComponent1833() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile917.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile917.ets new file mode 100644 index 000000000..b97c32044 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile917.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1834 } from "./manyImportFile1834" +import { ManyImportComponent1835 } from "./manyImportFile1835" + + +@Component +export struct ManyImportComponent917 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1834() + ManyImportComponent1835() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile918.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile918.ets new file mode 100644 index 000000000..e2c3bcfe6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile918.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1836 } from "./manyImportFile1836" +import { ManyImportComponent1837 } from "./manyImportFile1837" + + +@Component +export struct ManyImportComponent918 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1836() + ManyImportComponent1837() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile919.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile919.ets new file mode 100644 index 000000000..17169f139 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile919.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1838 } from "./manyImportFile1838" +import { ManyImportComponent1839 } from "./manyImportFile1839" + + +@Component +export struct ManyImportComponent919 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1838() + ManyImportComponent1839() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile92.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile92.ets new file mode 100644 index 000000000..9c780e0f2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile92.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent184 } from "./manyImportFile184" +import { ManyImportComponent185 } from "./manyImportFile185" + + +@Component +export struct ManyImportComponent92 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent184() + ManyImportComponent185() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile920.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile920.ets new file mode 100644 index 000000000..262e765e2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile920.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1840 } from "./manyImportFile1840" +import { ManyImportComponent1841 } from "./manyImportFile1841" + + +@Component +export struct ManyImportComponent920 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1840() + ManyImportComponent1841() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile921.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile921.ets new file mode 100644 index 000000000..250e95aae --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile921.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1842 } from "./manyImportFile1842" +import { ManyImportComponent1843 } from "./manyImportFile1843" + + +@Component +export struct ManyImportComponent921 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1842() + ManyImportComponent1843() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile922.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile922.ets new file mode 100644 index 000000000..beddda838 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile922.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1844 } from "./manyImportFile1844" +import { ManyImportComponent1845 } from "./manyImportFile1845" + + +@Component +export struct ManyImportComponent922 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1844() + ManyImportComponent1845() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile923.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile923.ets new file mode 100644 index 000000000..afde6ab98 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile923.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1846 } from "./manyImportFile1846" +import { ManyImportComponent1847 } from "./manyImportFile1847" + + +@Component +export struct ManyImportComponent923 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1846() + ManyImportComponent1847() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile924.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile924.ets new file mode 100644 index 000000000..8b6f6f1d7 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile924.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1848 } from "./manyImportFile1848" +import { ManyImportComponent1849 } from "./manyImportFile1849" + + +@Component +export struct ManyImportComponent924 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1848() + ManyImportComponent1849() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile925.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile925.ets new file mode 100644 index 000000000..ba2e952ab --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile925.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1850 } from "./manyImportFile1850" +import { ManyImportComponent1851 } from "./manyImportFile1851" + + +@Component +export struct ManyImportComponent925 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1850() + ManyImportComponent1851() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile926.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile926.ets new file mode 100644 index 000000000..b95c0489e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile926.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1852 } from "./manyImportFile1852" +import { ManyImportComponent1853 } from "./manyImportFile1853" + + +@Component +export struct ManyImportComponent926 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1852() + ManyImportComponent1853() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile927.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile927.ets new file mode 100644 index 000000000..2b23272fc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile927.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1854 } from "./manyImportFile1854" +import { ManyImportComponent1855 } from "./manyImportFile1855" + + +@Component +export struct ManyImportComponent927 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1854() + ManyImportComponent1855() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile928.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile928.ets new file mode 100644 index 000000000..c9b90e26b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile928.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1856 } from "./manyImportFile1856" +import { ManyImportComponent1857 } from "./manyImportFile1857" + + +@Component +export struct ManyImportComponent928 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1856() + ManyImportComponent1857() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile929.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile929.ets new file mode 100644 index 000000000..432846ae3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile929.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1858 } from "./manyImportFile1858" +import { ManyImportComponent1859 } from "./manyImportFile1859" + + +@Component +export struct ManyImportComponent929 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1858() + ManyImportComponent1859() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile93.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile93.ets new file mode 100644 index 000000000..af9604435 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile93.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent186 } from "./manyImportFile186" +import { ManyImportComponent187 } from "./manyImportFile187" + + +@Component +export struct ManyImportComponent93 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent186() + ManyImportComponent187() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile930.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile930.ets new file mode 100644 index 000000000..8038edec3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile930.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1860 } from "./manyImportFile1860" +import { ManyImportComponent1861 } from "./manyImportFile1861" + + +@Component +export struct ManyImportComponent930 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1860() + ManyImportComponent1861() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile931.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile931.ets new file mode 100644 index 000000000..4cea1bbcf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile931.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1862 } from "./manyImportFile1862" +import { ManyImportComponent1863 } from "./manyImportFile1863" + + +@Component +export struct ManyImportComponent931 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1862() + ManyImportComponent1863() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile932.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile932.ets new file mode 100644 index 000000000..f69072a44 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile932.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1864 } from "./manyImportFile1864" +import { ManyImportComponent1865 } from "./manyImportFile1865" + + +@Component +export struct ManyImportComponent932 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1864() + ManyImportComponent1865() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile933.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile933.ets new file mode 100644 index 000000000..292f743f9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile933.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1866 } from "./manyImportFile1866" +import { ManyImportComponent1867 } from "./manyImportFile1867" + + +@Component +export struct ManyImportComponent933 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1866() + ManyImportComponent1867() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile934.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile934.ets new file mode 100644 index 000000000..0a40be814 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile934.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1868 } from "./manyImportFile1868" +import { ManyImportComponent1869 } from "./manyImportFile1869" + + +@Component +export struct ManyImportComponent934 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1868() + ManyImportComponent1869() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile935.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile935.ets new file mode 100644 index 000000000..941340cc3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile935.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1870 } from "./manyImportFile1870" +import { ManyImportComponent1871 } from "./manyImportFile1871" + + +@Component +export struct ManyImportComponent935 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1870() + ManyImportComponent1871() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile936.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile936.ets new file mode 100644 index 000000000..9ca7eaf85 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile936.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1872 } from "./manyImportFile1872" +import { ManyImportComponent1873 } from "./manyImportFile1873" + + +@Component +export struct ManyImportComponent936 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1872() + ManyImportComponent1873() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile937.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile937.ets new file mode 100644 index 000000000..53753e191 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile937.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1874 } from "./manyImportFile1874" +import { ManyImportComponent1875 } from "./manyImportFile1875" + + +@Component +export struct ManyImportComponent937 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1874() + ManyImportComponent1875() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile938.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile938.ets new file mode 100644 index 000000000..67a066819 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile938.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1876 } from "./manyImportFile1876" +import { ManyImportComponent1877 } from "./manyImportFile1877" + + +@Component +export struct ManyImportComponent938 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1876() + ManyImportComponent1877() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile939.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile939.ets new file mode 100644 index 000000000..1aab00494 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile939.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1878 } from "./manyImportFile1878" +import { ManyImportComponent1879 } from "./manyImportFile1879" + + +@Component +export struct ManyImportComponent939 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1878() + ManyImportComponent1879() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile94.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile94.ets new file mode 100644 index 000000000..bbf4b4755 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile94.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent188 } from "./manyImportFile188" +import { ManyImportComponent189 } from "./manyImportFile189" + + +@Component +export struct ManyImportComponent94 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent188() + ManyImportComponent189() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile940.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile940.ets new file mode 100644 index 000000000..9c4fcffdb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile940.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1880 } from "./manyImportFile1880" +import { ManyImportComponent1881 } from "./manyImportFile1881" + + +@Component +export struct ManyImportComponent940 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1880() + ManyImportComponent1881() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile941.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile941.ets new file mode 100644 index 000000000..3d9d8e57c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile941.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1882 } from "./manyImportFile1882" +import { ManyImportComponent1883 } from "./manyImportFile1883" + + +@Component +export struct ManyImportComponent941 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1882() + ManyImportComponent1883() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile942.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile942.ets new file mode 100644 index 000000000..457be643f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile942.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1884 } from "./manyImportFile1884" +import { ManyImportComponent1885 } from "./manyImportFile1885" + + +@Component +export struct ManyImportComponent942 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1884() + ManyImportComponent1885() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile943.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile943.ets new file mode 100644 index 000000000..7f8afb99f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile943.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1886 } from "./manyImportFile1886" +import { ManyImportComponent1887 } from "./manyImportFile1887" + + +@Component +export struct ManyImportComponent943 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1886() + ManyImportComponent1887() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile944.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile944.ets new file mode 100644 index 000000000..3631167c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile944.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1888 } from "./manyImportFile1888" +import { ManyImportComponent1889 } from "./manyImportFile1889" + + +@Component +export struct ManyImportComponent944 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1888() + ManyImportComponent1889() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile945.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile945.ets new file mode 100644 index 000000000..19739cf11 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile945.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1890 } from "./manyImportFile1890" +import { ManyImportComponent1891 } from "./manyImportFile1891" + + +@Component +export struct ManyImportComponent945 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1890() + ManyImportComponent1891() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile946.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile946.ets new file mode 100644 index 000000000..3fe11082a --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile946.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1892 } from "./manyImportFile1892" +import { ManyImportComponent1893 } from "./manyImportFile1893" + + +@Component +export struct ManyImportComponent946 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1892() + ManyImportComponent1893() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile947.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile947.ets new file mode 100644 index 000000000..8dcaf61c2 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile947.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1894 } from "./manyImportFile1894" +import { ManyImportComponent1895 } from "./manyImportFile1895" + + +@Component +export struct ManyImportComponent947 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1894() + ManyImportComponent1895() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile948.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile948.ets new file mode 100644 index 000000000..5a378760b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile948.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1896 } from "./manyImportFile1896" +import { ManyImportComponent1897 } from "./manyImportFile1897" + + +@Component +export struct ManyImportComponent948 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1896() + ManyImportComponent1897() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile949.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile949.ets new file mode 100644 index 000000000..54be86a38 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile949.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1898 } from "./manyImportFile1898" +import { ManyImportComponent1899 } from "./manyImportFile1899" + + +@Component +export struct ManyImportComponent949 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1898() + ManyImportComponent1899() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile95.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile95.ets new file mode 100644 index 000000000..0f9873a84 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile95.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent190 } from "./manyImportFile190" +import { ManyImportComponent191 } from "./manyImportFile191" + + +@Component +export struct ManyImportComponent95 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent190() + ManyImportComponent191() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile950.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile950.ets new file mode 100644 index 000000000..1b878be3c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile950.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1900 } from "./manyImportFile1900" +import { ManyImportComponent1901 } from "./manyImportFile1901" + + +@Component +export struct ManyImportComponent950 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1900() + ManyImportComponent1901() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile951.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile951.ets new file mode 100644 index 000000000..19fa6be82 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile951.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1902 } from "./manyImportFile1902" +import { ManyImportComponent1903 } from "./manyImportFile1903" + + +@Component +export struct ManyImportComponent951 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1902() + ManyImportComponent1903() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile952.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile952.ets new file mode 100644 index 000000000..95dad1a09 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile952.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1904 } from "./manyImportFile1904" +import { ManyImportComponent1905 } from "./manyImportFile1905" + + +@Component +export struct ManyImportComponent952 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1904() + ManyImportComponent1905() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile953.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile953.ets new file mode 100644 index 000000000..0dd75176f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile953.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1906 } from "./manyImportFile1906" +import { ManyImportComponent1907 } from "./manyImportFile1907" + + +@Component +export struct ManyImportComponent953 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1906() + ManyImportComponent1907() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile954.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile954.ets new file mode 100644 index 000000000..2ee45696d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile954.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1908 } from "./manyImportFile1908" +import { ManyImportComponent1909 } from "./manyImportFile1909" + + +@Component +export struct ManyImportComponent954 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1908() + ManyImportComponent1909() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile955.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile955.ets new file mode 100644 index 000000000..18dc1e032 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile955.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1910 } from "./manyImportFile1910" +import { ManyImportComponent1911 } from "./manyImportFile1911" + + +@Component +export struct ManyImportComponent955 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1910() + ManyImportComponent1911() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile956.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile956.ets new file mode 100644 index 000000000..daa777710 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile956.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1912 } from "./manyImportFile1912" +import { ManyImportComponent1913 } from "./manyImportFile1913" + + +@Component +export struct ManyImportComponent956 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1912() + ManyImportComponent1913() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile957.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile957.ets new file mode 100644 index 000000000..30a6ed77c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile957.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1914 } from "./manyImportFile1914" +import { ManyImportComponent1915 } from "./manyImportFile1915" + + +@Component +export struct ManyImportComponent957 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1914() + ManyImportComponent1915() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile958.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile958.ets new file mode 100644 index 000000000..336f62b5f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile958.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1916 } from "./manyImportFile1916" +import { ManyImportComponent1917 } from "./manyImportFile1917" + + +@Component +export struct ManyImportComponent958 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1916() + ManyImportComponent1917() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile959.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile959.ets new file mode 100644 index 000000000..79859ef57 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile959.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1918 } from "./manyImportFile1918" +import { ManyImportComponent1919 } from "./manyImportFile1919" + + +@Component +export struct ManyImportComponent959 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1918() + ManyImportComponent1919() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile96.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile96.ets new file mode 100644 index 000000000..7e3f4f64d --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile96.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent192 } from "./manyImportFile192" +import { ManyImportComponent193 } from "./manyImportFile193" + + +@Component +export struct ManyImportComponent96 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent192() + ManyImportComponent193() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile960.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile960.ets new file mode 100644 index 000000000..db896e7c4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile960.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1920 } from "./manyImportFile1920" +import { ManyImportComponent1921 } from "./manyImportFile1921" + + +@Component +export struct ManyImportComponent960 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1920() + ManyImportComponent1921() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile961.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile961.ets new file mode 100644 index 000000000..e03d3ea81 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile961.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1922 } from "./manyImportFile1922" +import { ManyImportComponent1923 } from "./manyImportFile1923" + + +@Component +export struct ManyImportComponent961 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1922() + ManyImportComponent1923() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile962.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile962.ets new file mode 100644 index 000000000..ff0a5a6be --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile962.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1924 } from "./manyImportFile1924" +import { ManyImportComponent1925 } from "./manyImportFile1925" + + +@Component +export struct ManyImportComponent962 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1924() + ManyImportComponent1925() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile963.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile963.ets new file mode 100644 index 000000000..8a2330c91 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile963.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1926 } from "./manyImportFile1926" +import { ManyImportComponent1927 } from "./manyImportFile1927" + + +@Component +export struct ManyImportComponent963 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1926() + ManyImportComponent1927() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile964.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile964.ets new file mode 100644 index 000000000..d39e10b4b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile964.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1928 } from "./manyImportFile1928" +import { ManyImportComponent1929 } from "./manyImportFile1929" + + +@Component +export struct ManyImportComponent964 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1928() + ManyImportComponent1929() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile965.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile965.ets new file mode 100644 index 000000000..832292079 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile965.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1930 } from "./manyImportFile1930" +import { ManyImportComponent1931 } from "./manyImportFile1931" + + +@Component +export struct ManyImportComponent965 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1930() + ManyImportComponent1931() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile966.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile966.ets new file mode 100644 index 000000000..b0319b881 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile966.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1932 } from "./manyImportFile1932" +import { ManyImportComponent1933 } from "./manyImportFile1933" + + +@Component +export struct ManyImportComponent966 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1932() + ManyImportComponent1933() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile967.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile967.ets new file mode 100644 index 000000000..fcf57549f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile967.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1934 } from "./manyImportFile1934" +import { ManyImportComponent1935 } from "./manyImportFile1935" + + +@Component +export struct ManyImportComponent967 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1934() + ManyImportComponent1935() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile968.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile968.ets new file mode 100644 index 000000000..8e4a371bb --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile968.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1936 } from "./manyImportFile1936" +import { ManyImportComponent1937 } from "./manyImportFile1937" + + +@Component +export struct ManyImportComponent968 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1936() + ManyImportComponent1937() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile969.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile969.ets new file mode 100644 index 000000000..dee2f3832 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile969.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1938 } from "./manyImportFile1938" +import { ManyImportComponent1939 } from "./manyImportFile1939" + + +@Component +export struct ManyImportComponent969 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1938() + ManyImportComponent1939() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile97.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile97.ets new file mode 100644 index 000000000..6822c7abf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile97.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent194 } from "./manyImportFile194" +import { ManyImportComponent195 } from "./manyImportFile195" + + +@Component +export struct ManyImportComponent97 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent194() + ManyImportComponent195() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile970.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile970.ets new file mode 100644 index 000000000..567b0b21f --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile970.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1940 } from "./manyImportFile1940" +import { ManyImportComponent1941 } from "./manyImportFile1941" + + +@Component +export struct ManyImportComponent970 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1940() + ManyImportComponent1941() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile971.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile971.ets new file mode 100644 index 000000000..948509714 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile971.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1942 } from "./manyImportFile1942" +import { ManyImportComponent1943 } from "./manyImportFile1943" + + +@Component +export struct ManyImportComponent971 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1942() + ManyImportComponent1943() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile972.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile972.ets new file mode 100644 index 000000000..322f96193 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile972.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1944 } from "./manyImportFile1944" +import { ManyImportComponent1945 } from "./manyImportFile1945" + + +@Component +export struct ManyImportComponent972 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1944() + ManyImportComponent1945() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile973.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile973.ets new file mode 100644 index 000000000..0d9a37612 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile973.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1946 } from "./manyImportFile1946" +import { ManyImportComponent1947 } from "./manyImportFile1947" + + +@Component +export struct ManyImportComponent973 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1946() + ManyImportComponent1947() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile974.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile974.ets new file mode 100644 index 000000000..5679b9fbc --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile974.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1948 } from "./manyImportFile1948" +import { ManyImportComponent1949 } from "./manyImportFile1949" + + +@Component +export struct ManyImportComponent974 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1948() + ManyImportComponent1949() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile975.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile975.ets new file mode 100644 index 000000000..7edfa68fa --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile975.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1950 } from "./manyImportFile1950" +import { ManyImportComponent1951 } from "./manyImportFile1951" + + +@Component +export struct ManyImportComponent975 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1950() + ManyImportComponent1951() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile976.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile976.ets new file mode 100644 index 000000000..ad6aa4edf --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile976.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1952 } from "./manyImportFile1952" +import { ManyImportComponent1953 } from "./manyImportFile1953" + + +@Component +export struct ManyImportComponent976 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1952() + ManyImportComponent1953() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile977.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile977.ets new file mode 100644 index 000000000..d5eaaf452 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile977.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1954 } from "./manyImportFile1954" +import { ManyImportComponent1955 } from "./manyImportFile1955" + + +@Component +export struct ManyImportComponent977 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1954() + ManyImportComponent1955() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile978.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile978.ets new file mode 100644 index 000000000..a4a0c0815 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile978.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1956 } from "./manyImportFile1956" +import { ManyImportComponent1957 } from "./manyImportFile1957" + + +@Component +export struct ManyImportComponent978 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1956() + ManyImportComponent1957() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile979.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile979.ets new file mode 100644 index 000000000..9f3f32eef --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile979.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1958 } from "./manyImportFile1958" +import { ManyImportComponent1959 } from "./manyImportFile1959" + + +@Component +export struct ManyImportComponent979 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1958() + ManyImportComponent1959() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile98.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile98.ets new file mode 100644 index 000000000..8d45959cd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile98.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent196 } from "./manyImportFile196" +import { ManyImportComponent197 } from "./manyImportFile197" + + +@Component +export struct ManyImportComponent98 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent196() + ManyImportComponent197() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile980.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile980.ets new file mode 100644 index 000000000..1b982f6de --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile980.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1960 } from "./manyImportFile1960" +import { ManyImportComponent1961 } from "./manyImportFile1961" + + +@Component +export struct ManyImportComponent980 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1960() + ManyImportComponent1961() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile981.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile981.ets new file mode 100644 index 000000000..43190354c --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile981.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1962 } from "./manyImportFile1962" +import { ManyImportComponent1963 } from "./manyImportFile1963" + + +@Component +export struct ManyImportComponent981 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1962() + ManyImportComponent1963() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile982.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile982.ets new file mode 100644 index 000000000..6c3b25ed8 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile982.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1964 } from "./manyImportFile1964" +import { ManyImportComponent1965 } from "./manyImportFile1965" + + +@Component +export struct ManyImportComponent982 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1964() + ManyImportComponent1965() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile983.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile983.ets new file mode 100644 index 000000000..fb8cd2ab5 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile983.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1966 } from "./manyImportFile1966" +import { ManyImportComponent1967 } from "./manyImportFile1967" + + +@Component +export struct ManyImportComponent983 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1966() + ManyImportComponent1967() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile984.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile984.ets new file mode 100644 index 000000000..f3d04bfb3 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile984.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1968 } from "./manyImportFile1968" +import { ManyImportComponent1969 } from "./manyImportFile1969" + + +@Component +export struct ManyImportComponent984 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1968() + ManyImportComponent1969() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile985.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile985.ets new file mode 100644 index 000000000..549dbe0cd --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile985.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1970 } from "./manyImportFile1970" +import { ManyImportComponent1971 } from "./manyImportFile1971" + + +@Component +export struct ManyImportComponent985 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1970() + ManyImportComponent1971() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile986.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile986.ets new file mode 100644 index 000000000..1fc343a9b --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile986.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1972 } from "./manyImportFile1972" +import { ManyImportComponent1973 } from "./manyImportFile1973" + + +@Component +export struct ManyImportComponent986 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1972() + ManyImportComponent1973() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile987.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile987.ets new file mode 100644 index 000000000..8d70a7220 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile987.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1974 } from "./manyImportFile1974" +import { ManyImportComponent1975 } from "./manyImportFile1975" + + +@Component +export struct ManyImportComponent987 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1974() + ManyImportComponent1975() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile988.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile988.ets new file mode 100644 index 000000000..4696d5d19 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile988.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1976 } from "./manyImportFile1976" +import { ManyImportComponent1977 } from "./manyImportFile1977" + + +@Component +export struct ManyImportComponent988 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1976() + ManyImportComponent1977() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile989.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile989.ets new file mode 100644 index 000000000..b9888efa4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile989.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1978 } from "./manyImportFile1978" +import { ManyImportComponent1979 } from "./manyImportFile1979" + + +@Component +export struct ManyImportComponent989 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1978() + ManyImportComponent1979() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile99.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile99.ets new file mode 100644 index 000000000..2dc18d903 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile99.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent198 } from "./manyImportFile198" +import { ManyImportComponent199 } from "./manyImportFile199" + + +@Component +export struct ManyImportComponent99 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent198() + ManyImportComponent199() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile990.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile990.ets new file mode 100644 index 000000000..673e5466e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile990.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1980 } from "./manyImportFile1980" +import { ManyImportComponent1981 } from "./manyImportFile1981" + + +@Component +export struct ManyImportComponent990 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1980() + ManyImportComponent1981() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile991.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile991.ets new file mode 100644 index 000000000..9473c5cb0 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile991.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1982 } from "./manyImportFile1982" +import { ManyImportComponent1983 } from "./manyImportFile1983" + + +@Component +export struct ManyImportComponent991 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1982() + ManyImportComponent1983() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile992.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile992.ets new file mode 100644 index 000000000..e6b0f0d21 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile992.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1984 } from "./manyImportFile1984" +import { ManyImportComponent1985 } from "./manyImportFile1985" + + +@Component +export struct ManyImportComponent992 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1984() + ManyImportComponent1985() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile993.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile993.ets new file mode 100644 index 000000000..a27e445b9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile993.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1986 } from "./manyImportFile1986" +import { ManyImportComponent1987 } from "./manyImportFile1987" + + +@Component +export struct ManyImportComponent993 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1986() + ManyImportComponent1987() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile994.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile994.ets new file mode 100644 index 000000000..e3014d973 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile994.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1988 } from "./manyImportFile1988" +import { ManyImportComponent1989 } from "./manyImportFile1989" + + +@Component +export struct ManyImportComponent994 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1988() + ManyImportComponent1989() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile995.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile995.ets new file mode 100644 index 000000000..d41fc48d4 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile995.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1990 } from "./manyImportFile1990" +import { ManyImportComponent1991 } from "./manyImportFile1991" + + +@Component +export struct ManyImportComponent995 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1990() + ManyImportComponent1991() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile996.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile996.ets new file mode 100644 index 000000000..d1ae4348e --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile996.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1992 } from "./manyImportFile1992" +import { ManyImportComponent1993 } from "./manyImportFile1993" + + +@Component +export struct ManyImportComponent996 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1992() + ManyImportComponent1993() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile997.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile997.ets new file mode 100644 index 000000000..f80f89b37 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile997.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1994 } from "./manyImportFile1994" +import { ManyImportComponent1995 } from "./manyImportFile1995" + + +@Component +export struct ManyImportComponent997 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1994() + ManyImportComponent1995() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile998.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile998.ets new file mode 100644 index 000000000..b493e64f6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile998.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1996 } from "./manyImportFile1996" +import { ManyImportComponent1997 } from "./manyImportFile1997" + + +@Component +export struct ManyImportComponent998 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1996() + ManyImportComponent1997() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile999.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile999.ets new file mode 100644 index 000000000..41a3e5768 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportFiles/manyImportFile999.ets @@ -0,0 +1,20 @@ + +import { Component, Column, Text } from "@ohos.arkui.component" +import { State } from "@ohos.arkui.stateManagement" +import { ManyImportComponent1998 } from "./manyImportFile1998" +import { ManyImportComponent1999 } from "./manyImportFile1999" + + +@Component +export struct ManyImportComponent999 { + @State message: string = 'Hello ArkTS' + + build() { + Column() { + Text(this.message) + ManyImportComponent1998() + ManyImportComponent1999() + + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/manyImportMain.ets b/arkoala-arkts/trivial/user/src/ets/pages/manyImportMain.ets new file mode 100644 index 000000000..4ca50c3c9 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/manyImportMain.ets @@ -0,0 +1,18 @@ + +/** + * 多级import + */ + +import { Component, Column } from "@ohos.arkui.component" +import { ManyImportComponent1 } from "./manyImportFiles/manyImportFile1" + +export const MANY_IMPORT: string = 'ManyImport' + +@Component +struct ManyImportMain { + build() { + Column() { + ManyImportComponent1() + } + } +} diff --git a/arkoala-arkts/trivial/user/src/ets/pages/stateVariables.ets b/arkoala-arkts/trivial/user/src/ets/pages/stateVariables.ets new file mode 100644 index 000000000..9b79e66b6 --- /dev/null +++ b/arkoala-arkts/trivial/user/src/ets/pages/stateVariables.ets @@ -0,0 +1,20087 @@ + +/** + * 状态变量 + */ + +import { State, Prop, Provide, Consume, Link } from "@ohos.arkui.stateManagement" +import { Component, Column, ClickEvent, Button } from "@ohos.arkui.component" + +export const STATE_VARIABLES: string = 'StateVariables' + +@Component +struct StateVariablesMain { + //============================================================================= + @State prop_num0: number = 0; + @State prop_num1: number = 0; + @State prop_num2: number = 0; + @State prop_num3: number = 0; + @State prop_num4: number = 0; + @State prop_num5: number = 0; + @State prop_num6: number = 0; + @State prop_num7: number = 0; + @State prop_num8: number = 0; + @State prop_num9: number = 0; + @State prop_num10: number = 0; + @State prop_num11: number = 0; + @State prop_num12: number = 0; + @State prop_num13: number = 0; + @State prop_num14: number = 0; + @State prop_num15: number = 0; + @State prop_num16: number = 0; + @State prop_num17: number = 0; + @State prop_num18: number = 0; + @State prop_num19: number = 0; + @State prop_num20: number = 0; + @State prop_num21: number = 0; + @State prop_num22: number = 0; + @State prop_num23: number = 0; + @State prop_num24: number = 0; + @State prop_num25: number = 0; + @State prop_num26: number = 0; + @State prop_num27: number = 0; + @State prop_num28: number = 0; + @State prop_num29: number = 0; + @State prop_num30: number = 0; + @State prop_num31: number = 0; + @State prop_num32: number = 0; + @State prop_num33: number = 0; + @State prop_num34: number = 0; + @State prop_num35: number = 0; + @State prop_num36: number = 0; + @State prop_num37: number = 0; + @State prop_num38: number = 0; + @State prop_num39: number = 0; + @State prop_num40: number = 0; + @State prop_num41: number = 0; + @State prop_num42: number = 0; + @State prop_num43: number = 0; + @State prop_num44: number = 0; + @State prop_num45: number = 0; + @State prop_num46: number = 0; + @State prop_num47: number = 0; + @State prop_num48: number = 0; + @State prop_num49: number = 0; + @State prop_num50: number = 0; + @State prop_num51: number = 0; + @State prop_num52: number = 0; + @State prop_num53: number = 0; + @State prop_num54: number = 0; + @State prop_num55: number = 0; + @State prop_num56: number = 0; + @State prop_num57: number = 0; + @State prop_num58: number = 0; + @State prop_num59: number = 0; + @State prop_num60: number = 0; + @State prop_num61: number = 0; + @State prop_num62: number = 0; + @State prop_num63: number = 0; + @State prop_num64: number = 0; + @State prop_num65: number = 0; + @State prop_num66: number = 0; + @State prop_num67: number = 0; + @State prop_num68: number = 0; + @State prop_num69: number = 0; + @State prop_num70: number = 0; + @State prop_num71: number = 0; + @State prop_num72: number = 0; + @State prop_num73: number = 0; + @State prop_num74: number = 0; + @State prop_num75: number = 0; + @State prop_num76: number = 0; + @State prop_num77: number = 0; + @State prop_num78: number = 0; + @State prop_num79: number = 0; + @State prop_num80: number = 0; + @State prop_num81: number = 0; + @State prop_num82: number = 0; + @State prop_num83: number = 0; + @State prop_num84: number = 0; + @State prop_num85: number = 0; + @State prop_num86: number = 0; + @State prop_num87: number = 0; + @State prop_num88: number = 0; + @State prop_num89: number = 0; + @State prop_num90: number = 0; + @State prop_num91: number = 0; + @State prop_num92: number = 0; + @State prop_num93: number = 0; + @State prop_num94: number = 0; + @State prop_num95: number = 0; + @State prop_num96: number = 0; + @State prop_num97: number = 0; + @State prop_num98: number = 0; + @State prop_num99: number = 0; + @State prop_num100: number = 0; + @State prop_num101: number = 0; + @State prop_num102: number = 0; + @State prop_num103: number = 0; + @State prop_num104: number = 0; + @State prop_num105: number = 0; + @State prop_num106: number = 0; + @State prop_num107: number = 0; + @State prop_num108: number = 0; + @State prop_num109: number = 0; + @State prop_num110: number = 0; + @State prop_num111: number = 0; + @State prop_num112: number = 0; + @State prop_num113: number = 0; + @State prop_num114: number = 0; + @State prop_num115: number = 0; + @State prop_num116: number = 0; + @State prop_num117: number = 0; + @State prop_num118: number = 0; + @State prop_num119: number = 0; + @State prop_num120: number = 0; + @State prop_num121: number = 0; + @State prop_num122: number = 0; + @State prop_num123: number = 0; + @State prop_num124: number = 0; + @State prop_num125: number = 0; + @State prop_num126: number = 0; + @State prop_num127: number = 0; + @State prop_num128: number = 0; + @State prop_num129: number = 0; + @State prop_num130: number = 0; + @State prop_num131: number = 0; + @State prop_num132: number = 0; + @State prop_num133: number = 0; + @State prop_num134: number = 0; + @State prop_num135: number = 0; + @State prop_num136: number = 0; + @State prop_num137: number = 0; + @State prop_num138: number = 0; + @State prop_num139: number = 0; + @State prop_num140: number = 0; + @State prop_num141: number = 0; + @State prop_num142: number = 0; + @State prop_num143: number = 0; + @State prop_num144: number = 0; + @State prop_num145: number = 0; + @State prop_num146: number = 0; + @State prop_num147: number = 0; + @State prop_num148: number = 0; + @State prop_num149: number = 0; + @State prop_num150: number = 0; + @State prop_num151: number = 0; + @State prop_num152: number = 0; + @State prop_num153: number = 0; + @State prop_num154: number = 0; + @State prop_num155: number = 0; + @State prop_num156: number = 0; + @State prop_num157: number = 0; + @State prop_num158: number = 0; + @State prop_num159: number = 0; + @State prop_num160: number = 0; + @State prop_num161: number = 0; + @State prop_num162: number = 0; + @State prop_num163: number = 0; + @State prop_num164: number = 0; + @State prop_num165: number = 0; + @State prop_num166: number = 0; + @State prop_num167: number = 0; + @State prop_num168: number = 0; + @State prop_num169: number = 0; + @State prop_num170: number = 0; + @State prop_num171: number = 0; + @State prop_num172: number = 0; + @State prop_num173: number = 0; + @State prop_num174: number = 0; + @State prop_num175: number = 0; + @State prop_num176: number = 0; + @State prop_num177: number = 0; + @State prop_num178: number = 0; + @State prop_num179: number = 0; + @State prop_num180: number = 0; + @State prop_num181: number = 0; + @State prop_num182: number = 0; + @State prop_num183: number = 0; + @State prop_num184: number = 0; + @State prop_num185: number = 0; + @State prop_num186: number = 0; + @State prop_num187: number = 0; + @State prop_num188: number = 0; + @State prop_num189: number = 0; + @State prop_num190: number = 0; + @State prop_num191: number = 0; + @State prop_num192: number = 0; + @State prop_num193: number = 0; + @State prop_num194: number = 0; + @State prop_num195: number = 0; + @State prop_num196: number = 0; + @State prop_num197: number = 0; + @State prop_num198: number = 0; + @State prop_num199: number = 0; + @State prop_num200: number = 0; + @State prop_num201: number = 0; + @State prop_num202: number = 0; + @State prop_num203: number = 0; + @State prop_num204: number = 0; + @State prop_num205: number = 0; + @State prop_num206: number = 0; + @State prop_num207: number = 0; + @State prop_num208: number = 0; + @State prop_num209: number = 0; + @State prop_num210: number = 0; + @State prop_num211: number = 0; + @State prop_num212: number = 0; + @State prop_num213: number = 0; + @State prop_num214: number = 0; + @State prop_num215: number = 0; + @State prop_num216: number = 0; + @State prop_num217: number = 0; + @State prop_num218: number = 0; + @State prop_num219: number = 0; + @State prop_num220: number = 0; + @State prop_num221: number = 0; + @State prop_num222: number = 0; + @State prop_num223: number = 0; + @State prop_num224: number = 0; + @State prop_num225: number = 0; + @State prop_num226: number = 0; + @State prop_num227: number = 0; + @State prop_num228: number = 0; + @State prop_num229: number = 0; + @State prop_num230: number = 0; + @State prop_num231: number = 0; + @State prop_num232: number = 0; + @State prop_num233: number = 0; + @State prop_num234: number = 0; + @State prop_num235: number = 0; + @State prop_num236: number = 0; + @State prop_num237: number = 0; + @State prop_num238: number = 0; + @State prop_num239: number = 0; + @State prop_num240: number = 0; + @State prop_num241: number = 0; + @State prop_num242: number = 0; + @State prop_num243: number = 0; + @State prop_num244: number = 0; + @State prop_num245: number = 0; + @State prop_num246: number = 0; + @State prop_num247: number = 0; + @State prop_num248: number = 0; + @State prop_num249: number = 0; + @State prop_num250: number = 0; + @State prop_num251: number = 0; + @State prop_num252: number = 0; + @State prop_num253: number = 0; + @State prop_num254: number = 0; + @State prop_num255: number = 0; + @State prop_num256: number = 0; + @State prop_num257: number = 0; + @State prop_num258: number = 0; + @State prop_num259: number = 0; + @State prop_num260: number = 0; + @State prop_num261: number = 0; + @State prop_num262: number = 0; + @State prop_num263: number = 0; + @State prop_num264: number = 0; + @State prop_num265: number = 0; + @State prop_num266: number = 0; + @State prop_num267: number = 0; + @State prop_num268: number = 0; + @State prop_num269: number = 0; + @State prop_num270: number = 0; + @State prop_num271: number = 0; + @State prop_num272: number = 0; + @State prop_num273: number = 0; + @State prop_num274: number = 0; + @State prop_num275: number = 0; + @State prop_num276: number = 0; + @State prop_num277: number = 0; + @State prop_num278: number = 0; + @State prop_num279: number = 0; + @State prop_num280: number = 0; + @State prop_num281: number = 0; + @State prop_num282: number = 0; + @State prop_num283: number = 0; + @State prop_num284: number = 0; + @State prop_num285: number = 0; + @State prop_num286: number = 0; + @State prop_num287: number = 0; + @State prop_num288: number = 0; + @State prop_num289: number = 0; + @State prop_num290: number = 0; + @State prop_num291: number = 0; + @State prop_num292: number = 0; + @State prop_num293: number = 0; + @State prop_num294: number = 0; + @State prop_num295: number = 0; + @State prop_num296: number = 0; + @State prop_num297: number = 0; + @State prop_num298: number = 0; + @State prop_num299: number = 0; + @State prop_num300: number = 0; + @State prop_num301: number = 0; + @State prop_num302: number = 0; + @State prop_num303: number = 0; + @State prop_num304: number = 0; + @State prop_num305: number = 0; + @State prop_num306: number = 0; + @State prop_num307: number = 0; + @State prop_num308: number = 0; + @State prop_num309: number = 0; + @State prop_num310: number = 0; + @State prop_num311: number = 0; + @State prop_num312: number = 0; + @State prop_num313: number = 0; + @State prop_num314: number = 0; + @State prop_num315: number = 0; + @State prop_num316: number = 0; + @State prop_num317: number = 0; + @State prop_num318: number = 0; + @State prop_num319: number = 0; + @State prop_num320: number = 0; + @State prop_num321: number = 0; + @State prop_num322: number = 0; + @State prop_num323: number = 0; + @State prop_num324: number = 0; + @State prop_num325: number = 0; + @State prop_num326: number = 0; + @State prop_num327: number = 0; + @State prop_num328: number = 0; + @State prop_num329: number = 0; + @State prop_num330: number = 0; + @State prop_num331: number = 0; + @State prop_num332: number = 0; + @State prop_num333: number = 0; + @State prop_num334: number = 0; + @State prop_num335: number = 0; + @State prop_num336: number = 0; + @State prop_num337: number = 0; + @State prop_num338: number = 0; + @State prop_num339: number = 0; + @State prop_num340: number = 0; + @State prop_num341: number = 0; + @State prop_num342: number = 0; + @State prop_num343: number = 0; + @State prop_num344: number = 0; + @State prop_num345: number = 0; + @State prop_num346: number = 0; + @State prop_num347: number = 0; + @State prop_num348: number = 0; + @State prop_num349: number = 0; + @State prop_num350: number = 0; + @State prop_num351: number = 0; + @State prop_num352: number = 0; + @State prop_num353: number = 0; + @State prop_num354: number = 0; + @State prop_num355: number = 0; + @State prop_num356: number = 0; + @State prop_num357: number = 0; + @State prop_num358: number = 0; + @State prop_num359: number = 0; + @State prop_num360: number = 0; + @State prop_num361: number = 0; + @State prop_num362: number = 0; + @State prop_num363: number = 0; + @State prop_num364: number = 0; + @State prop_num365: number = 0; + @State prop_num366: number = 0; + @State prop_num367: number = 0; + @State prop_num368: number = 0; + @State prop_num369: number = 0; + @State prop_num370: number = 0; + @State prop_num371: number = 0; + @State prop_num372: number = 0; + @State prop_num373: number = 0; + @State prop_num374: number = 0; + @State prop_num375: number = 0; + @State prop_num376: number = 0; + @State prop_num377: number = 0; + @State prop_num378: number = 0; + @State prop_num379: number = 0; + @State prop_num380: number = 0; + @State prop_num381: number = 0; + @State prop_num382: number = 0; + @State prop_num383: number = 0; + @State prop_num384: number = 0; + @State prop_num385: number = 0; + @State prop_num386: number = 0; + @State prop_num387: number = 0; + @State prop_num388: number = 0; + @State prop_num389: number = 0; + @State prop_num390: number = 0; + @State prop_num391: number = 0; + @State prop_num392: number = 0; + @State prop_num393: number = 0; + @State prop_num394: number = 0; + @State prop_num395: number = 0; + @State prop_num396: number = 0; + @State prop_num397: number = 0; + @State prop_num398: number = 0; + @State prop_num399: number = 0; + @State prop_num400: number = 0; + @State prop_num401: number = 0; + @State prop_num402: number = 0; + @State prop_num403: number = 0; + @State prop_num404: number = 0; + @State prop_num405: number = 0; + @State prop_num406: number = 0; + @State prop_num407: number = 0; + @State prop_num408: number = 0; + @State prop_num409: number = 0; + @State prop_num410: number = 0; + @State prop_num411: number = 0; + @State prop_num412: number = 0; + @State prop_num413: number = 0; + @State prop_num414: number = 0; + @State prop_num415: number = 0; + @State prop_num416: number = 0; + @State prop_num417: number = 0; + @State prop_num418: number = 0; + @State prop_num419: number = 0; + @State prop_num420: number = 0; + @State prop_num421: number = 0; + @State prop_num422: number = 0; + @State prop_num423: number = 0; + @State prop_num424: number = 0; + @State prop_num425: number = 0; + @State prop_num426: number = 0; + @State prop_num427: number = 0; + @State prop_num428: number = 0; + @State prop_num429: number = 0; + @State prop_num430: number = 0; + @State prop_num431: number = 0; + @State prop_num432: number = 0; + @State prop_num433: number = 0; + @State prop_num434: number = 0; + @State prop_num435: number = 0; + @State prop_num436: number = 0; + @State prop_num437: number = 0; + @State prop_num438: number = 0; + @State prop_num439: number = 0; + @State prop_num440: number = 0; + @State prop_num441: number = 0; + @State prop_num442: number = 0; + @State prop_num443: number = 0; + @State prop_num444: number = 0; + @State prop_num445: number = 0; + @State prop_num446: number = 0; + @State prop_num447: number = 0; + @State prop_num448: number = 0; + @State prop_num449: number = 0; + @State prop_num450: number = 0; + @State prop_num451: number = 0; + @State prop_num452: number = 0; + @State prop_num453: number = 0; + @State prop_num454: number = 0; + @State prop_num455: number = 0; + @State prop_num456: number = 0; + @State prop_num457: number = 0; + @State prop_num458: number = 0; + @State prop_num459: number = 0; + @State prop_num460: number = 0; + @State prop_num461: number = 0; + @State prop_num462: number = 0; + @State prop_num463: number = 0; + @State prop_num464: number = 0; + @State prop_num465: number = 0; + @State prop_num466: number = 0; + @State prop_num467: number = 0; + @State prop_num468: number = 0; + @State prop_num469: number = 0; + @State prop_num470: number = 0; + @State prop_num471: number = 0; + @State prop_num472: number = 0; + @State prop_num473: number = 0; + @State prop_num474: number = 0; + @State prop_num475: number = 0; + @State prop_num476: number = 0; + @State prop_num477: number = 0; + @State prop_num478: number = 0; + @State prop_num479: number = 0; + @State prop_num480: number = 0; + @State prop_num481: number = 0; + @State prop_num482: number = 0; + @State prop_num483: number = 0; + @State prop_num484: number = 0; + @State prop_num485: number = 0; + @State prop_num486: number = 0; + @State prop_num487: number = 0; + @State prop_num488: number = 0; + @State prop_num489: number = 0; + @State prop_num490: number = 0; + @State prop_num491: number = 0; + @State prop_num492: number = 0; + @State prop_num493: number = 0; + @State prop_num494: number = 0; + @State prop_num495: number = 0; + @State prop_num496: number = 0; + @State prop_num497: number = 0; + @State prop_num498: number = 0; + @State prop_num499: number = 0; + @State prop_num500: number = 0; + @State prop_num501: number = 0; + @State prop_num502: number = 0; + @State prop_num503: number = 0; + @State prop_num504: number = 0; + @State prop_num505: number = 0; + @State prop_num506: number = 0; + @State prop_num507: number = 0; + @State prop_num508: number = 0; + @State prop_num509: number = 0; + @State prop_num510: number = 0; + @State prop_num511: number = 0; + @State prop_num512: number = 0; + @State prop_num513: number = 0; + @State prop_num514: number = 0; + @State prop_num515: number = 0; + @State prop_num516: number = 0; + @State prop_num517: number = 0; + @State prop_num518: number = 0; + @State prop_num519: number = 0; + @State prop_num520: number = 0; + @State prop_num521: number = 0; + @State prop_num522: number = 0; + @State prop_num523: number = 0; + @State prop_num524: number = 0; + @State prop_num525: number = 0; + @State prop_num526: number = 0; + @State prop_num527: number = 0; + @State prop_num528: number = 0; + @State prop_num529: number = 0; + @State prop_num530: number = 0; + @State prop_num531: number = 0; + @State prop_num532: number = 0; + @State prop_num533: number = 0; + @State prop_num534: number = 0; + @State prop_num535: number = 0; + @State prop_num536: number = 0; + @State prop_num537: number = 0; + @State prop_num538: number = 0; + @State prop_num539: number = 0; + @State prop_num540: number = 0; + @State prop_num541: number = 0; + @State prop_num542: number = 0; + @State prop_num543: number = 0; + @State prop_num544: number = 0; + @State prop_num545: number = 0; + @State prop_num546: number = 0; + @State prop_num547: number = 0; + @State prop_num548: number = 0; + @State prop_num549: number = 0; + @State prop_num550: number = 0; + @State prop_num551: number = 0; + @State prop_num552: number = 0; + @State prop_num553: number = 0; + @State prop_num554: number = 0; + @State prop_num555: number = 0; + @State prop_num556: number = 0; + @State prop_num557: number = 0; + @State prop_num558: number = 0; + @State prop_num559: number = 0; + @State prop_num560: number = 0; + @State prop_num561: number = 0; + @State prop_num562: number = 0; + @State prop_num563: number = 0; + @State prop_num564: number = 0; + @State prop_num565: number = 0; + @State prop_num566: number = 0; + @State prop_num567: number = 0; + @State prop_num568: number = 0; + @State prop_num569: number = 0; + @State prop_num570: number = 0; + @State prop_num571: number = 0; + @State prop_num572: number = 0; + @State prop_num573: number = 0; + @State prop_num574: number = 0; + @State prop_num575: number = 0; + @State prop_num576: number = 0; + @State prop_num577: number = 0; + @State prop_num578: number = 0; + @State prop_num579: number = 0; + @State prop_num580: number = 0; + @State prop_num581: number = 0; + @State prop_num582: number = 0; + @State prop_num583: number = 0; + @State prop_num584: number = 0; + @State prop_num585: number = 0; + @State prop_num586: number = 0; + @State prop_num587: number = 0; + @State prop_num588: number = 0; + @State prop_num589: number = 0; + @State prop_num590: number = 0; + @State prop_num591: number = 0; + @State prop_num592: number = 0; + @State prop_num593: number = 0; + @State prop_num594: number = 0; + @State prop_num595: number = 0; + @State prop_num596: number = 0; + @State prop_num597: number = 0; + @State prop_num598: number = 0; + @State prop_num599: number = 0; + @State prop_num600: number = 0; + @State prop_num601: number = 0; + @State prop_num602: number = 0; + @State prop_num603: number = 0; + @State prop_num604: number = 0; + @State prop_num605: number = 0; + @State prop_num606: number = 0; + @State prop_num607: number = 0; + @State prop_num608: number = 0; + @State prop_num609: number = 0; + @State prop_num610: number = 0; + @State prop_num611: number = 0; + @State prop_num612: number = 0; + @State prop_num613: number = 0; + @State prop_num614: number = 0; + @State prop_num615: number = 0; + @State prop_num616: number = 0; + @State prop_num617: number = 0; + @State prop_num618: number = 0; + @State prop_num619: number = 0; + @State prop_num620: number = 0; + @State prop_num621: number = 0; + @State prop_num622: number = 0; + @State prop_num623: number = 0; + @State prop_num624: number = 0; + @State prop_num625: number = 0; + @State prop_num626: number = 0; + @State prop_num627: number = 0; + @State prop_num628: number = 0; + @State prop_num629: number = 0; + @State prop_num630: number = 0; + @State prop_num631: number = 0; + @State prop_num632: number = 0; + @State prop_num633: number = 0; + @State prop_num634: number = 0; + @State prop_num635: number = 0; + @State prop_num636: number = 0; + @State prop_num637: number = 0; + @State prop_num638: number = 0; + @State prop_num639: number = 0; + @State prop_num640: number = 0; + @State prop_num641: number = 0; + @State prop_num642: number = 0; + @State prop_num643: number = 0; + @State prop_num644: number = 0; + @State prop_num645: number = 0; + @State prop_num646: number = 0; + @State prop_num647: number = 0; + @State prop_num648: number = 0; + @State prop_num649: number = 0; + @State prop_num650: number = 0; + @State prop_num651: number = 0; + @State prop_num652: number = 0; + @State prop_num653: number = 0; + @State prop_num654: number = 0; + @State prop_num655: number = 0; + @State prop_num656: number = 0; + @State prop_num657: number = 0; + @State prop_num658: number = 0; + @State prop_num659: number = 0; + @State prop_num660: number = 0; + @State prop_num661: number = 0; + @State prop_num662: number = 0; + @State prop_num663: number = 0; + @State prop_num664: number = 0; + @State prop_num665: number = 0; + @State prop_num666: number = 0; + @State prop_num667: number = 0; + @State prop_num668: number = 0; + @State prop_num669: number = 0; + @State prop_num670: number = 0; + @State prop_num671: number = 0; + @State prop_num672: number = 0; + @State prop_num673: number = 0; + @State prop_num674: number = 0; + @State prop_num675: number = 0; + @State prop_num676: number = 0; + @State prop_num677: number = 0; + @State prop_num678: number = 0; + @State prop_num679: number = 0; + @State prop_num680: number = 0; + @State prop_num681: number = 0; + @State prop_num682: number = 0; + @State prop_num683: number = 0; + @State prop_num684: number = 0; + @State prop_num685: number = 0; + @State prop_num686: number = 0; + @State prop_num687: number = 0; + @State prop_num688: number = 0; + @State prop_num689: number = 0; + @State prop_num690: number = 0; + @State prop_num691: number = 0; + @State prop_num692: number = 0; + @State prop_num693: number = 0; + @State prop_num694: number = 0; + @State prop_num695: number = 0; + @State prop_num696: number = 0; + @State prop_num697: number = 0; + @State prop_num698: number = 0; + @State prop_num699: number = 0; + @State prop_num700: number = 0; + @State prop_num701: number = 0; + @State prop_num702: number = 0; + @State prop_num703: number = 0; + @State prop_num704: number = 0; + @State prop_num705: number = 0; + @State prop_num706: number = 0; + @State prop_num707: number = 0; + @State prop_num708: number = 0; + @State prop_num709: number = 0; + @State prop_num710: number = 0; + @State prop_num711: number = 0; + @State prop_num712: number = 0; + @State prop_num713: number = 0; + @State prop_num714: number = 0; + @State prop_num715: number = 0; + @State prop_num716: number = 0; + @State prop_num717: number = 0; + @State prop_num718: number = 0; + @State prop_num719: number = 0; + @State prop_num720: number = 0; + @State prop_num721: number = 0; + @State prop_num722: number = 0; + @State prop_num723: number = 0; + @State prop_num724: number = 0; + @State prop_num725: number = 0; + @State prop_num726: number = 0; + @State prop_num727: number = 0; + @State prop_num728: number = 0; + @State prop_num729: number = 0; + @State prop_num730: number = 0; + @State prop_num731: number = 0; + @State prop_num732: number = 0; + @State prop_num733: number = 0; + @State prop_num734: number = 0; + @State prop_num735: number = 0; + @State prop_num736: number = 0; + @State prop_num737: number = 0; + @State prop_num738: number = 0; + @State prop_num739: number = 0; + @State prop_num740: number = 0; + @State prop_num741: number = 0; + @State prop_num742: number = 0; + @State prop_num743: number = 0; + @State prop_num744: number = 0; + @State prop_num745: number = 0; + @State prop_num746: number = 0; + @State prop_num747: number = 0; + @State prop_num748: number = 0; + @State prop_num749: number = 0; + @State prop_num750: number = 0; + @State prop_num751: number = 0; + @State prop_num752: number = 0; + @State prop_num753: number = 0; + @State prop_num754: number = 0; + @State prop_num755: number = 0; + @State prop_num756: number = 0; + @State prop_num757: number = 0; + @State prop_num758: number = 0; + @State prop_num759: number = 0; + @State prop_num760: number = 0; + @State prop_num761: number = 0; + @State prop_num762: number = 0; + @State prop_num763: number = 0; + @State prop_num764: number = 0; + @State prop_num765: number = 0; + @State prop_num766: number = 0; + @State prop_num767: number = 0; + @State prop_num768: number = 0; + @State prop_num769: number = 0; + @State prop_num770: number = 0; + @State prop_num771: number = 0; + @State prop_num772: number = 0; + @State prop_num773: number = 0; + @State prop_num774: number = 0; + @State prop_num775: number = 0; + @State prop_num776: number = 0; + @State prop_num777: number = 0; + @State prop_num778: number = 0; + @State prop_num779: number = 0; + @State prop_num780: number = 0; + @State prop_num781: number = 0; + @State prop_num782: number = 0; + @State prop_num783: number = 0; + @State prop_num784: number = 0; + @State prop_num785: number = 0; + @State prop_num786: number = 0; + @State prop_num787: number = 0; + @State prop_num788: number = 0; + @State prop_num789: number = 0; + @State prop_num790: number = 0; + @State prop_num791: number = 0; + @State prop_num792: number = 0; + @State prop_num793: number = 0; + @State prop_num794: number = 0; + @State prop_num795: number = 0; + @State prop_num796: number = 0; + @State prop_num797: number = 0; + @State prop_num798: number = 0; + @State prop_num799: number = 0; + @State prop_num800: number = 0; + @State prop_num801: number = 0; + @State prop_num802: number = 0; + @State prop_num803: number = 0; + @State prop_num804: number = 0; + @State prop_num805: number = 0; + @State prop_num806: number = 0; + @State prop_num807: number = 0; + @State prop_num808: number = 0; + @State prop_num809: number = 0; + @State prop_num810: number = 0; + @State prop_num811: number = 0; + @State prop_num812: number = 0; + @State prop_num813: number = 0; + @State prop_num814: number = 0; + @State prop_num815: number = 0; + @State prop_num816: number = 0; + @State prop_num817: number = 0; + @State prop_num818: number = 0; + @State prop_num819: number = 0; + @State prop_num820: number = 0; + @State prop_num821: number = 0; + @State prop_num822: number = 0; + @State prop_num823: number = 0; + @State prop_num824: number = 0; + @State prop_num825: number = 0; + @State prop_num826: number = 0; + @State prop_num827: number = 0; + @State prop_num828: number = 0; + @State prop_num829: number = 0; + @State prop_num830: number = 0; + @State prop_num831: number = 0; + @State prop_num832: number = 0; + @State prop_num833: number = 0; + @State prop_num834: number = 0; + @State prop_num835: number = 0; + @State prop_num836: number = 0; + @State prop_num837: number = 0; + @State prop_num838: number = 0; + @State prop_num839: number = 0; + @State prop_num840: number = 0; + @State prop_num841: number = 0; + @State prop_num842: number = 0; + @State prop_num843: number = 0; + @State prop_num844: number = 0; + @State prop_num845: number = 0; + @State prop_num846: number = 0; + @State prop_num847: number = 0; + @State prop_num848: number = 0; + @State prop_num849: number = 0; + @State prop_num850: number = 0; + @State prop_num851: number = 0; + @State prop_num852: number = 0; + @State prop_num853: number = 0; + @State prop_num854: number = 0; + @State prop_num855: number = 0; + @State prop_num856: number = 0; + @State prop_num857: number = 0; + @State prop_num858: number = 0; + @State prop_num859: number = 0; + @State prop_num860: number = 0; + @State prop_num861: number = 0; + @State prop_num862: number = 0; + @State prop_num863: number = 0; + @State prop_num864: number = 0; + @State prop_num865: number = 0; + @State prop_num866: number = 0; + @State prop_num867: number = 0; + @State prop_num868: number = 0; + @State prop_num869: number = 0; + @State prop_num870: number = 0; + @State prop_num871: number = 0; + @State prop_num872: number = 0; + @State prop_num873: number = 0; + @State prop_num874: number = 0; + @State prop_num875: number = 0; + @State prop_num876: number = 0; + @State prop_num877: number = 0; + @State prop_num878: number = 0; + @State prop_num879: number = 0; + @State prop_num880: number = 0; + @State prop_num881: number = 0; + @State prop_num882: number = 0; + @State prop_num883: number = 0; + @State prop_num884: number = 0; + @State prop_num885: number = 0; + @State prop_num886: number = 0; + @State prop_num887: number = 0; + @State prop_num888: number = 0; + @State prop_num889: number = 0; + @State prop_num890: number = 0; + @State prop_num891: number = 0; + @State prop_num892: number = 0; + @State prop_num893: number = 0; + @State prop_num894: number = 0; + @State prop_num895: number = 0; + @State prop_num896: number = 0; + @State prop_num897: number = 0; + @State prop_num898: number = 0; + @State prop_num899: number = 0; + @State prop_num900: number = 0; + @State prop_num901: number = 0; + @State prop_num902: number = 0; + @State prop_num903: number = 0; + @State prop_num904: number = 0; + @State prop_num905: number = 0; + @State prop_num906: number = 0; + @State prop_num907: number = 0; + @State prop_num908: number = 0; + @State prop_num909: number = 0; + @State prop_num910: number = 0; + @State prop_num911: number = 0; + @State prop_num912: number = 0; + @State prop_num913: number = 0; + @State prop_num914: number = 0; + @State prop_num915: number = 0; + @State prop_num916: number = 0; + @State prop_num917: number = 0; + @State prop_num918: number = 0; + @State prop_num919: number = 0; + @State prop_num920: number = 0; + @State prop_num921: number = 0; + @State prop_num922: number = 0; + @State prop_num923: number = 0; + @State prop_num924: number = 0; + @State prop_num925: number = 0; + @State prop_num926: number = 0; + @State prop_num927: number = 0; + @State prop_num928: number = 0; + @State prop_num929: number = 0; + @State prop_num930: number = 0; + @State prop_num931: number = 0; + @State prop_num932: number = 0; + @State prop_num933: number = 0; + @State prop_num934: number = 0; + @State prop_num935: number = 0; + @State prop_num936: number = 0; + @State prop_num937: number = 0; + @State prop_num938: number = 0; + @State prop_num939: number = 0; + @State prop_num940: number = 0; + @State prop_num941: number = 0; + @State prop_num942: number = 0; + @State prop_num943: number = 0; + @State prop_num944: number = 0; + @State prop_num945: number = 0; + @State prop_num946: number = 0; + @State prop_num947: number = 0; + @State prop_num948: number = 0; + @State prop_num949: number = 0; + @State prop_num950: number = 0; + @State prop_num951: number = 0; + @State prop_num952: number = 0; + @State prop_num953: number = 0; + @State prop_num954: number = 0; + @State prop_num955: number = 0; + @State prop_num956: number = 0; + @State prop_num957: number = 0; + @State prop_num958: number = 0; + @State prop_num959: number = 0; + @State prop_num960: number = 0; + @State prop_num961: number = 0; + @State prop_num962: number = 0; + @State prop_num963: number = 0; + @State prop_num964: number = 0; + @State prop_num965: number = 0; + @State prop_num966: number = 0; + @State prop_num967: number = 0; + @State prop_num968: number = 0; + @State prop_num969: number = 0; + @State prop_num970: number = 0; + @State prop_num971: number = 0; + @State prop_num972: number = 0; + @State prop_num973: number = 0; + @State prop_num974: number = 0; + @State prop_num975: number = 0; + @State prop_num976: number = 0; + @State prop_num977: number = 0; + @State prop_num978: number = 0; + @State prop_num979: number = 0; + @State prop_num980: number = 0; + @State prop_num981: number = 0; + @State prop_num982: number = 0; + @State prop_num983: number = 0; + @State prop_num984: number = 0; + @State prop_num985: number = 0; + @State prop_num986: number = 0; + @State prop_num987: number = 0; + @State prop_num988: number = 0; + @State prop_num989: number = 0; + @State prop_num990: number = 0; + @State prop_num991: number = 0; + @State prop_num992: number = 0; + @State prop_num993: number = 0; + @State prop_num994: number = 0; + @State prop_num995: number = 0; + @State prop_num996: number = 0; + @State prop_num997: number = 0; + @State prop_num998: number = 0; + @State prop_num999: number = 0; + @State prop_num1000: number = 0; + @State prop_num1001: number = 0; + @State prop_num1002: number = 0; + @State prop_num1003: number = 0; + @State prop_num1004: number = 0; + @State prop_num1005: number = 0; + @State prop_num1006: number = 0; + @State prop_num1007: number = 0; + @State prop_num1008: number = 0; + @State prop_num1009: number = 0; + @State prop_num1010: number = 0; + @State prop_num1011: number = 0; + @State prop_num1012: number = 0; + @State prop_num1013: number = 0; + @State prop_num1014: number = 0; + @State prop_num1015: number = 0; + @State prop_num1016: number = 0; + @State prop_num1017: number = 0; + @State prop_num1018: number = 0; + @State prop_num1019: number = 0; + @State prop_num1020: number = 0; + @State prop_num1021: number = 0; + @State prop_num1022: number = 0; + @State prop_num1023: number = 0; + @State prop_num1024: number = 0; + @State prop_num1025: number = 0; + @State prop_num1026: number = 0; + @State prop_num1027: number = 0; + @State prop_num1028: number = 0; + @State prop_num1029: number = 0; + @State prop_num1030: number = 0; + @State prop_num1031: number = 0; + @State prop_num1032: number = 0; + @State prop_num1033: number = 0; + @State prop_num1034: number = 0; + @State prop_num1035: number = 0; + @State prop_num1036: number = 0; + @State prop_num1037: number = 0; + @State prop_num1038: number = 0; + @State prop_num1039: number = 0; + @State prop_num1040: number = 0; + @State prop_num1041: number = 0; + @State prop_num1042: number = 0; + @State prop_num1043: number = 0; + @State prop_num1044: number = 0; + @State prop_num1045: number = 0; + @State prop_num1046: number = 0; + @State prop_num1047: number = 0; + @State prop_num1048: number = 0; + @State prop_num1049: number = 0; + @State prop_num1050: number = 0; + @State prop_num1051: number = 0; + @State prop_num1052: number = 0; + @State prop_num1053: number = 0; + @State prop_num1054: number = 0; + @State prop_num1055: number = 0; + @State prop_num1056: number = 0; + @State prop_num1057: number = 0; + @State prop_num1058: number = 0; + @State prop_num1059: number = 0; + @State prop_num1060: number = 0; + @State prop_num1061: number = 0; + @State prop_num1062: number = 0; + @State prop_num1063: number = 0; + @State prop_num1064: number = 0; + @State prop_num1065: number = 0; + @State prop_num1066: number = 0; + @State prop_num1067: number = 0; + @State prop_num1068: number = 0; + @State prop_num1069: number = 0; + @State prop_num1070: number = 0; + @State prop_num1071: number = 0; + @State prop_num1072: number = 0; + @State prop_num1073: number = 0; + @State prop_num1074: number = 0; + @State prop_num1075: number = 0; + @State prop_num1076: number = 0; + @State prop_num1077: number = 0; + @State prop_num1078: number = 0; + @State prop_num1079: number = 0; + @State prop_num1080: number = 0; + @State prop_num1081: number = 0; + @State prop_num1082: number = 0; + @State prop_num1083: number = 0; + @State prop_num1084: number = 0; + @State prop_num1085: number = 0; + @State prop_num1086: number = 0; + @State prop_num1087: number = 0; + @State prop_num1088: number = 0; + @State prop_num1089: number = 0; + @State prop_num1090: number = 0; + @State prop_num1091: number = 0; + @State prop_num1092: number = 0; + @State prop_num1093: number = 0; + @State prop_num1094: number = 0; + @State prop_num1095: number = 0; + @State prop_num1096: number = 0; + @State prop_num1097: number = 0; + @State prop_num1098: number = 0; + @State prop_num1099: number = 0; + @State prop_num1100: number = 0; + @State prop_num1101: number = 0; + @State prop_num1102: number = 0; + @State prop_num1103: number = 0; + @State prop_num1104: number = 0; + @State prop_num1105: number = 0; + @State prop_num1106: number = 0; + @State prop_num1107: number = 0; + @State prop_num1108: number = 0; + @State prop_num1109: number = 0; + @State prop_num1110: number = 0; + @State prop_num1111: number = 0; + @State prop_num1112: number = 0; + @State prop_num1113: number = 0; + @State prop_num1114: number = 0; + @State prop_num1115: number = 0; + @State prop_num1116: number = 0; + @State prop_num1117: number = 0; + @State prop_num1118: number = 0; + @State prop_num1119: number = 0; + @State prop_num1120: number = 0; + @State prop_num1121: number = 0; + @State prop_num1122: number = 0; + @State prop_num1123: number = 0; + @State prop_num1124: number = 0; + @State prop_num1125: number = 0; + @State prop_num1126: number = 0; + @State prop_num1127: number = 0; + @State prop_num1128: number = 0; + @State prop_num1129: number = 0; + @State prop_num1130: number = 0; + @State prop_num1131: number = 0; + @State prop_num1132: number = 0; + @State prop_num1133: number = 0; + @State prop_num1134: number = 0; + @State prop_num1135: number = 0; + @State prop_num1136: number = 0; + @State prop_num1137: number = 0; + @State prop_num1138: number = 0; + @State prop_num1139: number = 0; + @State prop_num1140: number = 0; + @State prop_num1141: number = 0; + @State prop_num1142: number = 0; + @State prop_num1143: number = 0; + @State prop_num1144: number = 0; + @State prop_num1145: number = 0; + @State prop_num1146: number = 0; + @State prop_num1147: number = 0; + @State prop_num1148: number = 0; + @State prop_num1149: number = 0; + @State prop_num1150: number = 0; + @State prop_num1151: number = 0; + @State prop_num1152: number = 0; + @State prop_num1153: number = 0; + @State prop_num1154: number = 0; + @State prop_num1155: number = 0; + @State prop_num1156: number = 0; + @State prop_num1157: number = 0; + @State prop_num1158: number = 0; + @State prop_num1159: number = 0; + @State prop_num1160: number = 0; + @State prop_num1161: number = 0; + @State prop_num1162: number = 0; + @State prop_num1163: number = 0; + @State prop_num1164: number = 0; + @State prop_num1165: number = 0; + @State prop_num1166: number = 0; + @State prop_num1167: number = 0; + @State prop_num1168: number = 0; + @State prop_num1169: number = 0; + @State prop_num1170: number = 0; + @State prop_num1171: number = 0; + @State prop_num1172: number = 0; + @State prop_num1173: number = 0; + @State prop_num1174: number = 0; + @State prop_num1175: number = 0; + @State prop_num1176: number = 0; + @State prop_num1177: number = 0; + @State prop_num1178: number = 0; + @State prop_num1179: number = 0; + @State prop_num1180: number = 0; + @State prop_num1181: number = 0; + @State prop_num1182: number = 0; + @State prop_num1183: number = 0; + @State prop_num1184: number = 0; + @State prop_num1185: number = 0; + @State prop_num1186: number = 0; + @State prop_num1187: number = 0; + @State prop_num1188: number = 0; + @State prop_num1189: number = 0; + @State prop_num1190: number = 0; + @State prop_num1191: number = 0; + @State prop_num1192: number = 0; + @State prop_num1193: number = 0; + @State prop_num1194: number = 0; + @State prop_num1195: number = 0; + @State prop_num1196: number = 0; + @State prop_num1197: number = 0; + @State prop_num1198: number = 0; + @State prop_num1199: number = 0; + @State prop_num1200: number = 0; + @State prop_num1201: number = 0; + @State prop_num1202: number = 0; + @State prop_num1203: number = 0; + @State prop_num1204: number = 0; + @State prop_num1205: number = 0; + @State prop_num1206: number = 0; + @State prop_num1207: number = 0; + @State prop_num1208: number = 0; + @State prop_num1209: number = 0; + @State prop_num1210: number = 0; + @State prop_num1211: number = 0; + @State prop_num1212: number = 0; + @State prop_num1213: number = 0; + @State prop_num1214: number = 0; + @State prop_num1215: number = 0; + @State prop_num1216: number = 0; + @State prop_num1217: number = 0; + @State prop_num1218: number = 0; + @State prop_num1219: number = 0; + @State prop_num1220: number = 0; + @State prop_num1221: number = 0; + @State prop_num1222: number = 0; + @State prop_num1223: number = 0; + @State prop_num1224: number = 0; + @State prop_num1225: number = 0; + @State prop_num1226: number = 0; + @State prop_num1227: number = 0; + @State prop_num1228: number = 0; + @State prop_num1229: number = 0; + @State prop_num1230: number = 0; + @State prop_num1231: number = 0; + @State prop_num1232: number = 0; + @State prop_num1233: number = 0; + @State prop_num1234: number = 0; + @State prop_num1235: number = 0; + @State prop_num1236: number = 0; + @State prop_num1237: number = 0; + @State prop_num1238: number = 0; + @State prop_num1239: number = 0; + @State prop_num1240: number = 0; + @State prop_num1241: number = 0; + @State prop_num1242: number = 0; + @State prop_num1243: number = 0; + @State prop_num1244: number = 0; + @State prop_num1245: number = 0; + @State prop_num1246: number = 0; + @State prop_num1247: number = 0; + @State prop_num1248: number = 0; + @State prop_num1249: number = 0; + @State prop_num1250: number = 0; + @State prop_num1251: number = 0; + @State prop_num1252: number = 0; + @State prop_num1253: number = 0; + @State prop_num1254: number = 0; + @State prop_num1255: number = 0; + @State prop_num1256: number = 0; + @State prop_num1257: number = 0; + @State prop_num1258: number = 0; + @State prop_num1259: number = 0; + @State prop_num1260: number = 0; + @State prop_num1261: number = 0; + @State prop_num1262: number = 0; + @State prop_num1263: number = 0; + @State prop_num1264: number = 0; + @State prop_num1265: number = 0; + @State prop_num1266: number = 0; + @State prop_num1267: number = 0; + @State prop_num1268: number = 0; + @State prop_num1269: number = 0; + @State prop_num1270: number = 0; + @State prop_num1271: number = 0; + @State prop_num1272: number = 0; + @State prop_num1273: number = 0; + @State prop_num1274: number = 0; + @State prop_num1275: number = 0; + @State prop_num1276: number = 0; + @State prop_num1277: number = 0; + @State prop_num1278: number = 0; + @State prop_num1279: number = 0; + @State prop_num1280: number = 0; + @State prop_num1281: number = 0; + @State prop_num1282: number = 0; + @State prop_num1283: number = 0; + @State prop_num1284: number = 0; + @State prop_num1285: number = 0; + @State prop_num1286: number = 0; + @State prop_num1287: number = 0; + @State prop_num1288: number = 0; + @State prop_num1289: number = 0; + @State prop_num1290: number = 0; + @State prop_num1291: number = 0; + @State prop_num1292: number = 0; + @State prop_num1293: number = 0; + @State prop_num1294: number = 0; + @State prop_num1295: number = 0; + @State prop_num1296: number = 0; + @State prop_num1297: number = 0; + @State prop_num1298: number = 0; + @State prop_num1299: number = 0; + @State prop_num1300: number = 0; + @State prop_num1301: number = 0; + @State prop_num1302: number = 0; + @State prop_num1303: number = 0; + @State prop_num1304: number = 0; + @State prop_num1305: number = 0; + @State prop_num1306: number = 0; + @State prop_num1307: number = 0; + @State prop_num1308: number = 0; + @State prop_num1309: number = 0; + @State prop_num1310: number = 0; + @State prop_num1311: number = 0; + @State prop_num1312: number = 0; + @State prop_num1313: number = 0; + @State prop_num1314: number = 0; + @State prop_num1315: number = 0; + @State prop_num1316: number = 0; + @State prop_num1317: number = 0; + @State prop_num1318: number = 0; + @State prop_num1319: number = 0; + @State prop_num1320: number = 0; + @State prop_num1321: number = 0; + @State prop_num1322: number = 0; + @State prop_num1323: number = 0; + @State prop_num1324: number = 0; + @State prop_num1325: number = 0; + @State prop_num1326: number = 0; + @State prop_num1327: number = 0; + @State prop_num1328: number = 0; + @State prop_num1329: number = 0; + @State prop_num1330: number = 0; + @State prop_num1331: number = 0; + @State prop_num1332: number = 0; + @State prop_num1333: number = 0; + @State prop_num1334: number = 0; + @State prop_num1335: number = 0; + @State prop_num1336: number = 0; + @State prop_num1337: number = 0; + @State prop_num1338: number = 0; + @State prop_num1339: number = 0; + @State prop_num1340: number = 0; + @State prop_num1341: number = 0; + @State prop_num1342: number = 0; + @State prop_num1343: number = 0; + @State prop_num1344: number = 0; + @State prop_num1345: number = 0; + @State prop_num1346: number = 0; + @State prop_num1347: number = 0; + @State prop_num1348: number = 0; + @State prop_num1349: number = 0; + @State prop_num1350: number = 0; + @State prop_num1351: number = 0; + @State prop_num1352: number = 0; + @State prop_num1353: number = 0; + @State prop_num1354: number = 0; + @State prop_num1355: number = 0; + @State prop_num1356: number = 0; + @State prop_num1357: number = 0; + @State prop_num1358: number = 0; + @State prop_num1359: number = 0; + @State prop_num1360: number = 0; + @State prop_num1361: number = 0; + @State prop_num1362: number = 0; + @State prop_num1363: number = 0; + @State prop_num1364: number = 0; + @State prop_num1365: number = 0; + @State prop_num1366: number = 0; + @State prop_num1367: number = 0; + @State prop_num1368: number = 0; + @State prop_num1369: number = 0; + @State prop_num1370: number = 0; + @State prop_num1371: number = 0; + @State prop_num1372: number = 0; + @State prop_num1373: number = 0; + @State prop_num1374: number = 0; + @State prop_num1375: number = 0; + @State prop_num1376: number = 0; + @State prop_num1377: number = 0; + @State prop_num1378: number = 0; + @State prop_num1379: number = 0; + @State prop_num1380: number = 0; + @State prop_num1381: number = 0; + @State prop_num1382: number = 0; + @State prop_num1383: number = 0; + @State prop_num1384: number = 0; + @State prop_num1385: number = 0; + @State prop_num1386: number = 0; + @State prop_num1387: number = 0; + @State prop_num1388: number = 0; + @State prop_num1389: number = 0; + @State prop_num1390: number = 0; + @State prop_num1391: number = 0; + @State prop_num1392: number = 0; + @State prop_num1393: number = 0; + @State prop_num1394: number = 0; + @State prop_num1395: number = 0; + @State prop_num1396: number = 0; + @State prop_num1397: number = 0; + @State prop_num1398: number = 0; + @State prop_num1399: number = 0; + @State prop_num1400: number = 0; + @State prop_num1401: number = 0; + @State prop_num1402: number = 0; + @State prop_num1403: number = 0; + @State prop_num1404: number = 0; + @State prop_num1405: number = 0; + @State prop_num1406: number = 0; + @State prop_num1407: number = 0; + @State prop_num1408: number = 0; + @State prop_num1409: number = 0; + @State prop_num1410: number = 0; + @State prop_num1411: number = 0; + @State prop_num1412: number = 0; + @State prop_num1413: number = 0; + @State prop_num1414: number = 0; + @State prop_num1415: number = 0; + @State prop_num1416: number = 0; + @State prop_num1417: number = 0; + @State prop_num1418: number = 0; + @State prop_num1419: number = 0; + @State prop_num1420: number = 0; + @State prop_num1421: number = 0; + @State prop_num1422: number = 0; + @State prop_num1423: number = 0; + @State prop_num1424: number = 0; + @State prop_num1425: number = 0; + @State prop_num1426: number = 0; + @State prop_num1427: number = 0; + @State prop_num1428: number = 0; + @State prop_num1429: number = 0; + @State prop_num1430: number = 0; + @State prop_num1431: number = 0; + @State prop_num1432: number = 0; + @State prop_num1433: number = 0; + @State prop_num1434: number = 0; + @State prop_num1435: number = 0; + @State prop_num1436: number = 0; + @State prop_num1437: number = 0; + @State prop_num1438: number = 0; + @State prop_num1439: number = 0; + @State prop_num1440: number = 0; + @State prop_num1441: number = 0; + @State prop_num1442: number = 0; + @State prop_num1443: number = 0; + @State prop_num1444: number = 0; + @State prop_num1445: number = 0; + @State prop_num1446: number = 0; + @State prop_num1447: number = 0; + @State prop_num1448: number = 0; + @State prop_num1449: number = 0; + @State prop_num1450: number = 0; + @State prop_num1451: number = 0; + @State prop_num1452: number = 0; + @State prop_num1453: number = 0; + @State prop_num1454: number = 0; + @State prop_num1455: number = 0; + @State prop_num1456: number = 0; + @State prop_num1457: number = 0; + @State prop_num1458: number = 0; + @State prop_num1459: number = 0; + @State prop_num1460: number = 0; + @State prop_num1461: number = 0; + @State prop_num1462: number = 0; + @State prop_num1463: number = 0; + @State prop_num1464: number = 0; + @State prop_num1465: number = 0; + @State prop_num1466: number = 0; + @State prop_num1467: number = 0; + @State prop_num1468: number = 0; + @State prop_num1469: number = 0; + @State prop_num1470: number = 0; + @State prop_num1471: number = 0; + @State prop_num1472: number = 0; + @State prop_num1473: number = 0; + @State prop_num1474: number = 0; + @State prop_num1475: number = 0; + @State prop_num1476: number = 0; + @State prop_num1477: number = 0; + @State prop_num1478: number = 0; + @State prop_num1479: number = 0; + @State prop_num1480: number = 0; + @State prop_num1481: number = 0; + @State prop_num1482: number = 0; + @State prop_num1483: number = 0; + @State prop_num1484: number = 0; + @State prop_num1485: number = 0; + @State prop_num1486: number = 0; + @State prop_num1487: number = 0; + @State prop_num1488: number = 0; + @State prop_num1489: number = 0; + @State prop_num1490: number = 0; + @State prop_num1491: number = 0; + @State prop_num1492: number = 0; + @State prop_num1493: number = 0; + @State prop_num1494: number = 0; + @State prop_num1495: number = 0; + @State prop_num1496: number = 0; + @State prop_num1497: number = 0; + @State prop_num1498: number = 0; + @State prop_num1499: number = 0; + @State prop_num1500: number = 0; + @State prop_num1501: number = 0; + @State prop_num1502: number = 0; + @State prop_num1503: number = 0; + @State prop_num1504: number = 0; + @State prop_num1505: number = 0; + @State prop_num1506: number = 0; + @State prop_num1507: number = 0; + @State prop_num1508: number = 0; + @State prop_num1509: number = 0; + @State prop_num1510: number = 0; + @State prop_num1511: number = 0; + @State prop_num1512: number = 0; + @State prop_num1513: number = 0; + @State prop_num1514: number = 0; + @State prop_num1515: number = 0; + @State prop_num1516: number = 0; + @State prop_num1517: number = 0; + @State prop_num1518: number = 0; + @State prop_num1519: number = 0; + @State prop_num1520: number = 0; + @State prop_num1521: number = 0; + @State prop_num1522: number = 0; + @State prop_num1523: number = 0; + @State prop_num1524: number = 0; + @State prop_num1525: number = 0; + @State prop_num1526: number = 0; + @State prop_num1527: number = 0; + @State prop_num1528: number = 0; + @State prop_num1529: number = 0; + @State prop_num1530: number = 0; + @State prop_num1531: number = 0; + @State prop_num1532: number = 0; + @State prop_num1533: number = 0; + @State prop_num1534: number = 0; + @State prop_num1535: number = 0; + @State prop_num1536: number = 0; + @State prop_num1537: number = 0; + @State prop_num1538: number = 0; + @State prop_num1539: number = 0; + @State prop_num1540: number = 0; + @State prop_num1541: number = 0; + @State prop_num1542: number = 0; + @State prop_num1543: number = 0; + @State prop_num1544: number = 0; + @State prop_num1545: number = 0; + @State prop_num1546: number = 0; + @State prop_num1547: number = 0; + @State prop_num1548: number = 0; + @State prop_num1549: number = 0; + @State prop_num1550: number = 0; + @State prop_num1551: number = 0; + @State prop_num1552: number = 0; + @State prop_num1553: number = 0; + @State prop_num1554: number = 0; + @State prop_num1555: number = 0; + @State prop_num1556: number = 0; + @State prop_num1557: number = 0; + @State prop_num1558: number = 0; + @State prop_num1559: number = 0; + @State prop_num1560: number = 0; + @State prop_num1561: number = 0; + @State prop_num1562: number = 0; + @State prop_num1563: number = 0; + @State prop_num1564: number = 0; + @State prop_num1565: number = 0; + @State prop_num1566: number = 0; + @State prop_num1567: number = 0; + @State prop_num1568: number = 0; + @State prop_num1569: number = 0; + @State prop_num1570: number = 0; + @State prop_num1571: number = 0; + @State prop_num1572: number = 0; + @State prop_num1573: number = 0; + @State prop_num1574: number = 0; + @State prop_num1575: number = 0; + @State prop_num1576: number = 0; + @State prop_num1577: number = 0; + @State prop_num1578: number = 0; + @State prop_num1579: number = 0; + @State prop_num1580: number = 0; + @State prop_num1581: number = 0; + @State prop_num1582: number = 0; + @State prop_num1583: number = 0; + @State prop_num1584: number = 0; + @State prop_num1585: number = 0; + @State prop_num1586: number = 0; + @State prop_num1587: number = 0; + @State prop_num1588: number = 0; + @State prop_num1589: number = 0; + @State prop_num1590: number = 0; + @State prop_num1591: number = 0; + @State prop_num1592: number = 0; + @State prop_num1593: number = 0; + @State prop_num1594: number = 0; + @State prop_num1595: number = 0; + @State prop_num1596: number = 0; + @State prop_num1597: number = 0; + @State prop_num1598: number = 0; + @State prop_num1599: number = 0; + @State prop_num1600: number = 0; + @State prop_num1601: number = 0; + @State prop_num1602: number = 0; + @State prop_num1603: number = 0; + @State prop_num1604: number = 0; + @State prop_num1605: number = 0; + @State prop_num1606: number = 0; + @State prop_num1607: number = 0; + @State prop_num1608: number = 0; + @State prop_num1609: number = 0; + @State prop_num1610: number = 0; + @State prop_num1611: number = 0; + @State prop_num1612: number = 0; + @State prop_num1613: number = 0; + @State prop_num1614: number = 0; + @State prop_num1615: number = 0; + @State prop_num1616: number = 0; + @State prop_num1617: number = 0; + @State prop_num1618: number = 0; + @State prop_num1619: number = 0; + @State prop_num1620: number = 0; + @State prop_num1621: number = 0; + @State prop_num1622: number = 0; + @State prop_num1623: number = 0; + @State prop_num1624: number = 0; + @State prop_num1625: number = 0; + @State prop_num1626: number = 0; + @State prop_num1627: number = 0; + @State prop_num1628: number = 0; + @State prop_num1629: number = 0; + @State prop_num1630: number = 0; + @State prop_num1631: number = 0; + @State prop_num1632: number = 0; + @State prop_num1633: number = 0; + @State prop_num1634: number = 0; + @State prop_num1635: number = 0; + @State prop_num1636: number = 0; + @State prop_num1637: number = 0; + @State prop_num1638: number = 0; + @State prop_num1639: number = 0; + @State prop_num1640: number = 0; + @State prop_num1641: number = 0; + @State prop_num1642: number = 0; + @State prop_num1643: number = 0; + @State prop_num1644: number = 0; + @State prop_num1645: number = 0; + @State prop_num1646: number = 0; + @State prop_num1647: number = 0; + @State prop_num1648: number = 0; + @State prop_num1649: number = 0; + @State prop_num1650: number = 0; + @State prop_num1651: number = 0; + @State prop_num1652: number = 0; + @State prop_num1653: number = 0; + @State prop_num1654: number = 0; + @State prop_num1655: number = 0; + @State prop_num1656: number = 0; + @State prop_num1657: number = 0; + @State prop_num1658: number = 0; + @State prop_num1659: number = 0; + @State prop_num1660: number = 0; + @State prop_num1661: number = 0; + @State prop_num1662: number = 0; + @State prop_num1663: number = 0; + @State prop_num1664: number = 0; + @State prop_num1665: number = 0; + @State prop_num1666: number = 0; + @State prop_num1667: number = 0; + @State prop_num1668: number = 0; + @State prop_num1669: number = 0; + @State prop_num1670: number = 0; + @State prop_num1671: number = 0; + @State prop_num1672: number = 0; + @State prop_num1673: number = 0; + @State prop_num1674: number = 0; + @State prop_num1675: number = 0; + @State prop_num1676: number = 0; + @State prop_num1677: number = 0; + @State prop_num1678: number = 0; + @State prop_num1679: number = 0; + @State prop_num1680: number = 0; + @State prop_num1681: number = 0; + @State prop_num1682: number = 0; + @State prop_num1683: number = 0; + @State prop_num1684: number = 0; + @State prop_num1685: number = 0; + @State prop_num1686: number = 0; + @State prop_num1687: number = 0; + @State prop_num1688: number = 0; + @State prop_num1689: number = 0; + @State prop_num1690: number = 0; + @State prop_num1691: number = 0; + @State prop_num1692: number = 0; + @State prop_num1693: number = 0; + @State prop_num1694: number = 0; + @State prop_num1695: number = 0; + @State prop_num1696: number = 0; + @State prop_num1697: number = 0; + @State prop_num1698: number = 0; + @State prop_num1699: number = 0; + @State prop_num1700: number = 0; + @State prop_num1701: number = 0; + @State prop_num1702: number = 0; + @State prop_num1703: number = 0; + @State prop_num1704: number = 0; + @State prop_num1705: number = 0; + @State prop_num1706: number = 0; + @State prop_num1707: number = 0; + @State prop_num1708: number = 0; + @State prop_num1709: number = 0; + @State prop_num1710: number = 0; + @State prop_num1711: number = 0; + @State prop_num1712: number = 0; + @State prop_num1713: number = 0; + @State prop_num1714: number = 0; + @State prop_num1715: number = 0; + @State prop_num1716: number = 0; + @State prop_num1717: number = 0; + @State prop_num1718: number = 0; + @State prop_num1719: number = 0; + @State prop_num1720: number = 0; + @State prop_num1721: number = 0; + @State prop_num1722: number = 0; + @State prop_num1723: number = 0; + @State prop_num1724: number = 0; + @State prop_num1725: number = 0; + @State prop_num1726: number = 0; + @State prop_num1727: number = 0; + @State prop_num1728: number = 0; + @State prop_num1729: number = 0; + @State prop_num1730: number = 0; + @State prop_num1731: number = 0; + @State prop_num1732: number = 0; + @State prop_num1733: number = 0; + @State prop_num1734: number = 0; + @State prop_num1735: number = 0; + @State prop_num1736: number = 0; + @State prop_num1737: number = 0; + @State prop_num1738: number = 0; + @State prop_num1739: number = 0; + @State prop_num1740: number = 0; + @State prop_num1741: number = 0; + @State prop_num1742: number = 0; + @State prop_num1743: number = 0; + @State prop_num1744: number = 0; + @State prop_num1745: number = 0; + @State prop_num1746: number = 0; + @State prop_num1747: number = 0; + @State prop_num1748: number = 0; + @State prop_num1749: number = 0; + @State prop_num1750: number = 0; + @State prop_num1751: number = 0; + @State prop_num1752: number = 0; + @State prop_num1753: number = 0; + @State prop_num1754: number = 0; + @State prop_num1755: number = 0; + @State prop_num1756: number = 0; + @State prop_num1757: number = 0; + @State prop_num1758: number = 0; + @State prop_num1759: number = 0; + @State prop_num1760: number = 0; + @State prop_num1761: number = 0; + @State prop_num1762: number = 0; + @State prop_num1763: number = 0; + @State prop_num1764: number = 0; + @State prop_num1765: number = 0; + @State prop_num1766: number = 0; + @State prop_num1767: number = 0; + @State prop_num1768: number = 0; + @State prop_num1769: number = 0; + @State prop_num1770: number = 0; + @State prop_num1771: number = 0; + @State prop_num1772: number = 0; + @State prop_num1773: number = 0; + @State prop_num1774: number = 0; + @State prop_num1775: number = 0; + @State prop_num1776: number = 0; + @State prop_num1777: number = 0; + @State prop_num1778: number = 0; + @State prop_num1779: number = 0; + @State prop_num1780: number = 0; + @State prop_num1781: number = 0; + @State prop_num1782: number = 0; + @State prop_num1783: number = 0; + @State prop_num1784: number = 0; + @State prop_num1785: number = 0; + @State prop_num1786: number = 0; + @State prop_num1787: number = 0; + @State prop_num1788: number = 0; + @State prop_num1789: number = 0; + @State prop_num1790: number = 0; + @State prop_num1791: number = 0; + @State prop_num1792: number = 0; + @State prop_num1793: number = 0; + @State prop_num1794: number = 0; + @State prop_num1795: number = 0; + @State prop_num1796: number = 0; + @State prop_num1797: number = 0; + @State prop_num1798: number = 0; + @State prop_num1799: number = 0; + @State prop_num1800: number = 0; + @State prop_num1801: number = 0; + @State prop_num1802: number = 0; + @State prop_num1803: number = 0; + @State prop_num1804: number = 0; + @State prop_num1805: number = 0; + @State prop_num1806: number = 0; + @State prop_num1807: number = 0; + @State prop_num1808: number = 0; + @State prop_num1809: number = 0; + @State prop_num1810: number = 0; + @State prop_num1811: number = 0; + @State prop_num1812: number = 0; + @State prop_num1813: number = 0; + @State prop_num1814: number = 0; + @State prop_num1815: number = 0; + @State prop_num1816: number = 0; + @State prop_num1817: number = 0; + + + //============================================================================= + @State link_num0: number = 0; + @State link_num1: number = 0; + @State link_num2: number = 0; + @State link_num3: number = 0; + @State link_num4: number = 0; + @State link_num5: number = 0; + @State link_num6: number = 0; + @State link_num7: number = 0; + @State link_num8: number = 0; + @State link_num9: number = 0; + @State link_num10: number = 0; + @State link_num11: number = 0; + @State link_num12: number = 0; + @State link_num13: number = 0; + @State link_num14: number = 0; + @State link_num15: number = 0; + @State link_num16: number = 0; + @State link_num17: number = 0; + @State link_num18: number = 0; + @State link_num19: number = 0; + @State link_num20: number = 0; + @State link_num21: number = 0; + @State link_num22: number = 0; + @State link_num23: number = 0; + @State link_num24: number = 0; + @State link_num25: number = 0; + @State link_num26: number = 0; + @State link_num27: number = 0; + @State link_num28: number = 0; + @State link_num29: number = 0; + @State link_num30: number = 0; + @State link_num31: number = 0; + @State link_num32: number = 0; + @State link_num33: number = 0; + @State link_num34: number = 0; + @State link_num35: number = 0; + @State link_num36: number = 0; + @State link_num37: number = 0; + @State link_num38: number = 0; + @State link_num39: number = 0; + @State link_num40: number = 0; + @State link_num41: number = 0; + @State link_num42: number = 0; + @State link_num43: number = 0; + @State link_num44: number = 0; + @State link_num45: number = 0; + @State link_num46: number = 0; + @State link_num47: number = 0; + @State link_num48: number = 0; + @State link_num49: number = 0; + @State link_num50: number = 0; + @State link_num51: number = 0; + @State link_num52: number = 0; + @State link_num53: number = 0; + @State link_num54: number = 0; + @State link_num55: number = 0; + @State link_num56: number = 0; + @State link_num57: number = 0; + @State link_num58: number = 0; + @State link_num59: number = 0; + @State link_num60: number = 0; + @State link_num61: number = 0; + @State link_num62: number = 0; + @State link_num63: number = 0; + @State link_num64: number = 0; + @State link_num65: number = 0; + @State link_num66: number = 0; + @State link_num67: number = 0; + @State link_num68: number = 0; + @State link_num69: number = 0; + @State link_num70: number = 0; + @State link_num71: number = 0; + @State link_num72: number = 0; + @State link_num73: number = 0; + @State link_num74: number = 0; + @State link_num75: number = 0; + @State link_num76: number = 0; + @State link_num77: number = 0; + @State link_num78: number = 0; + @State link_num79: number = 0; + @State link_num80: number = 0; + @State link_num81: number = 0; + @State link_num82: number = 0; + @State link_num83: number = 0; + @State link_num84: number = 0; + @State link_num85: number = 0; + @State link_num86: number = 0; + @State link_num87: number = 0; + @State link_num88: number = 0; + @State link_num89: number = 0; + @State link_num90: number = 0; + @State link_num91: number = 0; + @State link_num92: number = 0; + @State link_num93: number = 0; + @State link_num94: number = 0; + @State link_num95: number = 0; + @State link_num96: number = 0; + @State link_num97: number = 0; + @State link_num98: number = 0; + @State link_num99: number = 0; + @State link_num100: number = 0; + @State link_num101: number = 0; + @State link_num102: number = 0; + @State link_num103: number = 0; + @State link_num104: number = 0; + @State link_num105: number = 0; + @State link_num106: number = 0; + @State link_num107: number = 0; + @State link_num108: number = 0; + @State link_num109: number = 0; + @State link_num110: number = 0; + @State link_num111: number = 0; + @State link_num112: number = 0; + @State link_num113: number = 0; + @State link_num114: number = 0; + @State link_num115: number = 0; + @State link_num116: number = 0; + @State link_num117: number = 0; + @State link_num118: number = 0; + @State link_num119: number = 0; + @State link_num120: number = 0; + @State link_num121: number = 0; + @State link_num122: number = 0; + @State link_num123: number = 0; + @State link_num124: number = 0; + @State link_num125: number = 0; + @State link_num126: number = 0; + @State link_num127: number = 0; + @State link_num128: number = 0; + @State link_num129: number = 0; + @State link_num130: number = 0; + @State link_num131: number = 0; + @State link_num132: number = 0; + @State link_num133: number = 0; + @State link_num134: number = 0; + @State link_num135: number = 0; + @State link_num136: number = 0; + @State link_num137: number = 0; + @State link_num138: number = 0; + @State link_num139: number = 0; + @State link_num140: number = 0; + @State link_num141: number = 0; + @State link_num142: number = 0; + @State link_num143: number = 0; + @State link_num144: number = 0; + @State link_num145: number = 0; + @State link_num146: number = 0; + @State link_num147: number = 0; + @State link_num148: number = 0; + @State link_num149: number = 0; + @State link_num150: number = 0; + @State link_num151: number = 0; + @State link_num152: number = 0; + @State link_num153: number = 0; + @State link_num154: number = 0; + @State link_num155: number = 0; + @State link_num156: number = 0; + @State link_num157: number = 0; + @State link_num158: number = 0; + @State link_num159: number = 0; + @State link_num160: number = 0; + @State link_num161: number = 0; + @State link_num162: number = 0; + @State link_num163: number = 0; + @State link_num164: number = 0; + @State link_num165: number = 0; + @State link_num166: number = 0; + @State link_num167: number = 0; + @State link_num168: number = 0; + @State link_num169: number = 0; + @State link_num170: number = 0; + @State link_num171: number = 0; + @State link_num172: number = 0; + @State link_num173: number = 0; + @State link_num174: number = 0; + @State link_num175: number = 0; + @State link_num176: number = 0; + @State link_num177: number = 0; + @State link_num178: number = 0; + @State link_num179: number = 0; + @State link_num180: number = 0; + @State link_num181: number = 0; + @State link_num182: number = 0; + @State link_num183: number = 0; + @State link_num184: number = 0; + @State link_num185: number = 0; + @State link_num186: number = 0; + @State link_num187: number = 0; + @State link_num188: number = 0; + @State link_num189: number = 0; + @State link_num190: number = 0; + @State link_num191: number = 0; + @State link_num192: number = 0; + @State link_num193: number = 0; + @State link_num194: number = 0; + @State link_num195: number = 0; + @State link_num196: number = 0; + @State link_num197: number = 0; + @State link_num198: number = 0; + @State link_num199: number = 0; + @State link_num200: number = 0; + @State link_num201: number = 0; + @State link_num202: number = 0; + @State link_num203: number = 0; + @State link_num204: number = 0; + @State link_num205: number = 0; + @State link_num206: number = 0; + @State link_num207: number = 0; + @State link_num208: number = 0; + @State link_num209: number = 0; + @State link_num210: number = 0; + @State link_num211: number = 0; + @State link_num212: number = 0; + @State link_num213: number = 0; + @State link_num214: number = 0; + @State link_num215: number = 0; + @State link_num216: number = 0; + @State link_num217: number = 0; + @State link_num218: number = 0; + @State link_num219: number = 0; + @State link_num220: number = 0; + @State link_num221: number = 0; + @State link_num222: number = 0; + @State link_num223: number = 0; + @State link_num224: number = 0; + @State link_num225: number = 0; + @State link_num226: number = 0; + @State link_num227: number = 0; + @State link_num228: number = 0; + @State link_num229: number = 0; + @State link_num230: number = 0; + @State link_num231: number = 0; + @State link_num232: number = 0; + @State link_num233: number = 0; + @State link_num234: number = 0; + @State link_num235: number = 0; + @State link_num236: number = 0; + @State link_num237: number = 0; + @State link_num238: number = 0; + @State link_num239: number = 0; + @State link_num240: number = 0; + @State link_num241: number = 0; + @State link_num242: number = 0; + @State link_num243: number = 0; + @State link_num244: number = 0; + @State link_num245: number = 0; + @State link_num246: number = 0; + @State link_num247: number = 0; + @State link_num248: number = 0; + @State link_num249: number = 0; + @State link_num250: number = 0; + @State link_num251: number = 0; + @State link_num252: number = 0; + @State link_num253: number = 0; + @State link_num254: number = 0; + @State link_num255: number = 0; + @State link_num256: number = 0; + @State link_num257: number = 0; + @State link_num258: number = 0; + @State link_num259: number = 0; + @State link_num260: number = 0; + @State link_num261: number = 0; + @State link_num262: number = 0; + @State link_num263: number = 0; + @State link_num264: number = 0; + @State link_num265: number = 0; + @State link_num266: number = 0; + @State link_num267: number = 0; + @State link_num268: number = 0; + @State link_num269: number = 0; + @State link_num270: number = 0; + @State link_num271: number = 0; + @State link_num272: number = 0; + @State link_num273: number = 0; + @State link_num274: number = 0; + @State link_num275: number = 0; + @State link_num276: number = 0; + @State link_num277: number = 0; + @State link_num278: number = 0; + @State link_num279: number = 0; + @State link_num280: number = 0; + @State link_num281: number = 0; + @State link_num282: number = 0; + @State link_num283: number = 0; + @State link_num284: number = 0; + @State link_num285: number = 0; + @State link_num286: number = 0; + @State link_num287: number = 0; + @State link_num288: number = 0; + @State link_num289: number = 0; + @State link_num290: number = 0; + @State link_num291: number = 0; + @State link_num292: number = 0; + @State link_num293: number = 0; + @State link_num294: number = 0; + @State link_num295: number = 0; + @State link_num296: number = 0; + @State link_num297: number = 0; + @State link_num298: number = 0; + @State link_num299: number = 0; + @State link_num300: number = 0; + @State link_num301: number = 0; + @State link_num302: number = 0; + @State link_num303: number = 0; + @State link_num304: number = 0; + @State link_num305: number = 0; + @State link_num306: number = 0; + @State link_num307: number = 0; + @State link_num308: number = 0; + @State link_num309: number = 0; + @State link_num310: number = 0; + @State link_num311: number = 0; + @State link_num312: number = 0; + @State link_num313: number = 0; + @State link_num314: number = 0; + @State link_num315: number = 0; + @State link_num316: number = 0; + @State link_num317: number = 0; + @State link_num318: number = 0; + @State link_num319: number = 0; + @State link_num320: number = 0; + @State link_num321: number = 0; + @State link_num322: number = 0; + @State link_num323: number = 0; + @State link_num324: number = 0; + @State link_num325: number = 0; + @State link_num326: number = 0; + @State link_num327: number = 0; + @State link_num328: number = 0; + @State link_num329: number = 0; + @State link_num330: number = 0; + @State link_num331: number = 0; + @State link_num332: number = 0; + @State link_num333: number = 0; + @State link_num334: number = 0; + @State link_num335: number = 0; + @State link_num336: number = 0; + @State link_num337: number = 0; + @State link_num338: number = 0; + @State link_num339: number = 0; + @State link_num340: number = 0; + @State link_num341: number = 0; + @State link_num342: number = 0; + @State link_num343: number = 0; + @State link_num344: number = 0; + @State link_num345: number = 0; + @State link_num346: number = 0; + @State link_num347: number = 0; + @State link_num348: number = 0; + @State link_num349: number = 0; + @State link_num350: number = 0; + @State link_num351: number = 0; + @State link_num352: number = 0; + @State link_num353: number = 0; + @State link_num354: number = 0; + @State link_num355: number = 0; + @State link_num356: number = 0; + @State link_num357: number = 0; + @State link_num358: number = 0; + @State link_num359: number = 0; + @State link_num360: number = 0; + @State link_num361: number = 0; + @State link_num362: number = 0; + @State link_num363: number = 0; + @State link_num364: number = 0; + @State link_num365: number = 0; + @State link_num366: number = 0; + @State link_num367: number = 0; + @State link_num368: number = 0; + @State link_num369: number = 0; + @State link_num370: number = 0; + @State link_num371: number = 0; + @State link_num372: number = 0; + @State link_num373: number = 0; + @State link_num374: number = 0; + @State link_num375: number = 0; + @State link_num376: number = 0; + @State link_num377: number = 0; + @State link_num378: number = 0; + @State link_num379: number = 0; + @State link_num380: number = 0; + @State link_num381: number = 0; + @State link_num382: number = 0; + @State link_num383: number = 0; + @State link_num384: number = 0; + @State link_num385: number = 0; + @State link_num386: number = 0; + @State link_num387: number = 0; + @State link_num388: number = 0; + @State link_num389: number = 0; + @State link_num390: number = 0; + @State link_num391: number = 0; + @State link_num392: number = 0; + @State link_num393: number = 0; + @State link_num394: number = 0; + @State link_num395: number = 0; + @State link_num396: number = 0; + @State link_num397: number = 0; + @State link_num398: number = 0; + @State link_num399: number = 0; + @State link_num400: number = 0; + @State link_num401: number = 0; + @State link_num402: number = 0; + @State link_num403: number = 0; + @State link_num404: number = 0; + @State link_num405: number = 0; + @State link_num406: number = 0; + @State link_num407: number = 0; + @State link_num408: number = 0; + @State link_num409: number = 0; + @State link_num410: number = 0; + @State link_num411: number = 0; + @State link_num412: number = 0; + @State link_num413: number = 0; + @State link_num414: number = 0; + @State link_num415: number = 0; + @State link_num416: number = 0; + @State link_num417: number = 0; + @State link_num418: number = 0; + @State link_num419: number = 0; + @State link_num420: number = 0; + @State link_num421: number = 0; + @State link_num422: number = 0; + @State link_num423: number = 0; + @State link_num424: number = 0; + @State link_num425: number = 0; + @State link_num426: number = 0; + @State link_num427: number = 0; + @State link_num428: number = 0; + @State link_num429: number = 0; + @State link_num430: number = 0; + @State link_num431: number = 0; + @State link_num432: number = 0; + @State link_num433: number = 0; + @State link_num434: number = 0; + @State link_num435: number = 0; + @State link_num436: number = 0; + @State link_num437: number = 0; + @State link_num438: number = 0; + @State link_num439: number = 0; + @State link_num440: number = 0; + @State link_num441: number = 0; + @State link_num442: number = 0; + @State link_num443: number = 0; + @State link_num444: number = 0; + @State link_num445: number = 0; + @State link_num446: number = 0; + @State link_num447: number = 0; + @State link_num448: number = 0; + @State link_num449: number = 0; + @State link_num450: number = 0; + @State link_num451: number = 0; + @State link_num452: number = 0; + @State link_num453: number = 0; + @State link_num454: number = 0; + @State link_num455: number = 0; + @State link_num456: number = 0; + @State link_num457: number = 0; + @State link_num458: number = 0; + @State link_num459: number = 0; + @State link_num460: number = 0; + @State link_num461: number = 0; + @State link_num462: number = 0; + @State link_num463: number = 0; + @State link_num464: number = 0; + @State link_num465: number = 0; + @State link_num466: number = 0; + @State link_num467: number = 0; + @State link_num468: number = 0; + @State link_num469: number = 0; + @State link_num470: number = 0; + @State link_num471: number = 0; + @State link_num472: number = 0; + @State link_num473: number = 0; + @State link_num474: number = 0; + @State link_num475: number = 0; + @State link_num476: number = 0; + @State link_num477: number = 0; + @State link_num478: number = 0; + @State link_num479: number = 0; + @State link_num480: number = 0; + @State link_num481: number = 0; + @State link_num482: number = 0; + @State link_num483: number = 0; + @State link_num484: number = 0; + @State link_num485: number = 0; + @State link_num486: number = 0; + @State link_num487: number = 0; + @State link_num488: number = 0; + @State link_num489: number = 0; + @State link_num490: number = 0; + @State link_num491: number = 0; + @State link_num492: number = 0; + @State link_num493: number = 0; + @State link_num494: number = 0; + @State link_num495: number = 0; + @State link_num496: number = 0; + @State link_num497: number = 0; + @State link_num498: number = 0; + @State link_num499: number = 0; + @State link_num500: number = 0; + @State link_num501: number = 0; + @State link_num502: number = 0; + @State link_num503: number = 0; + @State link_num504: number = 0; + @State link_num505: number = 0; + @State link_num506: number = 0; + @State link_num507: number = 0; + @State link_num508: number = 0; + @State link_num509: number = 0; + @State link_num510: number = 0; + @State link_num511: number = 0; + @State link_num512: number = 0; + @State link_num513: number = 0; + @State link_num514: number = 0; + @State link_num515: number = 0; + @State link_num516: number = 0; + @State link_num517: number = 0; + @State link_num518: number = 0; + @State link_num519: number = 0; + @State link_num520: number = 0; + @State link_num521: number = 0; + @State link_num522: number = 0; + @State link_num523: number = 0; + @State link_num524: number = 0; + @State link_num525: number = 0; + @State link_num526: number = 0; + @State link_num527: number = 0; + @State link_num528: number = 0; + @State link_num529: number = 0; + @State link_num530: number = 0; + @State link_num531: number = 0; + @State link_num532: number = 0; + @State link_num533: number = 0; + @State link_num534: number = 0; + @State link_num535: number = 0; + @State link_num536: number = 0; + @State link_num537: number = 0; + @State link_num538: number = 0; + @State link_num539: number = 0; + @State link_num540: number = 0; + @State link_num541: number = 0; + @State link_num542: number = 0; + @State link_num543: number = 0; + @State link_num544: number = 0; + @State link_num545: number = 0; + @State link_num546: number = 0; + @State link_num547: number = 0; + @State link_num548: number = 0; + @State link_num549: number = 0; + @State link_num550: number = 0; + @State link_num551: number = 0; + @State link_num552: number = 0; + @State link_num553: number = 0; + @State link_num554: number = 0; + @State link_num555: number = 0; + @State link_num556: number = 0; + @State link_num557: number = 0; + @State link_num558: number = 0; + @State link_num559: number = 0; + @State link_num560: number = 0; + @State link_num561: number = 0; + @State link_num562: number = 0; + @State link_num563: number = 0; + @State link_num564: number = 0; + @State link_num565: number = 0; + @State link_num566: number = 0; + @State link_num567: number = 0; + @State link_num568: number = 0; + @State link_num569: number = 0; + @State link_num570: number = 0; + @State link_num571: number = 0; + @State link_num572: number = 0; + @State link_num573: number = 0; + @State link_num574: number = 0; + @State link_num575: number = 0; + @State link_num576: number = 0; + @State link_num577: number = 0; + @State link_num578: number = 0; + @State link_num579: number = 0; + @State link_num580: number = 0; + @State link_num581: number = 0; + @State link_num582: number = 0; + @State link_num583: number = 0; + @State link_num584: number = 0; + @State link_num585: number = 0; + @State link_num586: number = 0; + @State link_num587: number = 0; + @State link_num588: number = 0; + @State link_num589: number = 0; + @State link_num590: number = 0; + @State link_num591: number = 0; + @State link_num592: number = 0; + @State link_num593: number = 0; + @State link_num594: number = 0; + @State link_num595: number = 0; + @State link_num596: number = 0; + @State link_num597: number = 0; + @State link_num598: number = 0; + @State link_num599: number = 0; + @State link_num600: number = 0; + @State link_num601: number = 0; + @State link_num602: number = 0; + @State link_num603: number = 0; + @State link_num604: number = 0; + @State link_num605: number = 0; + @State link_num606: number = 0; + @State link_num607: number = 0; + @State link_num608: number = 0; + @State link_num609: number = 0; + @State link_num610: number = 0; + @State link_num611: number = 0; + @State link_num612: number = 0; + @State link_num613: number = 0; + @State link_num614: number = 0; + @State link_num615: number = 0; + @State link_num616: number = 0; + @State link_num617: number = 0; + @State link_num618: number = 0; + @State link_num619: number = 0; + @State link_num620: number = 0; + @State link_num621: number = 0; + @State link_num622: number = 0; + @State link_num623: number = 0; + @State link_num624: number = 0; + @State link_num625: number = 0; + @State link_num626: number = 0; + @State link_num627: number = 0; + @State link_num628: number = 0; + @State link_num629: number = 0; + @State link_num630: number = 0; + @State link_num631: number = 0; + @State link_num632: number = 0; + @State link_num633: number = 0; + @State link_num634: number = 0; + @State link_num635: number = 0; + @State link_num636: number = 0; + @State link_num637: number = 0; + @State link_num638: number = 0; + @State link_num639: number = 0; + @State link_num640: number = 0; + @State link_num641: number = 0; + @State link_num642: number = 0; + @State link_num643: number = 0; + @State link_num644: number = 0; + @State link_num645: number = 0; + @State link_num646: number = 0; + @State link_num647: number = 0; + @State link_num648: number = 0; + @State link_num649: number = 0; + @State link_num650: number = 0; + @State link_num651: number = 0; + @State link_num652: number = 0; + @State link_num653: number = 0; + @State link_num654: number = 0; + @State link_num655: number = 0; + @State link_num656: number = 0; + @State link_num657: number = 0; + @State link_num658: number = 0; + @State link_num659: number = 0; + @State link_num660: number = 0; + @State link_num661: number = 0; + @State link_num662: number = 0; + @State link_num663: number = 0; + @State link_num664: number = 0; + @State link_num665: number = 0; + @State link_num666: number = 0; + @State link_num667: number = 0; + @State link_num668: number = 0; + @State link_num669: number = 0; + @State link_num670: number = 0; + @State link_num671: number = 0; + @State link_num672: number = 0; + @State link_num673: number = 0; + @State link_num674: number = 0; + @State link_num675: number = 0; + @State link_num676: number = 0; + @State link_num677: number = 0; + @State link_num678: number = 0; + @State link_num679: number = 0; + @State link_num680: number = 0; + @State link_num681: number = 0; + @State link_num682: number = 0; + @State link_num683: number = 0; + @State link_num684: number = 0; + @State link_num685: number = 0; + @State link_num686: number = 0; + @State link_num687: number = 0; + @State link_num688: number = 0; + @State link_num689: number = 0; + @State link_num690: number = 0; + @State link_num691: number = 0; + @State link_num692: number = 0; + @State link_num693: number = 0; + @State link_num694: number = 0; + @State link_num695: number = 0; + @State link_num696: number = 0; + @State link_num697: number = 0; + @State link_num698: number = 0; + @State link_num699: number = 0; + @State link_num700: number = 0; + @State link_num701: number = 0; + @State link_num702: number = 0; + @State link_num703: number = 0; + @State link_num704: number = 0; + @State link_num705: number = 0; + @State link_num706: number = 0; + @State link_num707: number = 0; + @State link_num708: number = 0; + @State link_num709: number = 0; + @State link_num710: number = 0; + @State link_num711: number = 0; + @State link_num712: number = 0; + @State link_num713: number = 0; + @State link_num714: number = 0; + @State link_num715: number = 0; + @State link_num716: number = 0; + @State link_num717: number = 0; + @State link_num718: number = 0; + @State link_num719: number = 0; + @State link_num720: number = 0; + @State link_num721: number = 0; + @State link_num722: number = 0; + @State link_num723: number = 0; + @State link_num724: number = 0; + @State link_num725: number = 0; + @State link_num726: number = 0; + @State link_num727: number = 0; + @State link_num728: number = 0; + @State link_num729: number = 0; + @State link_num730: number = 0; + @State link_num731: number = 0; + @State link_num732: number = 0; + @State link_num733: number = 0; + @State link_num734: number = 0; + @State link_num735: number = 0; + @State link_num736: number = 0; + @State link_num737: number = 0; + @State link_num738: number = 0; + @State link_num739: number = 0; + @State link_num740: number = 0; + @State link_num741: number = 0; + @State link_num742: number = 0; + @State link_num743: number = 0; + @State link_num744: number = 0; + @State link_num745: number = 0; + @State link_num746: number = 0; + @State link_num747: number = 0; + @State link_num748: number = 0; + @State link_num749: number = 0; + @State link_num750: number = 0; + @State link_num751: number = 0; + @State link_num752: number = 0; + @State link_num753: number = 0; + @State link_num754: number = 0; + @State link_num755: number = 0; + @State link_num756: number = 0; + @State link_num757: number = 0; + @State link_num758: number = 0; + @State link_num759: number = 0; + @State link_num760: number = 0; + @State link_num761: number = 0; + @State link_num762: number = 0; + @State link_num763: number = 0; + @State link_num764: number = 0; + @State link_num765: number = 0; + @State link_num766: number = 0; + @State link_num767: number = 0; + @State link_num768: number = 0; + @State link_num769: number = 0; + @State link_num770: number = 0; + @State link_num771: number = 0; + @State link_num772: number = 0; + @State link_num773: number = 0; + @State link_num774: number = 0; + @State link_num775: number = 0; + @State link_num776: number = 0; + @State link_num777: number = 0; + @State link_num778: number = 0; + @State link_num779: number = 0; + @State link_num780: number = 0; + @State link_num781: number = 0; + @State link_num782: number = 0; + @State link_num783: number = 0; + @State link_num784: number = 0; + @State link_num785: number = 0; + @State link_num786: number = 0; + @State link_num787: number = 0; + @State link_num788: number = 0; + @State link_num789: number = 0; + @State link_num790: number = 0; + @State link_num791: number = 0; + @State link_num792: number = 0; + @State link_num793: number = 0; + @State link_num794: number = 0; + @State link_num795: number = 0; + @State link_num796: number = 0; + @State link_num797: number = 0; + @State link_num798: number = 0; + @State link_num799: number = 0; + @State link_num800: number = 0; + @State link_num801: number = 0; + @State link_num802: number = 0; + @State link_num803: number = 0; + @State link_num804: number = 0; + @State link_num805: number = 0; + @State link_num806: number = 0; + @State link_num807: number = 0; + @State link_num808: number = 0; + @State link_num809: number = 0; + @State link_num810: number = 0; + @State link_num811: number = 0; + @State link_num812: number = 0; + @State link_num813: number = 0; + @State link_num814: number = 0; + @State link_num815: number = 0; + @State link_num816: number = 0; + @State link_num817: number = 0; + @State link_num818: number = 0; + @State link_num819: number = 0; + @State link_num820: number = 0; + @State link_num821: number = 0; + @State link_num822: number = 0; + @State link_num823: number = 0; + @State link_num824: number = 0; + @State link_num825: number = 0; + @State link_num826: number = 0; + @State link_num827: number = 0; + @State link_num828: number = 0; + @State link_num829: number = 0; + @State link_num830: number = 0; + @State link_num831: number = 0; + @State link_num832: number = 0; + @State link_num833: number = 0; + @State link_num834: number = 0; + @State link_num835: number = 0; + @State link_num836: number = 0; + @State link_num837: number = 0; + @State link_num838: number = 0; + @State link_num839: number = 0; + @State link_num840: number = 0; + @State link_num841: number = 0; + @State link_num842: number = 0; + @State link_num843: number = 0; + @State link_num844: number = 0; + @State link_num845: number = 0; + @State link_num846: number = 0; + @State link_num847: number = 0; + @State link_num848: number = 0; + @State link_num849: number = 0; + @State link_num850: number = 0; + @State link_num851: number = 0; + @State link_num852: number = 0; + @State link_num853: number = 0; + @State link_num854: number = 0; + @State link_num855: number = 0; + @State link_num856: number = 0; + @State link_num857: number = 0; + @State link_num858: number = 0; + @State link_num859: number = 0; + @State link_num860: number = 0; + @State link_num861: number = 0; + @State link_num862: number = 0; + @State link_num863: number = 0; + @State link_num864: number = 0; + @State link_num865: number = 0; + @State link_num866: number = 0; + @State link_num867: number = 0; + @State link_num868: number = 0; + @State link_num869: number = 0; + @State link_num870: number = 0; + @State link_num871: number = 0; + @State link_num872: number = 0; + @State link_num873: number = 0; + @State link_num874: number = 0; + @State link_num875: number = 0; + @State link_num876: number = 0; + @State link_num877: number = 0; + @State link_num878: number = 0; + @State link_num879: number = 0; + @State link_num880: number = 0; + @State link_num881: number = 0; + @State link_num882: number = 0; + @State link_num883: number = 0; + @State link_num884: number = 0; + @State link_num885: number = 0; + @State link_num886: number = 0; + @State link_num887: number = 0; + @State link_num888: number = 0; + @State link_num889: number = 0; + @State link_num890: number = 0; + @State link_num891: number = 0; + @State link_num892: number = 0; + @State link_num893: number = 0; + @State link_num894: number = 0; + @State link_num895: number = 0; + @State link_num896: number = 0; + @State link_num897: number = 0; + @State link_num898: number = 0; + @State link_num899: number = 0; + @State link_num900: number = 0; + @State link_num901: number = 0; + @State link_num902: number = 0; + @State link_num903: number = 0; + @State link_num904: number = 0; + @State link_num905: number = 0; + @State link_num906: number = 0; + @State link_num907: number = 0; + @State link_num908: number = 0; + @State link_num909: number = 0; + @State link_num910: number = 0; + @State link_num911: number = 0; + @State link_num912: number = 0; + @State link_num913: number = 0; + @State link_num914: number = 0; + @State link_num915: number = 0; + @State link_num916: number = 0; + @State link_num917: number = 0; + @State link_num918: number = 0; + @State link_num919: number = 0; + @State link_num920: number = 0; + @State link_num921: number = 0; + @State link_num922: number = 0; + @State link_num923: number = 0; + @State link_num924: number = 0; + @State link_num925: number = 0; + @State link_num926: number = 0; + @State link_num927: number = 0; + @State link_num928: number = 0; + @State link_num929: number = 0; + @State link_num930: number = 0; + @State link_num931: number = 0; + @State link_num932: number = 0; + @State link_num933: number = 0; + @State link_num934: number = 0; + @State link_num935: number = 0; + @State link_num936: number = 0; + @State link_num937: number = 0; + @State link_num938: number = 0; + @State link_num939: number = 0; + @State link_num940: number = 0; + @State link_num941: number = 0; + @State link_num942: number = 0; + @State link_num943: number = 0; + @State link_num944: number = 0; + @State link_num945: number = 0; + @State link_num946: number = 0; + @State link_num947: number = 0; + @State link_num948: number = 0; + @State link_num949: number = 0; + @State link_num950: number = 0; + @State link_num951: number = 0; + @State link_num952: number = 0; + @State link_num953: number = 0; + @State link_num954: number = 0; + @State link_num955: number = 0; + @State link_num956: number = 0; + @State link_num957: number = 0; + @State link_num958: number = 0; + @State link_num959: number = 0; + @State link_num960: number = 0; + @State link_num961: number = 0; + @State link_num962: number = 0; + @State link_num963: number = 0; + @State link_num964: number = 0; + @State link_num965: number = 0; + @State link_num966: number = 0; + @State link_num967: number = 0; + @State link_num968: number = 0; + @State link_num969: number = 0; + @State link_num970: number = 0; + @State link_num971: number = 0; + @State link_num972: number = 0; + @State link_num973: number = 0; + @State link_num974: number = 0; + @State link_num975: number = 0; + @State link_num976: number = 0; + @State link_num977: number = 0; + @State link_num978: number = 0; + @State link_num979: number = 0; + @State link_num980: number = 0; + @State link_num981: number = 0; + @State link_num982: number = 0; + @State link_num983: number = 0; + @State link_num984: number = 0; + @State link_num985: number = 0; + @State link_num986: number = 0; + @State link_num987: number = 0; + @State link_num988: number = 0; + @State link_num989: number = 0; + @State link_num990: number = 0; + @State link_num991: number = 0; + @State link_num992: number = 0; + @State link_num993: number = 0; + @State link_num994: number = 0; + @State link_num995: number = 0; + @State link_num996: number = 0; + @State link_num997: number = 0; + @State link_num998: number = 0; + @State link_num999: number = 0; + @State link_num1000: number = 0; + @State link_num1001: number = 0; + @State link_num1002: number = 0; + @State link_num1003: number = 0; + @State link_num1004: number = 0; + @State link_num1005: number = 0; + @State link_num1006: number = 0; + @State link_num1007: number = 0; + @State link_num1008: number = 0; + @State link_num1009: number = 0; + @State link_num1010: number = 0; + @State link_num1011: number = 0; + @State link_num1012: number = 0; + @State link_num1013: number = 0; + @State link_num1014: number = 0; + @State link_num1015: number = 0; + @State link_num1016: number = 0; + @State link_num1017: number = 0; + @State link_num1018: number = 0; + @State link_num1019: number = 0; + @State link_num1020: number = 0; + @State link_num1021: number = 0; + @State link_num1022: number = 0; + @State link_num1023: number = 0; + @State link_num1024: number = 0; + @State link_num1025: number = 0; + @State link_num1026: number = 0; + @State link_num1027: number = 0; + @State link_num1028: number = 0; + @State link_num1029: number = 0; + @State link_num1030: number = 0; + @State link_num1031: number = 0; + @State link_num1032: number = 0; + @State link_num1033: number = 0; + @State link_num1034: number = 0; + @State link_num1035: number = 0; + @State link_num1036: number = 0; + @State link_num1037: number = 0; + @State link_num1038: number = 0; + @State link_num1039: number = 0; + @State link_num1040: number = 0; + @State link_num1041: number = 0; + @State link_num1042: number = 0; + @State link_num1043: number = 0; + @State link_num1044: number = 0; + @State link_num1045: number = 0; + @State link_num1046: number = 0; + @State link_num1047: number = 0; + @State link_num1048: number = 0; + @State link_num1049: number = 0; + @State link_num1050: number = 0; + @State link_num1051: number = 0; + @State link_num1052: number = 0; + @State link_num1053: number = 0; + @State link_num1054: number = 0; + @State link_num1055: number = 0; + @State link_num1056: number = 0; + @State link_num1057: number = 0; + @State link_num1058: number = 0; + @State link_num1059: number = 0; + @State link_num1060: number = 0; + @State link_num1061: number = 0; + @State link_num1062: number = 0; + @State link_num1063: number = 0; + @State link_num1064: number = 0; + @State link_num1065: number = 0; + @State link_num1066: number = 0; + @State link_num1067: number = 0; + @State link_num1068: number = 0; + @State link_num1069: number = 0; + @State link_num1070: number = 0; + @State link_num1071: number = 0; + @State link_num1072: number = 0; + @State link_num1073: number = 0; + @State link_num1074: number = 0; + @State link_num1075: number = 0; + @State link_num1076: number = 0; + @State link_num1077: number = 0; + @State link_num1078: number = 0; + @State link_num1079: number = 0; + @State link_num1080: number = 0; + @State link_num1081: number = 0; + @State link_num1082: number = 0; + @State link_num1083: number = 0; + @State link_num1084: number = 0; + @State link_num1085: number = 0; + @State link_num1086: number = 0; + @State link_num1087: number = 0; + @State link_num1088: number = 0; + @State link_num1089: number = 0; + @State link_num1090: number = 0; + @State link_num1091: number = 0; + @State link_num1092: number = 0; + @State link_num1093: number = 0; + @State link_num1094: number = 0; + @State link_num1095: number = 0; + @State link_num1096: number = 0; + @State link_num1097: number = 0; + @State link_num1098: number = 0; + @State link_num1099: number = 0; + @State link_num1100: number = 0; + @State link_num1101: number = 0; + @State link_num1102: number = 0; + @State link_num1103: number = 0; + @State link_num1104: number = 0; + @State link_num1105: number = 0; + @State link_num1106: number = 0; + @State link_num1107: number = 0; + @State link_num1108: number = 0; + @State link_num1109: number = 0; + @State link_num1110: number = 0; + @State link_num1111: number = 0; + @State link_num1112: number = 0; + @State link_num1113: number = 0; + @State link_num1114: number = 0; + @State link_num1115: number = 0; + @State link_num1116: number = 0; + @State link_num1117: number = 0; + @State link_num1118: number = 0; + @State link_num1119: number = 0; + @State link_num1120: number = 0; + @State link_num1121: number = 0; + @State link_num1122: number = 0; + @State link_num1123: number = 0; + @State link_num1124: number = 0; + @State link_num1125: number = 0; + @State link_num1126: number = 0; + @State link_num1127: number = 0; + @State link_num1128: number = 0; + @State link_num1129: number = 0; + @State link_num1130: number = 0; + @State link_num1131: number = 0; + @State link_num1132: number = 0; + @State link_num1133: number = 0; + @State link_num1134: number = 0; + @State link_num1135: number = 0; + @State link_num1136: number = 0; + @State link_num1137: number = 0; + @State link_num1138: number = 0; + @State link_num1139: number = 0; + @State link_num1140: number = 0; + @State link_num1141: number = 0; + @State link_num1142: number = 0; + @State link_num1143: number = 0; + @State link_num1144: number = 0; + @State link_num1145: number = 0; + @State link_num1146: number = 0; + @State link_num1147: number = 0; + @State link_num1148: number = 0; + @State link_num1149: number = 0; + @State link_num1150: number = 0; + @State link_num1151: number = 0; + @State link_num1152: number = 0; + @State link_num1153: number = 0; + @State link_num1154: number = 0; + @State link_num1155: number = 0; + @State link_num1156: number = 0; + @State link_num1157: number = 0; + @State link_num1158: number = 0; + @State link_num1159: number = 0; + @State link_num1160: number = 0; + @State link_num1161: number = 0; + @State link_num1162: number = 0; + @State link_num1163: number = 0; + @State link_num1164: number = 0; + @State link_num1165: number = 0; + @State link_num1166: number = 0; + @State link_num1167: number = 0; + @State link_num1168: number = 0; + @State link_num1169: number = 0; + @State link_num1170: number = 0; + @State link_num1171: number = 0; + @State link_num1172: number = 0; + @State link_num1173: number = 0; + @State link_num1174: number = 0; + @State link_num1175: number = 0; + @State link_num1176: number = 0; + @State link_num1177: number = 0; + @State link_num1178: number = 0; + @State link_num1179: number = 0; + @State link_num1180: number = 0; + @State link_num1181: number = 0; + @State link_num1182: number = 0; + @State link_num1183: number = 0; + @State link_num1184: number = 0; + @State link_num1185: number = 0; + @State link_num1186: number = 0; + @State link_num1187: number = 0; + @State link_num1188: number = 0; + @State link_num1189: number = 0; + @State link_num1190: number = 0; + @State link_num1191: number = 0; + @State link_num1192: number = 0; + @State link_num1193: number = 0; + @State link_num1194: number = 0; + @State link_num1195: number = 0; + @State link_num1196: number = 0; + @State link_num1197: number = 0; + @State link_num1198: number = 0; + @State link_num1199: number = 0; + @State link_num1200: number = 0; + @State link_num1201: number = 0; + @State link_num1202: number = 0; + @State link_num1203: number = 0; + @State link_num1204: number = 0; + @State link_num1205: number = 0; + @State link_num1206: number = 0; + @State link_num1207: number = 0; + @State link_num1208: number = 0; + @State link_num1209: number = 0; + @State link_num1210: number = 0; + @State link_num1211: number = 0; + @State link_num1212: number = 0; + @State link_num1213: number = 0; + @State link_num1214: number = 0; + @State link_num1215: number = 0; + @State link_num1216: number = 0; + @State link_num1217: number = 0; + @State link_num1218: number = 0; + @State link_num1219: number = 0; + @State link_num1220: number = 0; + @State link_num1221: number = 0; + @State link_num1222: number = 0; + @State link_num1223: number = 0; + @State link_num1224: number = 0; + @State link_num1225: number = 0; + @State link_num1226: number = 0; + @State link_num1227: number = 0; + @State link_num1228: number = 0; + @State link_num1229: number = 0; + @State link_num1230: number = 0; + @State link_num1231: number = 0; + @State link_num1232: number = 0; + @State link_num1233: number = 0; + @State link_num1234: number = 0; + @State link_num1235: number = 0; + @State link_num1236: number = 0; + @State link_num1237: number = 0; + @State link_num1238: number = 0; + @State link_num1239: number = 0; + @State link_num1240: number = 0; + @State link_num1241: number = 0; + @State link_num1242: number = 0; + @State link_num1243: number = 0; + @State link_num1244: number = 0; + @State link_num1245: number = 0; + @State link_num1246: number = 0; + @State link_num1247: number = 0; + @State link_num1248: number = 0; + @State link_num1249: number = 0; + @State link_num1250: number = 0; + @State link_num1251: number = 0; + @State link_num1252: number = 0; + @State link_num1253: number = 0; + @State link_num1254: number = 0; + @State link_num1255: number = 0; + @State link_num1256: number = 0; + @State link_num1257: number = 0; + @State link_num1258: number = 0; + @State link_num1259: number = 0; + @State link_num1260: number = 0; + @State link_num1261: number = 0; + @State link_num1262: number = 0; + @State link_num1263: number = 0; + @State link_num1264: number = 0; + @State link_num1265: number = 0; + @State link_num1266: number = 0; + @State link_num1267: number = 0; + @State link_num1268: number = 0; + @State link_num1269: number = 0; + @State link_num1270: number = 0; + @State link_num1271: number = 0; + @State link_num1272: number = 0; + @State link_num1273: number = 0; + @State link_num1274: number = 0; + @State link_num1275: number = 0; + @State link_num1276: number = 0; + @State link_num1277: number = 0; + @State link_num1278: number = 0; + @State link_num1279: number = 0; + @State link_num1280: number = 0; + @State link_num1281: number = 0; + @State link_num1282: number = 0; + @State link_num1283: number = 0; + @State link_num1284: number = 0; + @State link_num1285: number = 0; + @State link_num1286: number = 0; + @State link_num1287: number = 0; + @State link_num1288: number = 0; + @State link_num1289: number = 0; + @State link_num1290: number = 0; + @State link_num1291: number = 0; + @State link_num1292: number = 0; + @State link_num1293: number = 0; + @State link_num1294: number = 0; + @State link_num1295: number = 0; + @State link_num1296: number = 0; + @State link_num1297: number = 0; + @State link_num1298: number = 0; + @State link_num1299: number = 0; + @State link_num1300: number = 0; + @State link_num1301: number = 0; + @State link_num1302: number = 0; + @State link_num1303: number = 0; + @State link_num1304: number = 0; + @State link_num1305: number = 0; + @State link_num1306: number = 0; + @State link_num1307: number = 0; + @State link_num1308: number = 0; + @State link_num1309: number = 0; + @State link_num1310: number = 0; + @State link_num1311: number = 0; + @State link_num1312: number = 0; + @State link_num1313: number = 0; + @State link_num1314: number = 0; + @State link_num1315: number = 0; + @State link_num1316: number = 0; + @State link_num1317: number = 0; + @State link_num1318: number = 0; + @State link_num1319: number = 0; + @State link_num1320: number = 0; + @State link_num1321: number = 0; + @State link_num1322: number = 0; + @State link_num1323: number = 0; + @State link_num1324: number = 0; + @State link_num1325: number = 0; + @State link_num1326: number = 0; + @State link_num1327: number = 0; + @State link_num1328: number = 0; + @State link_num1329: number = 0; + @State link_num1330: number = 0; + @State link_num1331: number = 0; + @State link_num1332: number = 0; + @State link_num1333: number = 0; + @State link_num1334: number = 0; + @State link_num1335: number = 0; + @State link_num1336: number = 0; + @State link_num1337: number = 0; + @State link_num1338: number = 0; + @State link_num1339: number = 0; + @State link_num1340: number = 0; + @State link_num1341: number = 0; + @State link_num1342: number = 0; + @State link_num1343: number = 0; + @State link_num1344: number = 0; + @State link_num1345: number = 0; + @State link_num1346: number = 0; + @State link_num1347: number = 0; + @State link_num1348: number = 0; + @State link_num1349: number = 0; + @State link_num1350: number = 0; + @State link_num1351: number = 0; + @State link_num1352: number = 0; + @State link_num1353: number = 0; + @State link_num1354: number = 0; + @State link_num1355: number = 0; + @State link_num1356: number = 0; + @State link_num1357: number = 0; + @State link_num1358: number = 0; + @State link_num1359: number = 0; + @State link_num1360: number = 0; + @State link_num1361: number = 0; + @State link_num1362: number = 0; + @State link_num1363: number = 0; + @State link_num1364: number = 0; + @State link_num1365: number = 0; + @State link_num1366: number = 0; + @State link_num1367: number = 0; + @State link_num1368: number = 0; + @State link_num1369: number = 0; + @State link_num1370: number = 0; + @State link_num1371: number = 0; + @State link_num1372: number = 0; + @State link_num1373: number = 0; + @State link_num1374: number = 0; + @State link_num1375: number = 0; + @State link_num1376: number = 0; + @State link_num1377: number = 0; + @State link_num1378: number = 0; + @State link_num1379: number = 0; + @State link_num1380: number = 0; + @State link_num1381: number = 0; + @State link_num1382: number = 0; + @State link_num1383: number = 0; + @State link_num1384: number = 0; + @State link_num1385: number = 0; + @State link_num1386: number = 0; + @State link_num1387: number = 0; + @State link_num1388: number = 0; + @State link_num1389: number = 0; + @State link_num1390: number = 0; + @State link_num1391: number = 0; + @State link_num1392: number = 0; + @State link_num1393: number = 0; + @State link_num1394: number = 0; + @State link_num1395: number = 0; + @State link_num1396: number = 0; + @State link_num1397: number = 0; + @State link_num1398: number = 0; + @State link_num1399: number = 0; + @State link_num1400: number = 0; + @State link_num1401: number = 0; + @State link_num1402: number = 0; + @State link_num1403: number = 0; + @State link_num1404: number = 0; + @State link_num1405: number = 0; + @State link_num1406: number = 0; + @State link_num1407: number = 0; + @State link_num1408: number = 0; + @State link_num1409: number = 0; + @State link_num1410: number = 0; + @State link_num1411: number = 0; + @State link_num1412: number = 0; + @State link_num1413: number = 0; + @State link_num1414: number = 0; + @State link_num1415: number = 0; + @State link_num1416: number = 0; + @State link_num1417: number = 0; + @State link_num1418: number = 0; + @State link_num1419: number = 0; + @State link_num1420: number = 0; + @State link_num1421: number = 0; + @State link_num1422: number = 0; + @State link_num1423: number = 0; + @State link_num1424: number = 0; + @State link_num1425: number = 0; + @State link_num1426: number = 0; + @State link_num1427: number = 0; + @State link_num1428: number = 0; + @State link_num1429: number = 0; + @State link_num1430: number = 0; + @State link_num1431: number = 0; + @State link_num1432: number = 0; + @State link_num1433: number = 0; + @State link_num1434: number = 0; + @State link_num1435: number = 0; + @State link_num1436: number = 0; + @State link_num1437: number = 0; + @State link_num1438: number = 0; + @State link_num1439: number = 0; + @State link_num1440: number = 0; + @State link_num1441: number = 0; + @State link_num1442: number = 0; + @State link_num1443: number = 0; + @State link_num1444: number = 0; + @State link_num1445: number = 0; + @State link_num1446: number = 0; + @State link_num1447: number = 0; + @State link_num1448: number = 0; + @State link_num1449: number = 0; + @State link_num1450: number = 0; + @State link_num1451: number = 0; + @State link_num1452: number = 0; + @State link_num1453: number = 0; + @State link_num1454: number = 0; + @State link_num1455: number = 0; + @State link_num1456: number = 0; + @State link_num1457: number = 0; + @State link_num1458: number = 0; + @State link_num1459: number = 0; + @State link_num1460: number = 0; + @State link_num1461: number = 0; + @State link_num1462: number = 0; + @State link_num1463: number = 0; + @State link_num1464: number = 0; + @State link_num1465: number = 0; + @State link_num1466: number = 0; + @State link_num1467: number = 0; + @State link_num1468: number = 0; + @State link_num1469: number = 0; + @State link_num1470: number = 0; + @State link_num1471: number = 0; + @State link_num1472: number = 0; + @State link_num1473: number = 0; + @State link_num1474: number = 0; + @State link_num1475: number = 0; + @State link_num1476: number = 0; + @State link_num1477: number = 0; + @State link_num1478: number = 0; + @State link_num1479: number = 0; + @State link_num1480: number = 0; + @State link_num1481: number = 0; + @State link_num1482: number = 0; + @State link_num1483: number = 0; + @State link_num1484: number = 0; + @State link_num1485: number = 0; + @State link_num1486: number = 0; + @State link_num1487: number = 0; + @State link_num1488: number = 0; + @State link_num1489: number = 0; + @State link_num1490: number = 0; + @State link_num1491: number = 0; + @State link_num1492: number = 0; + @State link_num1493: number = 0; + @State link_num1494: number = 0; + @State link_num1495: number = 0; + @State link_num1496: number = 0; + @State link_num1497: number = 0; + @State link_num1498: number = 0; + @State link_num1499: number = 0; + @State link_num1500: number = 0; + @State link_num1501: number = 0; + @State link_num1502: number = 0; + @State link_num1503: number = 0; + @State link_num1504: number = 0; + @State link_num1505: number = 0; + @State link_num1506: number = 0; + @State link_num1507: number = 0; + @State link_num1508: number = 0; + @State link_num1509: number = 0; + @State link_num1510: number = 0; + @State link_num1511: number = 0; + @State link_num1512: number = 0; + @State link_num1513: number = 0; + @State link_num1514: number = 0; + @State link_num1515: number = 0; + @State link_num1516: number = 0; + @State link_num1517: number = 0; + @State link_num1518: number = 0; + @State link_num1519: number = 0; + @State link_num1520: number = 0; + @State link_num1521: number = 0; + @State link_num1522: number = 0; + @State link_num1523: number = 0; + @State link_num1524: number = 0; + @State link_num1525: number = 0; + @State link_num1526: number = 0; + @State link_num1527: number = 0; + @State link_num1528: number = 0; + @State link_num1529: number = 0; + @State link_num1530: number = 0; + @State link_num1531: number = 0; + @State link_num1532: number = 0; + @State link_num1533: number = 0; + @State link_num1534: number = 0; + @State link_num1535: number = 0; + @State link_num1536: number = 0; + @State link_num1537: number = 0; + @State link_num1538: number = 0; + @State link_num1539: number = 0; + @State link_num1540: number = 0; + @State link_num1541: number = 0; + @State link_num1542: number = 0; + @State link_num1543: number = 0; + @State link_num1544: number = 0; + @State link_num1545: number = 0; + @State link_num1546: number = 0; + @State link_num1547: number = 0; + @State link_num1548: number = 0; + @State link_num1549: number = 0; + @State link_num1550: number = 0; + @State link_num1551: number = 0; + @State link_num1552: number = 0; + @State link_num1553: number = 0; + @State link_num1554: number = 0; + @State link_num1555: number = 0; + @State link_num1556: number = 0; + @State link_num1557: number = 0; + @State link_num1558: number = 0; + @State link_num1559: number = 0; + @State link_num1560: number = 0; + @State link_num1561: number = 0; + @State link_num1562: number = 0; + @State link_num1563: number = 0; + @State link_num1564: number = 0; + @State link_num1565: number = 0; + @State link_num1566: number = 0; + @State link_num1567: number = 0; + @State link_num1568: number = 0; + @State link_num1569: number = 0; + @State link_num1570: number = 0; + @State link_num1571: number = 0; + @State link_num1572: number = 0; + @State link_num1573: number = 0; + @State link_num1574: number = 0; + @State link_num1575: number = 0; + @State link_num1576: number = 0; + @State link_num1577: number = 0; + @State link_num1578: number = 0; + @State link_num1579: number = 0; + @State link_num1580: number = 0; + @State link_num1581: number = 0; + @State link_num1582: number = 0; + @State link_num1583: number = 0; + @State link_num1584: number = 0; + @State link_num1585: number = 0; + @State link_num1586: number = 0; + @State link_num1587: number = 0; + @State link_num1588: number = 0; + @State link_num1589: number = 0; + @State link_num1590: number = 0; + @State link_num1591: number = 0; + @State link_num1592: number = 0; + @State link_num1593: number = 0; + @State link_num1594: number = 0; + @State link_num1595: number = 0; + @State link_num1596: number = 0; + @State link_num1597: number = 0; + @State link_num1598: number = 0; + @State link_num1599: number = 0; + @State link_num1600: number = 0; + @State link_num1601: number = 0; + @State link_num1602: number = 0; + @State link_num1603: number = 0; + @State link_num1604: number = 0; + @State link_num1605: number = 0; + @State link_num1606: number = 0; + @State link_num1607: number = 0; + @State link_num1608: number = 0; + @State link_num1609: number = 0; + @State link_num1610: number = 0; + @State link_num1611: number = 0; + @State link_num1612: number = 0; + @State link_num1613: number = 0; + @State link_num1614: number = 0; + @State link_num1615: number = 0; + @State link_num1616: number = 0; + @State link_num1617: number = 0; + @State link_num1618: number = 0; + @State link_num1619: number = 0; + @State link_num1620: number = 0; + @State link_num1621: number = 0; + @State link_num1622: number = 0; + @State link_num1623: number = 0; + @State link_num1624: number = 0; + @State link_num1625: number = 0; + @State link_num1626: number = 0; + @State link_num1627: number = 0; + @State link_num1628: number = 0; + @State link_num1629: number = 0; + @State link_num1630: number = 0; + @State link_num1631: number = 0; + @State link_num1632: number = 0; + @State link_num1633: number = 0; + @State link_num1634: number = 0; + @State link_num1635: number = 0; + @State link_num1636: number = 0; + @State link_num1637: number = 0; + @State link_num1638: number = 0; + @State link_num1639: number = 0; + @State link_num1640: number = 0; + @State link_num1641: number = 0; + @State link_num1642: number = 0; + @State link_num1643: number = 0; + @State link_num1644: number = 0; + @State link_num1645: number = 0; + @State link_num1646: number = 0; + @State link_num1647: number = 0; + @State link_num1648: number = 0; + @State link_num1649: number = 0; + @State link_num1650: number = 0; + @State link_num1651: number = 0; + @State link_num1652: number = 0; + @State link_num1653: number = 0; + @State link_num1654: number = 0; + @State link_num1655: number = 0; + @State link_num1656: number = 0; + @State link_num1657: number = 0; + @State link_num1658: number = 0; + @State link_num1659: number = 0; + @State link_num1660: number = 0; + @State link_num1661: number = 0; + @State link_num1662: number = 0; + @State link_num1663: number = 0; + @State link_num1664: number = 0; + @State link_num1665: number = 0; + @State link_num1666: number = 0; + @State link_num1667: number = 0; + @State link_num1668: number = 0; + @State link_num1669: number = 0; + @State link_num1670: number = 0; + @State link_num1671: number = 0; + @State link_num1672: number = 0; + @State link_num1673: number = 0; + @State link_num1674: number = 0; + @State link_num1675: number = 0; + @State link_num1676: number = 0; + @State link_num1677: number = 0; + @State link_num1678: number = 0; + @State link_num1679: number = 0; + @State link_num1680: number = 0; + @State link_num1681: number = 0; + @State link_num1682: number = 0; + @State link_num1683: number = 0; + @State link_num1684: number = 0; + @State link_num1685: number = 0; + @State link_num1686: number = 0; + @State link_num1687: number = 0; + @State link_num1688: number = 0; + @State link_num1689: number = 0; + @State link_num1690: number = 0; + @State link_num1691: number = 0; + @State link_num1692: number = 0; + @State link_num1693: number = 0; + @State link_num1694: number = 0; + @State link_num1695: number = 0; + @State link_num1696: number = 0; + @State link_num1697: number = 0; + @State link_num1698: number = 0; + @State link_num1699: number = 0; + @State link_num1700: number = 0; + @State link_num1701: number = 0; + @State link_num1702: number = 0; + @State link_num1703: number = 0; + @State link_num1704: number = 0; + @State link_num1705: number = 0; + @State link_num1706: number = 0; + @State link_num1707: number = 0; + @State link_num1708: number = 0; + @State link_num1709: number = 0; + @State link_num1710: number = 0; + @State link_num1711: number = 0; + @State link_num1712: number = 0; + @State link_num1713: number = 0; + @State link_num1714: number = 0; + @State link_num1715: number = 0; + @State link_num1716: number = 0; + @State link_num1717: number = 0; + @State link_num1718: number = 0; + @State link_num1719: number = 0; + @State link_num1720: number = 0; + @State link_num1721: number = 0; + @State link_num1722: number = 0; + @State link_num1723: number = 0; + @State link_num1724: number = 0; + @State link_num1725: number = 0; + @State link_num1726: number = 0; + @State link_num1727: number = 0; + @State link_num1728: number = 0; + @State link_num1729: number = 0; + @State link_num1730: number = 0; + @State link_num1731: number = 0; + @State link_num1732: number = 0; + @State link_num1733: number = 0; + @State link_num1734: number = 0; + @State link_num1735: number = 0; + @State link_num1736: number = 0; + @State link_num1737: number = 0; + @State link_num1738: number = 0; + @State link_num1739: number = 0; + @State link_num1740: number = 0; + @State link_num1741: number = 0; + @State link_num1742: number = 0; + @State link_num1743: number = 0; + @State link_num1744: number = 0; + @State link_num1745: number = 0; + @State link_num1746: number = 0; + @State link_num1747: number = 0; + @State link_num1748: number = 0; + @State link_num1749: number = 0; + @State link_num1750: number = 0; + @State link_num1751: number = 0; + @State link_num1752: number = 0; + @State link_num1753: number = 0; + @State link_num1754: number = 0; + @State link_num1755: number = 0; + @State link_num1756: number = 0; + @State link_num1757: number = 0; + @State link_num1758: number = 0; + @State link_num1759: number = 0; + @State link_num1760: number = 0; + @State link_num1761: number = 0; + @State link_num1762: number = 0; + @State link_num1763: number = 0; + @State link_num1764: number = 0; + @State link_num1765: number = 0; + @State link_num1766: number = 0; + @State link_num1767: number = 0; + @State link_num1768: number = 0; + @State link_num1769: number = 0; + @State link_num1770: number = 0; + @State link_num1771: number = 0; + @State link_num1772: number = 0; + @State link_num1773: number = 0; + @State link_num1774: number = 0; + @State link_num1775: number = 0; + @State link_num1776: number = 0; + @State link_num1777: number = 0; + @State link_num1778: number = 0; + @State link_num1779: number = 0; + @State link_num1780: number = 0; + @State link_num1781: number = 0; + @State link_num1782: number = 0; + @State link_num1783: number = 0; + @State link_num1784: number = 0; + @State link_num1785: number = 0; + @State link_num1786: number = 0; + @State link_num1787: number = 0; + @State link_num1788: number = 0; + @State link_num1789: number = 0; + @State link_num1790: number = 0; + @State link_num1791: number = 0; + @State link_num1792: number = 0; + @State link_num1793: number = 0; + @State link_num1794: number = 0; + @State link_num1795: number = 0; + @State link_num1796: number = 0; + @State link_num1797: number = 0; + @State link_num1798: number = 0; + @State link_num1799: number = 0; + @State link_num1800: number = 0; + @State link_num1801: number = 0; + @State link_num1802: number = 0; + @State link_num1803: number = 0; + @State link_num1804: number = 0; + @State link_num1805: number = 0; + @State link_num1806: number = 0; + @State link_num1807: number = 0; + @State link_num1808: number = 0; + @State link_num1809: number = 0; + @State link_num1810: number = 0; + @State link_num1811: number = 0; + @State link_num1812: number = 0; + @State link_num1813: number = 0; + @State link_num1814: number = 0; + @State link_num1815: number = 0; + @State link_num1816: number = 0; + @State link_num1817: number = 0; + + + //============================================================================= + @Provide consume_num0: number = 0; + @Provide consume_num1: number = 0; + @Provide consume_num2: number = 0; + @Provide consume_num3: number = 0; + @Provide consume_num4: number = 0; + @Provide consume_num5: number = 0; + @Provide consume_num6: number = 0; + @Provide consume_num7: number = 0; + @Provide consume_num8: number = 0; + @Provide consume_num9: number = 0; + @Provide consume_num10: number = 0; + @Provide consume_num11: number = 0; + @Provide consume_num12: number = 0; + @Provide consume_num13: number = 0; + @Provide consume_num14: number = 0; + @Provide consume_num15: number = 0; + @Provide consume_num16: number = 0; + @Provide consume_num17: number = 0; + @Provide consume_num18: number = 0; + @Provide consume_num19: number = 0; + @Provide consume_num20: number = 0; + @Provide consume_num21: number = 0; + @Provide consume_num22: number = 0; + @Provide consume_num23: number = 0; + @Provide consume_num24: number = 0; + @Provide consume_num25: number = 0; + @Provide consume_num26: number = 0; + @Provide consume_num27: number = 0; + @Provide consume_num28: number = 0; + @Provide consume_num29: number = 0; + @Provide consume_num30: number = 0; + @Provide consume_num31: number = 0; + @Provide consume_num32: number = 0; + @Provide consume_num33: number = 0; + @Provide consume_num34: number = 0; + @Provide consume_num35: number = 0; + @Provide consume_num36: number = 0; + @Provide consume_num37: number = 0; + @Provide consume_num38: number = 0; + @Provide consume_num39: number = 0; + @Provide consume_num40: number = 0; + @Provide consume_num41: number = 0; + @Provide consume_num42: number = 0; + @Provide consume_num43: number = 0; + @Provide consume_num44: number = 0; + @Provide consume_num45: number = 0; + @Provide consume_num46: number = 0; + @Provide consume_num47: number = 0; + @Provide consume_num48: number = 0; + @Provide consume_num49: number = 0; + @Provide consume_num50: number = 0; + @Provide consume_num51: number = 0; + @Provide consume_num52: number = 0; + @Provide consume_num53: number = 0; + @Provide consume_num54: number = 0; + @Provide consume_num55: number = 0; + @Provide consume_num56: number = 0; + @Provide consume_num57: number = 0; + @Provide consume_num58: number = 0; + @Provide consume_num59: number = 0; + @Provide consume_num60: number = 0; + @Provide consume_num61: number = 0; + @Provide consume_num62: number = 0; + @Provide consume_num63: number = 0; + @Provide consume_num64: number = 0; + @Provide consume_num65: number = 0; + @Provide consume_num66: number = 0; + @Provide consume_num67: number = 0; + @Provide consume_num68: number = 0; + @Provide consume_num69: number = 0; + @Provide consume_num70: number = 0; + @Provide consume_num71: number = 0; + @Provide consume_num72: number = 0; + @Provide consume_num73: number = 0; + @Provide consume_num74: number = 0; + @Provide consume_num75: number = 0; + @Provide consume_num76: number = 0; + @Provide consume_num77: number = 0; + @Provide consume_num78: number = 0; + @Provide consume_num79: number = 0; + @Provide consume_num80: number = 0; + @Provide consume_num81: number = 0; + @Provide consume_num82: number = 0; + @Provide consume_num83: number = 0; + @Provide consume_num84: number = 0; + @Provide consume_num85: number = 0; + @Provide consume_num86: number = 0; + @Provide consume_num87: number = 0; + @Provide consume_num88: number = 0; + @Provide consume_num89: number = 0; + @Provide consume_num90: number = 0; + @Provide consume_num91: number = 0; + @Provide consume_num92: number = 0; + @Provide consume_num93: number = 0; + @Provide consume_num94: number = 0; + @Provide consume_num95: number = 0; + @Provide consume_num96: number = 0; + @Provide consume_num97: number = 0; + @Provide consume_num98: number = 0; + @Provide consume_num99: number = 0; + @Provide consume_num100: number = 0; + @Provide consume_num101: number = 0; + @Provide consume_num102: number = 0; + @Provide consume_num103: number = 0; + @Provide consume_num104: number = 0; + @Provide consume_num105: number = 0; + @Provide consume_num106: number = 0; + @Provide consume_num107: number = 0; + @Provide consume_num108: number = 0; + @Provide consume_num109: number = 0; + @Provide consume_num110: number = 0; + @Provide consume_num111: number = 0; + @Provide consume_num112: number = 0; + @Provide consume_num113: number = 0; + @Provide consume_num114: number = 0; + @Provide consume_num115: number = 0; + @Provide consume_num116: number = 0; + @Provide consume_num117: number = 0; + @Provide consume_num118: number = 0; + @Provide consume_num119: number = 0; + @Provide consume_num120: number = 0; + @Provide consume_num121: number = 0; + @Provide consume_num122: number = 0; + @Provide consume_num123: number = 0; + @Provide consume_num124: number = 0; + @Provide consume_num125: number = 0; + @Provide consume_num126: number = 0; + @Provide consume_num127: number = 0; + @Provide consume_num128: number = 0; + @Provide consume_num129: number = 0; + @Provide consume_num130: number = 0; + @Provide consume_num131: number = 0; + @Provide consume_num132: number = 0; + @Provide consume_num133: number = 0; + @Provide consume_num134: number = 0; + @Provide consume_num135: number = 0; + @Provide consume_num136: number = 0; + @Provide consume_num137: number = 0; + @Provide consume_num138: number = 0; + @Provide consume_num139: number = 0; + @Provide consume_num140: number = 0; + @Provide consume_num141: number = 0; + @Provide consume_num142: number = 0; + @Provide consume_num143: number = 0; + @Provide consume_num144: number = 0; + @Provide consume_num145: number = 0; + @Provide consume_num146: number = 0; + @Provide consume_num147: number = 0; + @Provide consume_num148: number = 0; + @Provide consume_num149: number = 0; + @Provide consume_num150: number = 0; + @Provide consume_num151: number = 0; + @Provide consume_num152: number = 0; + @Provide consume_num153: number = 0; + @Provide consume_num154: number = 0; + @Provide consume_num155: number = 0; + @Provide consume_num156: number = 0; + @Provide consume_num157: number = 0; + @Provide consume_num158: number = 0; + @Provide consume_num159: number = 0; + @Provide consume_num160: number = 0; + @Provide consume_num161: number = 0; + @Provide consume_num162: number = 0; + @Provide consume_num163: number = 0; + @Provide consume_num164: number = 0; + @Provide consume_num165: number = 0; + @Provide consume_num166: number = 0; + @Provide consume_num167: number = 0; + @Provide consume_num168: number = 0; + @Provide consume_num169: number = 0; + @Provide consume_num170: number = 0; + @Provide consume_num171: number = 0; + @Provide consume_num172: number = 0; + @Provide consume_num173: number = 0; + @Provide consume_num174: number = 0; + @Provide consume_num175: number = 0; + @Provide consume_num176: number = 0; + @Provide consume_num177: number = 0; + @Provide consume_num178: number = 0; + @Provide consume_num179: number = 0; + @Provide consume_num180: number = 0; + @Provide consume_num181: number = 0; + @Provide consume_num182: number = 0; + @Provide consume_num183: number = 0; + @Provide consume_num184: number = 0; + @Provide consume_num185: number = 0; + @Provide consume_num186: number = 0; + @Provide consume_num187: number = 0; + @Provide consume_num188: number = 0; + @Provide consume_num189: number = 0; + @Provide consume_num190: number = 0; + @Provide consume_num191: number = 0; + @Provide consume_num192: number = 0; + @Provide consume_num193: number = 0; + @Provide consume_num194: number = 0; + @Provide consume_num195: number = 0; + @Provide consume_num196: number = 0; + @Provide consume_num197: number = 0; + @Provide consume_num198: number = 0; + @Provide consume_num199: number = 0; + @Provide consume_num200: number = 0; + @Provide consume_num201: number = 0; + @Provide consume_num202: number = 0; + @Provide consume_num203: number = 0; + @Provide consume_num204: number = 0; + @Provide consume_num205: number = 0; + @Provide consume_num206: number = 0; + @Provide consume_num207: number = 0; + @Provide consume_num208: number = 0; + @Provide consume_num209: number = 0; + @Provide consume_num210: number = 0; + @Provide consume_num211: number = 0; + @Provide consume_num212: number = 0; + @Provide consume_num213: number = 0; + @Provide consume_num214: number = 0; + @Provide consume_num215: number = 0; + @Provide consume_num216: number = 0; + @Provide consume_num217: number = 0; + @Provide consume_num218: number = 0; + @Provide consume_num219: number = 0; + @Provide consume_num220: number = 0; + @Provide consume_num221: number = 0; + @Provide consume_num222: number = 0; + @Provide consume_num223: number = 0; + @Provide consume_num224: number = 0; + @Provide consume_num225: number = 0; + @Provide consume_num226: number = 0; + @Provide consume_num227: number = 0; + @Provide consume_num228: number = 0; + @Provide consume_num229: number = 0; + @Provide consume_num230: number = 0; + @Provide consume_num231: number = 0; + @Provide consume_num232: number = 0; + @Provide consume_num233: number = 0; + @Provide consume_num234: number = 0; + @Provide consume_num235: number = 0; + @Provide consume_num236: number = 0; + @Provide consume_num237: number = 0; + @Provide consume_num238: number = 0; + @Provide consume_num239: number = 0; + @Provide consume_num240: number = 0; + @Provide consume_num241: number = 0; + @Provide consume_num242: number = 0; + @Provide consume_num243: number = 0; + @Provide consume_num244: number = 0; + @Provide consume_num245: number = 0; + @Provide consume_num246: number = 0; + @Provide consume_num247: number = 0; + @Provide consume_num248: number = 0; + @Provide consume_num249: number = 0; + @Provide consume_num250: number = 0; + @Provide consume_num251: number = 0; + @Provide consume_num252: number = 0; + @Provide consume_num253: number = 0; + @Provide consume_num254: number = 0; + @Provide consume_num255: number = 0; + @Provide consume_num256: number = 0; + @Provide consume_num257: number = 0; + @Provide consume_num258: number = 0; + @Provide consume_num259: number = 0; + @Provide consume_num260: number = 0; + @Provide consume_num261: number = 0; + @Provide consume_num262: number = 0; + @Provide consume_num263: number = 0; + @Provide consume_num264: number = 0; + @Provide consume_num265: number = 0; + @Provide consume_num266: number = 0; + @Provide consume_num267: number = 0; + @Provide consume_num268: number = 0; + @Provide consume_num269: number = 0; + @Provide consume_num270: number = 0; + @Provide consume_num271: number = 0; + @Provide consume_num272: number = 0; + @Provide consume_num273: number = 0; + @Provide consume_num274: number = 0; + @Provide consume_num275: number = 0; + @Provide consume_num276: number = 0; + @Provide consume_num277: number = 0; + @Provide consume_num278: number = 0; + @Provide consume_num279: number = 0; + @Provide consume_num280: number = 0; + @Provide consume_num281: number = 0; + @Provide consume_num282: number = 0; + @Provide consume_num283: number = 0; + @Provide consume_num284: number = 0; + @Provide consume_num285: number = 0; + @Provide consume_num286: number = 0; + @Provide consume_num287: number = 0; + @Provide consume_num288: number = 0; + @Provide consume_num289: number = 0; + @Provide consume_num290: number = 0; + @Provide consume_num291: number = 0; + @Provide consume_num292: number = 0; + @Provide consume_num293: number = 0; + @Provide consume_num294: number = 0; + @Provide consume_num295: number = 0; + @Provide consume_num296: number = 0; + @Provide consume_num297: number = 0; + @Provide consume_num298: number = 0; + @Provide consume_num299: number = 0; + @Provide consume_num300: number = 0; + @Provide consume_num301: number = 0; + @Provide consume_num302: number = 0; + @Provide consume_num303: number = 0; + @Provide consume_num304: number = 0; + @Provide consume_num305: number = 0; + @Provide consume_num306: number = 0; + @Provide consume_num307: number = 0; + @Provide consume_num308: number = 0; + @Provide consume_num309: number = 0; + @Provide consume_num310: number = 0; + @Provide consume_num311: number = 0; + @Provide consume_num312: number = 0; + @Provide consume_num313: number = 0; + @Provide consume_num314: number = 0; + @Provide consume_num315: number = 0; + @Provide consume_num316: number = 0; + @Provide consume_num317: number = 0; + @Provide consume_num318: number = 0; + @Provide consume_num319: number = 0; + @Provide consume_num320: number = 0; + @Provide consume_num321: number = 0; + @Provide consume_num322: number = 0; + @Provide consume_num323: number = 0; + @Provide consume_num324: number = 0; + @Provide consume_num325: number = 0; + @Provide consume_num326: number = 0; + @Provide consume_num327: number = 0; + @Provide consume_num328: number = 0; + @Provide consume_num329: number = 0; + @Provide consume_num330: number = 0; + @Provide consume_num331: number = 0; + @Provide consume_num332: number = 0; + @Provide consume_num333: number = 0; + @Provide consume_num334: number = 0; + @Provide consume_num335: number = 0; + @Provide consume_num336: number = 0; + @Provide consume_num337: number = 0; + @Provide consume_num338: number = 0; + @Provide consume_num339: number = 0; + @Provide consume_num340: number = 0; + @Provide consume_num341: number = 0; + @Provide consume_num342: number = 0; + @Provide consume_num343: number = 0; + @Provide consume_num344: number = 0; + @Provide consume_num345: number = 0; + @Provide consume_num346: number = 0; + @Provide consume_num347: number = 0; + @Provide consume_num348: number = 0; + @Provide consume_num349: number = 0; + @Provide consume_num350: number = 0; + @Provide consume_num351: number = 0; + @Provide consume_num352: number = 0; + @Provide consume_num353: number = 0; + @Provide consume_num354: number = 0; + @Provide consume_num355: number = 0; + @Provide consume_num356: number = 0; + @Provide consume_num357: number = 0; + @Provide consume_num358: number = 0; + @Provide consume_num359: number = 0; + @Provide consume_num360: number = 0; + @Provide consume_num361: number = 0; + @Provide consume_num362: number = 0; + @Provide consume_num363: number = 0; + @Provide consume_num364: number = 0; + @Provide consume_num365: number = 0; + @Provide consume_num366: number = 0; + @Provide consume_num367: number = 0; + @Provide consume_num368: number = 0; + @Provide consume_num369: number = 0; + @Provide consume_num370: number = 0; + @Provide consume_num371: number = 0; + @Provide consume_num372: number = 0; + @Provide consume_num373: number = 0; + @Provide consume_num374: number = 0; + @Provide consume_num375: number = 0; + @Provide consume_num376: number = 0; + @Provide consume_num377: number = 0; + @Provide consume_num378: number = 0; + @Provide consume_num379: number = 0; + @Provide consume_num380: number = 0; + @Provide consume_num381: number = 0; + @Provide consume_num382: number = 0; + @Provide consume_num383: number = 0; + @Provide consume_num384: number = 0; + @Provide consume_num385: number = 0; + @Provide consume_num386: number = 0; + @Provide consume_num387: number = 0; + @Provide consume_num388: number = 0; + @Provide consume_num389: number = 0; + @Provide consume_num390: number = 0; + @Provide consume_num391: number = 0; + @Provide consume_num392: number = 0; + @Provide consume_num393: number = 0; + @Provide consume_num394: number = 0; + @Provide consume_num395: number = 0; + @Provide consume_num396: number = 0; + @Provide consume_num397: number = 0; + @Provide consume_num398: number = 0; + @Provide consume_num399: number = 0; + @Provide consume_num400: number = 0; + @Provide consume_num401: number = 0; + @Provide consume_num402: number = 0; + @Provide consume_num403: number = 0; + @Provide consume_num404: number = 0; + @Provide consume_num405: number = 0; + @Provide consume_num406: number = 0; + @Provide consume_num407: number = 0; + @Provide consume_num408: number = 0; + @Provide consume_num409: number = 0; + @Provide consume_num410: number = 0; + @Provide consume_num411: number = 0; + @Provide consume_num412: number = 0; + @Provide consume_num413: number = 0; + @Provide consume_num414: number = 0; + @Provide consume_num415: number = 0; + @Provide consume_num416: number = 0; + @Provide consume_num417: number = 0; + @Provide consume_num418: number = 0; + @Provide consume_num419: number = 0; + @Provide consume_num420: number = 0; + @Provide consume_num421: number = 0; + @Provide consume_num422: number = 0; + @Provide consume_num423: number = 0; + @Provide consume_num424: number = 0; + @Provide consume_num425: number = 0; + @Provide consume_num426: number = 0; + @Provide consume_num427: number = 0; + @Provide consume_num428: number = 0; + @Provide consume_num429: number = 0; + @Provide consume_num430: number = 0; + @Provide consume_num431: number = 0; + @Provide consume_num432: number = 0; + @Provide consume_num433: number = 0; + @Provide consume_num434: number = 0; + @Provide consume_num435: number = 0; + @Provide consume_num436: number = 0; + @Provide consume_num437: number = 0; + @Provide consume_num438: number = 0; + @Provide consume_num439: number = 0; + @Provide consume_num440: number = 0; + @Provide consume_num441: number = 0; + @Provide consume_num442: number = 0; + @Provide consume_num443: number = 0; + @Provide consume_num444: number = 0; + @Provide consume_num445: number = 0; + @Provide consume_num446: number = 0; + @Provide consume_num447: number = 0; + @Provide consume_num448: number = 0; + @Provide consume_num449: number = 0; + @Provide consume_num450: number = 0; + @Provide consume_num451: number = 0; + @Provide consume_num452: number = 0; + @Provide consume_num453: number = 0; + @Provide consume_num454: number = 0; + @Provide consume_num455: number = 0; + @Provide consume_num456: number = 0; + @Provide consume_num457: number = 0; + @Provide consume_num458: number = 0; + @Provide consume_num459: number = 0; + @Provide consume_num460: number = 0; + @Provide consume_num461: number = 0; + @Provide consume_num462: number = 0; + @Provide consume_num463: number = 0; + @Provide consume_num464: number = 0; + @Provide consume_num465: number = 0; + @Provide consume_num466: number = 0; + @Provide consume_num467: number = 0; + @Provide consume_num468: number = 0; + @Provide consume_num469: number = 0; + @Provide consume_num470: number = 0; + @Provide consume_num471: number = 0; + @Provide consume_num472: number = 0; + @Provide consume_num473: number = 0; + @Provide consume_num474: number = 0; + @Provide consume_num475: number = 0; + @Provide consume_num476: number = 0; + @Provide consume_num477: number = 0; + @Provide consume_num478: number = 0; + @Provide consume_num479: number = 0; + @Provide consume_num480: number = 0; + @Provide consume_num481: number = 0; + @Provide consume_num482: number = 0; + @Provide consume_num483: number = 0; + @Provide consume_num484: number = 0; + @Provide consume_num485: number = 0; + @Provide consume_num486: number = 0; + @Provide consume_num487: number = 0; + @Provide consume_num488: number = 0; + @Provide consume_num489: number = 0; + @Provide consume_num490: number = 0; + @Provide consume_num491: number = 0; + @Provide consume_num492: number = 0; + @Provide consume_num493: number = 0; + @Provide consume_num494: number = 0; + @Provide consume_num495: number = 0; + @Provide consume_num496: number = 0; + @Provide consume_num497: number = 0; + @Provide consume_num498: number = 0; + @Provide consume_num499: number = 0; + @Provide consume_num500: number = 0; + @Provide consume_num501: number = 0; + @Provide consume_num502: number = 0; + @Provide consume_num503: number = 0; + @Provide consume_num504: number = 0; + @Provide consume_num505: number = 0; + @Provide consume_num506: number = 0; + @Provide consume_num507: number = 0; + @Provide consume_num508: number = 0; + @Provide consume_num509: number = 0; + @Provide consume_num510: number = 0; + @Provide consume_num511: number = 0; + @Provide consume_num512: number = 0; + @Provide consume_num513: number = 0; + @Provide consume_num514: number = 0; + @Provide consume_num515: number = 0; + @Provide consume_num516: number = 0; + @Provide consume_num517: number = 0; + @Provide consume_num518: number = 0; + @Provide consume_num519: number = 0; + @Provide consume_num520: number = 0; + @Provide consume_num521: number = 0; + @Provide consume_num522: number = 0; + @Provide consume_num523: number = 0; + @Provide consume_num524: number = 0; + @Provide consume_num525: number = 0; + @Provide consume_num526: number = 0; + @Provide consume_num527: number = 0; + @Provide consume_num528: number = 0; + @Provide consume_num529: number = 0; + @Provide consume_num530: number = 0; + @Provide consume_num531: number = 0; + @Provide consume_num532: number = 0; + @Provide consume_num533: number = 0; + @Provide consume_num534: number = 0; + @Provide consume_num535: number = 0; + @Provide consume_num536: number = 0; + @Provide consume_num537: number = 0; + @Provide consume_num538: number = 0; + @Provide consume_num539: number = 0; + @Provide consume_num540: number = 0; + @Provide consume_num541: number = 0; + @Provide consume_num542: number = 0; + @Provide consume_num543: number = 0; + @Provide consume_num544: number = 0; + @Provide consume_num545: number = 0; + @Provide consume_num546: number = 0; + @Provide consume_num547: number = 0; + @Provide consume_num548: number = 0; + @Provide consume_num549: number = 0; + @Provide consume_num550: number = 0; + @Provide consume_num551: number = 0; + @Provide consume_num552: number = 0; + @Provide consume_num553: number = 0; + @Provide consume_num554: number = 0; + @Provide consume_num555: number = 0; + @Provide consume_num556: number = 0; + @Provide consume_num557: number = 0; + @Provide consume_num558: number = 0; + @Provide consume_num559: number = 0; + @Provide consume_num560: number = 0; + @Provide consume_num561: number = 0; + @Provide consume_num562: number = 0; + @Provide consume_num563: number = 0; + @Provide consume_num564: number = 0; + @Provide consume_num565: number = 0; + @Provide consume_num566: number = 0; + @Provide consume_num567: number = 0; + @Provide consume_num568: number = 0; + @Provide consume_num569: number = 0; + @Provide consume_num570: number = 0; + @Provide consume_num571: number = 0; + @Provide consume_num572: number = 0; + @Provide consume_num573: number = 0; + @Provide consume_num574: number = 0; + @Provide consume_num575: number = 0; + @Provide consume_num576: number = 0; + @Provide consume_num577: number = 0; + @Provide consume_num578: number = 0; + @Provide consume_num579: number = 0; + @Provide consume_num580: number = 0; + @Provide consume_num581: number = 0; + @Provide consume_num582: number = 0; + @Provide consume_num583: number = 0; + @Provide consume_num584: number = 0; + @Provide consume_num585: number = 0; + @Provide consume_num586: number = 0; + @Provide consume_num587: number = 0; + @Provide consume_num588: number = 0; + @Provide consume_num589: number = 0; + @Provide consume_num590: number = 0; + @Provide consume_num591: number = 0; + @Provide consume_num592: number = 0; + @Provide consume_num593: number = 0; + @Provide consume_num594: number = 0; + @Provide consume_num595: number = 0; + @Provide consume_num596: number = 0; + @Provide consume_num597: number = 0; + @Provide consume_num598: number = 0; + @Provide consume_num599: number = 0; + @Provide consume_num600: number = 0; + @Provide consume_num601: number = 0; + @Provide consume_num602: number = 0; + @Provide consume_num603: number = 0; + @Provide consume_num604: number = 0; + @Provide consume_num605: number = 0; + @Provide consume_num606: number = 0; + @Provide consume_num607: number = 0; + @Provide consume_num608: number = 0; + @Provide consume_num609: number = 0; + @Provide consume_num610: number = 0; + @Provide consume_num611: number = 0; + @Provide consume_num612: number = 0; + @Provide consume_num613: number = 0; + @Provide consume_num614: number = 0; + @Provide consume_num615: number = 0; + @Provide consume_num616: number = 0; + @Provide consume_num617: number = 0; + @Provide consume_num618: number = 0; + @Provide consume_num619: number = 0; + @Provide consume_num620: number = 0; + @Provide consume_num621: number = 0; + @Provide consume_num622: number = 0; + @Provide consume_num623: number = 0; + @Provide consume_num624: number = 0; + @Provide consume_num625: number = 0; + @Provide consume_num626: number = 0; + @Provide consume_num627: number = 0; + @Provide consume_num628: number = 0; + @Provide consume_num629: number = 0; + @Provide consume_num630: number = 0; + @Provide consume_num631: number = 0; + @Provide consume_num632: number = 0; + @Provide consume_num633: number = 0; + @Provide consume_num634: number = 0; + @Provide consume_num635: number = 0; + @Provide consume_num636: number = 0; + @Provide consume_num637: number = 0; + @Provide consume_num638: number = 0; + @Provide consume_num639: number = 0; + @Provide consume_num640: number = 0; + @Provide consume_num641: number = 0; + @Provide consume_num642: number = 0; + @Provide consume_num643: number = 0; + @Provide consume_num644: number = 0; + @Provide consume_num645: number = 0; + @Provide consume_num646: number = 0; + @Provide consume_num647: number = 0; + @Provide consume_num648: number = 0; + @Provide consume_num649: number = 0; + @Provide consume_num650: number = 0; + @Provide consume_num651: number = 0; + @Provide consume_num652: number = 0; + @Provide consume_num653: number = 0; + @Provide consume_num654: number = 0; + @Provide consume_num655: number = 0; + @Provide consume_num656: number = 0; + @Provide consume_num657: number = 0; + @Provide consume_num658: number = 0; + @Provide consume_num659: number = 0; + @Provide consume_num660: number = 0; + @Provide consume_num661: number = 0; + @Provide consume_num662: number = 0; + @Provide consume_num663: number = 0; + @Provide consume_num664: number = 0; + @Provide consume_num665: number = 0; + @Provide consume_num666: number = 0; + @Provide consume_num667: number = 0; + @Provide consume_num668: number = 0; + @Provide consume_num669: number = 0; + @Provide consume_num670: number = 0; + @Provide consume_num671: number = 0; + @Provide consume_num672: number = 0; + @Provide consume_num673: number = 0; + @Provide consume_num674: number = 0; + @Provide consume_num675: number = 0; + @Provide consume_num676: number = 0; + @Provide consume_num677: number = 0; + @Provide consume_num678: number = 0; + @Provide consume_num679: number = 0; + @Provide consume_num680: number = 0; + @Provide consume_num681: number = 0; + @Provide consume_num682: number = 0; + @Provide consume_num683: number = 0; + @Provide consume_num684: number = 0; + @Provide consume_num685: number = 0; + @Provide consume_num686: number = 0; + @Provide consume_num687: number = 0; + @Provide consume_num688: number = 0; + @Provide consume_num689: number = 0; + @Provide consume_num690: number = 0; + @Provide consume_num691: number = 0; + @Provide consume_num692: number = 0; + @Provide consume_num693: number = 0; + @Provide consume_num694: number = 0; + @Provide consume_num695: number = 0; + @Provide consume_num696: number = 0; + @Provide consume_num697: number = 0; + @Provide consume_num698: number = 0; + @Provide consume_num699: number = 0; + @Provide consume_num700: number = 0; + @Provide consume_num701: number = 0; + @Provide consume_num702: number = 0; + @Provide consume_num703: number = 0; + @Provide consume_num704: number = 0; + @Provide consume_num705: number = 0; + @Provide consume_num706: number = 0; + @Provide consume_num707: number = 0; + @Provide consume_num708: number = 0; + @Provide consume_num709: number = 0; + @Provide consume_num710: number = 0; + @Provide consume_num711: number = 0; + @Provide consume_num712: number = 0; + @Provide consume_num713: number = 0; + @Provide consume_num714: number = 0; + @Provide consume_num715: number = 0; + @Provide consume_num716: number = 0; + @Provide consume_num717: number = 0; + @Provide consume_num718: number = 0; + @Provide consume_num719: number = 0; + @Provide consume_num720: number = 0; + @Provide consume_num721: number = 0; + @Provide consume_num722: number = 0; + @Provide consume_num723: number = 0; + @Provide consume_num724: number = 0; + @Provide consume_num725: number = 0; + @Provide consume_num726: number = 0; + @Provide consume_num727: number = 0; + @Provide consume_num728: number = 0; + @Provide consume_num729: number = 0; + @Provide consume_num730: number = 0; + @Provide consume_num731: number = 0; + @Provide consume_num732: number = 0; + @Provide consume_num733: number = 0; + @Provide consume_num734: number = 0; + @Provide consume_num735: number = 0; + @Provide consume_num736: number = 0; + @Provide consume_num737: number = 0; + @Provide consume_num738: number = 0; + @Provide consume_num739: number = 0; + @Provide consume_num740: number = 0; + @Provide consume_num741: number = 0; + @Provide consume_num742: number = 0; + @Provide consume_num743: number = 0; + @Provide consume_num744: number = 0; + @Provide consume_num745: number = 0; + @Provide consume_num746: number = 0; + @Provide consume_num747: number = 0; + @Provide consume_num748: number = 0; + @Provide consume_num749: number = 0; + @Provide consume_num750: number = 0; + @Provide consume_num751: number = 0; + @Provide consume_num752: number = 0; + @Provide consume_num753: number = 0; + @Provide consume_num754: number = 0; + @Provide consume_num755: number = 0; + @Provide consume_num756: number = 0; + @Provide consume_num757: number = 0; + @Provide consume_num758: number = 0; + @Provide consume_num759: number = 0; + @Provide consume_num760: number = 0; + @Provide consume_num761: number = 0; + @Provide consume_num762: number = 0; + @Provide consume_num763: number = 0; + @Provide consume_num764: number = 0; + @Provide consume_num765: number = 0; + @Provide consume_num766: number = 0; + @Provide consume_num767: number = 0; + @Provide consume_num768: number = 0; + @Provide consume_num769: number = 0; + @Provide consume_num770: number = 0; + @Provide consume_num771: number = 0; + @Provide consume_num772: number = 0; + @Provide consume_num773: number = 0; + @Provide consume_num774: number = 0; + @Provide consume_num775: number = 0; + @Provide consume_num776: number = 0; + @Provide consume_num777: number = 0; + @Provide consume_num778: number = 0; + @Provide consume_num779: number = 0; + @Provide consume_num780: number = 0; + @Provide consume_num781: number = 0; + @Provide consume_num782: number = 0; + @Provide consume_num783: number = 0; + @Provide consume_num784: number = 0; + @Provide consume_num785: number = 0; + @Provide consume_num786: number = 0; + @Provide consume_num787: number = 0; + @Provide consume_num788: number = 0; + @Provide consume_num789: number = 0; + @Provide consume_num790: number = 0; + @Provide consume_num791: number = 0; + @Provide consume_num792: number = 0; + @Provide consume_num793: number = 0; + @Provide consume_num794: number = 0; + @Provide consume_num795: number = 0; + @Provide consume_num796: number = 0; + @Provide consume_num797: number = 0; + @Provide consume_num798: number = 0; + @Provide consume_num799: number = 0; + @Provide consume_num800: number = 0; + @Provide consume_num801: number = 0; + @Provide consume_num802: number = 0; + @Provide consume_num803: number = 0; + @Provide consume_num804: number = 0; + @Provide consume_num805: number = 0; + @Provide consume_num806: number = 0; + @Provide consume_num807: number = 0; + @Provide consume_num808: number = 0; + @Provide consume_num809: number = 0; + @Provide consume_num810: number = 0; + @Provide consume_num811: number = 0; + @Provide consume_num812: number = 0; + @Provide consume_num813: number = 0; + @Provide consume_num814: number = 0; + @Provide consume_num815: number = 0; + @Provide consume_num816: number = 0; + @Provide consume_num817: number = 0; + @Provide consume_num818: number = 0; + @Provide consume_num819: number = 0; + @Provide consume_num820: number = 0; + @Provide consume_num821: number = 0; + @Provide consume_num822: number = 0; + @Provide consume_num823: number = 0; + @Provide consume_num824: number = 0; + @Provide consume_num825: number = 0; + @Provide consume_num826: number = 0; + @Provide consume_num827: number = 0; + @Provide consume_num828: number = 0; + @Provide consume_num829: number = 0; + @Provide consume_num830: number = 0; + @Provide consume_num831: number = 0; + @Provide consume_num832: number = 0; + @Provide consume_num833: number = 0; + @Provide consume_num834: number = 0; + @Provide consume_num835: number = 0; + @Provide consume_num836: number = 0; + @Provide consume_num837: number = 0; + @Provide consume_num838: number = 0; + @Provide consume_num839: number = 0; + @Provide consume_num840: number = 0; + @Provide consume_num841: number = 0; + @Provide consume_num842: number = 0; + @Provide consume_num843: number = 0; + @Provide consume_num844: number = 0; + @Provide consume_num845: number = 0; + @Provide consume_num846: number = 0; + @Provide consume_num847: number = 0; + @Provide consume_num848: number = 0; + @Provide consume_num849: number = 0; + @Provide consume_num850: number = 0; + @Provide consume_num851: number = 0; + @Provide consume_num852: number = 0; + @Provide consume_num853: number = 0; + @Provide consume_num854: number = 0; + @Provide consume_num855: number = 0; + @Provide consume_num856: number = 0; + @Provide consume_num857: number = 0; + @Provide consume_num858: number = 0; + @Provide consume_num859: number = 0; + @Provide consume_num860: number = 0; + @Provide consume_num861: number = 0; + @Provide consume_num862: number = 0; + @Provide consume_num863: number = 0; + @Provide consume_num864: number = 0; + @Provide consume_num865: number = 0; + @Provide consume_num866: number = 0; + @Provide consume_num867: number = 0; + @Provide consume_num868: number = 0; + @Provide consume_num869: number = 0; + @Provide consume_num870: number = 0; + @Provide consume_num871: number = 0; + @Provide consume_num872: number = 0; + @Provide consume_num873: number = 0; + @Provide consume_num874: number = 0; + @Provide consume_num875: number = 0; + @Provide consume_num876: number = 0; + @Provide consume_num877: number = 0; + @Provide consume_num878: number = 0; + @Provide consume_num879: number = 0; + @Provide consume_num880: number = 0; + @Provide consume_num881: number = 0; + @Provide consume_num882: number = 0; + @Provide consume_num883: number = 0; + @Provide consume_num884: number = 0; + @Provide consume_num885: number = 0; + @Provide consume_num886: number = 0; + @Provide consume_num887: number = 0; + @Provide consume_num888: number = 0; + @Provide consume_num889: number = 0; + @Provide consume_num890: number = 0; + @Provide consume_num891: number = 0; + @Provide consume_num892: number = 0; + @Provide consume_num893: number = 0; + @Provide consume_num894: number = 0; + @Provide consume_num895: number = 0; + @Provide consume_num896: number = 0; + @Provide consume_num897: number = 0; + @Provide consume_num898: number = 0; + @Provide consume_num899: number = 0; + @Provide consume_num900: number = 0; + @Provide consume_num901: number = 0; + @Provide consume_num902: number = 0; + @Provide consume_num903: number = 0; + @Provide consume_num904: number = 0; + @Provide consume_num905: number = 0; + @Provide consume_num906: number = 0; + @Provide consume_num907: number = 0; + @Provide consume_num908: number = 0; + @Provide consume_num909: number = 0; + @Provide consume_num910: number = 0; + @Provide consume_num911: number = 0; + @Provide consume_num912: number = 0; + @Provide consume_num913: number = 0; + @Provide consume_num914: number = 0; + @Provide consume_num915: number = 0; + @Provide consume_num916: number = 0; + @Provide consume_num917: number = 0; + @Provide consume_num918: number = 0; + @Provide consume_num919: number = 0; + @Provide consume_num920: number = 0; + @Provide consume_num921: number = 0; + @Provide consume_num922: number = 0; + @Provide consume_num923: number = 0; + @Provide consume_num924: number = 0; + @Provide consume_num925: number = 0; + @Provide consume_num926: number = 0; + @Provide consume_num927: number = 0; + @Provide consume_num928: number = 0; + @Provide consume_num929: number = 0; + @Provide consume_num930: number = 0; + @Provide consume_num931: number = 0; + @Provide consume_num932: number = 0; + @Provide consume_num933: number = 0; + @Provide consume_num934: number = 0; + @Provide consume_num935: number = 0; + @Provide consume_num936: number = 0; + @Provide consume_num937: number = 0; + @Provide consume_num938: number = 0; + @Provide consume_num939: number = 0; + @Provide consume_num940: number = 0; + @Provide consume_num941: number = 0; + @Provide consume_num942: number = 0; + @Provide consume_num943: number = 0; + @Provide consume_num944: number = 0; + @Provide consume_num945: number = 0; + @Provide consume_num946: number = 0; + @Provide consume_num947: number = 0; + @Provide consume_num948: number = 0; + @Provide consume_num949: number = 0; + @Provide consume_num950: number = 0; + @Provide consume_num951: number = 0; + @Provide consume_num952: number = 0; + @Provide consume_num953: number = 0; + @Provide consume_num954: number = 0; + @Provide consume_num955: number = 0; + @Provide consume_num956: number = 0; + @Provide consume_num957: number = 0; + @Provide consume_num958: number = 0; + @Provide consume_num959: number = 0; + @Provide consume_num960: number = 0; + @Provide consume_num961: number = 0; + @Provide consume_num962: number = 0; + @Provide consume_num963: number = 0; + @Provide consume_num964: number = 0; + @Provide consume_num965: number = 0; + @Provide consume_num966: number = 0; + @Provide consume_num967: number = 0; + @Provide consume_num968: number = 0; + @Provide consume_num969: number = 0; + @Provide consume_num970: number = 0; + @Provide consume_num971: number = 0; + @Provide consume_num972: number = 0; + @Provide consume_num973: number = 0; + @Provide consume_num974: number = 0; + @Provide consume_num975: number = 0; + @Provide consume_num976: number = 0; + @Provide consume_num977: number = 0; + @Provide consume_num978: number = 0; + @Provide consume_num979: number = 0; + @Provide consume_num980: number = 0; + @Provide consume_num981: number = 0; + @Provide consume_num982: number = 0; + @Provide consume_num983: number = 0; + @Provide consume_num984: number = 0; + @Provide consume_num985: number = 0; + @Provide consume_num986: number = 0; + @Provide consume_num987: number = 0; + @Provide consume_num988: number = 0; + @Provide consume_num989: number = 0; + @Provide consume_num990: number = 0; + @Provide consume_num991: number = 0; + @Provide consume_num992: number = 0; + @Provide consume_num993: number = 0; + @Provide consume_num994: number = 0; + @Provide consume_num995: number = 0; + @Provide consume_num996: number = 0; + @Provide consume_num997: number = 0; + @Provide consume_num998: number = 0; + @Provide consume_num999: number = 0; + @Provide consume_num1000: number = 0; + @Provide consume_num1001: number = 0; + @Provide consume_num1002: number = 0; + @Provide consume_num1003: number = 0; + @Provide consume_num1004: number = 0; + @Provide consume_num1005: number = 0; + @Provide consume_num1006: number = 0; + @Provide consume_num1007: number = 0; + @Provide consume_num1008: number = 0; + @Provide consume_num1009: number = 0; + @Provide consume_num1010: number = 0; + @Provide consume_num1011: number = 0; + @Provide consume_num1012: number = 0; + @Provide consume_num1013: number = 0; + @Provide consume_num1014: number = 0; + @Provide consume_num1015: number = 0; + @Provide consume_num1016: number = 0; + @Provide consume_num1017: number = 0; + @Provide consume_num1018: number = 0; + @Provide consume_num1019: number = 0; + @Provide consume_num1020: number = 0; + @Provide consume_num1021: number = 0; + @Provide consume_num1022: number = 0; + @Provide consume_num1023: number = 0; + @Provide consume_num1024: number = 0; + @Provide consume_num1025: number = 0; + @Provide consume_num1026: number = 0; + @Provide consume_num1027: number = 0; + @Provide consume_num1028: number = 0; + @Provide consume_num1029: number = 0; + @Provide consume_num1030: number = 0; + @Provide consume_num1031: number = 0; + @Provide consume_num1032: number = 0; + @Provide consume_num1033: number = 0; + @Provide consume_num1034: number = 0; + @Provide consume_num1035: number = 0; + @Provide consume_num1036: number = 0; + @Provide consume_num1037: number = 0; + @Provide consume_num1038: number = 0; + @Provide consume_num1039: number = 0; + @Provide consume_num1040: number = 0; + @Provide consume_num1041: number = 0; + @Provide consume_num1042: number = 0; + @Provide consume_num1043: number = 0; + @Provide consume_num1044: number = 0; + @Provide consume_num1045: number = 0; + @Provide consume_num1046: number = 0; + @Provide consume_num1047: number = 0; + @Provide consume_num1048: number = 0; + @Provide consume_num1049: number = 0; + @Provide consume_num1050: number = 0; + @Provide consume_num1051: number = 0; + @Provide consume_num1052: number = 0; + @Provide consume_num1053: number = 0; + @Provide consume_num1054: number = 0; + @Provide consume_num1055: number = 0; + @Provide consume_num1056: number = 0; + @Provide consume_num1057: number = 0; + @Provide consume_num1058: number = 0; + @Provide consume_num1059: number = 0; + @Provide consume_num1060: number = 0; + @Provide consume_num1061: number = 0; + @Provide consume_num1062: number = 0; + @Provide consume_num1063: number = 0; + @Provide consume_num1064: number = 0; + @Provide consume_num1065: number = 0; + @Provide consume_num1066: number = 0; + @Provide consume_num1067: number = 0; + @Provide consume_num1068: number = 0; + @Provide consume_num1069: number = 0; + @Provide consume_num1070: number = 0; + @Provide consume_num1071: number = 0; + @Provide consume_num1072: number = 0; + @Provide consume_num1073: number = 0; + @Provide consume_num1074: number = 0; + @Provide consume_num1075: number = 0; + @Provide consume_num1076: number = 0; + @Provide consume_num1077: number = 0; + @Provide consume_num1078: number = 0; + @Provide consume_num1079: number = 0; + @Provide consume_num1080: number = 0; + @Provide consume_num1081: number = 0; + @Provide consume_num1082: number = 0; + @Provide consume_num1083: number = 0; + @Provide consume_num1084: number = 0; + @Provide consume_num1085: number = 0; + @Provide consume_num1086: number = 0; + @Provide consume_num1087: number = 0; + @Provide consume_num1088: number = 0; + @Provide consume_num1089: number = 0; + @Provide consume_num1090: number = 0; + @Provide consume_num1091: number = 0; + @Provide consume_num1092: number = 0; + @Provide consume_num1093: number = 0; + @Provide consume_num1094: number = 0; + @Provide consume_num1095: number = 0; + @Provide consume_num1096: number = 0; + @Provide consume_num1097: number = 0; + @Provide consume_num1098: number = 0; + @Provide consume_num1099: number = 0; + @Provide consume_num1100: number = 0; + @Provide consume_num1101: number = 0; + @Provide consume_num1102: number = 0; + @Provide consume_num1103: number = 0; + @Provide consume_num1104: number = 0; + @Provide consume_num1105: number = 0; + @Provide consume_num1106: number = 0; + @Provide consume_num1107: number = 0; + @Provide consume_num1108: number = 0; + @Provide consume_num1109: number = 0; + @Provide consume_num1110: number = 0; + @Provide consume_num1111: number = 0; + @Provide consume_num1112: number = 0; + @Provide consume_num1113: number = 0; + @Provide consume_num1114: number = 0; + @Provide consume_num1115: number = 0; + @Provide consume_num1116: number = 0; + @Provide consume_num1117: number = 0; + @Provide consume_num1118: number = 0; + @Provide consume_num1119: number = 0; + @Provide consume_num1120: number = 0; + @Provide consume_num1121: number = 0; + @Provide consume_num1122: number = 0; + @Provide consume_num1123: number = 0; + @Provide consume_num1124: number = 0; + @Provide consume_num1125: number = 0; + @Provide consume_num1126: number = 0; + @Provide consume_num1127: number = 0; + @Provide consume_num1128: number = 0; + @Provide consume_num1129: number = 0; + @Provide consume_num1130: number = 0; + @Provide consume_num1131: number = 0; + @Provide consume_num1132: number = 0; + @Provide consume_num1133: number = 0; + @Provide consume_num1134: number = 0; + @Provide consume_num1135: number = 0; + @Provide consume_num1136: number = 0; + @Provide consume_num1137: number = 0; + @Provide consume_num1138: number = 0; + @Provide consume_num1139: number = 0; + @Provide consume_num1140: number = 0; + @Provide consume_num1141: number = 0; + @Provide consume_num1142: number = 0; + @Provide consume_num1143: number = 0; + @Provide consume_num1144: number = 0; + @Provide consume_num1145: number = 0; + @Provide consume_num1146: number = 0; + @Provide consume_num1147: number = 0; + @Provide consume_num1148: number = 0; + @Provide consume_num1149: number = 0; + @Provide consume_num1150: number = 0; + @Provide consume_num1151: number = 0; + @Provide consume_num1152: number = 0; + @Provide consume_num1153: number = 0; + @Provide consume_num1154: number = 0; + @Provide consume_num1155: number = 0; + @Provide consume_num1156: number = 0; + @Provide consume_num1157: number = 0; + @Provide consume_num1158: number = 0; + @Provide consume_num1159: number = 0; + @Provide consume_num1160: number = 0; + @Provide consume_num1161: number = 0; + @Provide consume_num1162: number = 0; + @Provide consume_num1163: number = 0; + @Provide consume_num1164: number = 0; + @Provide consume_num1165: number = 0; + @Provide consume_num1166: number = 0; + @Provide consume_num1167: number = 0; + @Provide consume_num1168: number = 0; + @Provide consume_num1169: number = 0; + @Provide consume_num1170: number = 0; + @Provide consume_num1171: number = 0; + @Provide consume_num1172: number = 0; + @Provide consume_num1173: number = 0; + @Provide consume_num1174: number = 0; + @Provide consume_num1175: number = 0; + @Provide consume_num1176: number = 0; + @Provide consume_num1177: number = 0; + @Provide consume_num1178: number = 0; + @Provide consume_num1179: number = 0; + @Provide consume_num1180: number = 0; + @Provide consume_num1181: number = 0; + @Provide consume_num1182: number = 0; + @Provide consume_num1183: number = 0; + @Provide consume_num1184: number = 0; + @Provide consume_num1185: number = 0; + @Provide consume_num1186: number = 0; + @Provide consume_num1187: number = 0; + @Provide consume_num1188: number = 0; + @Provide consume_num1189: number = 0; + @Provide consume_num1190: number = 0; + @Provide consume_num1191: number = 0; + @Provide consume_num1192: number = 0; + @Provide consume_num1193: number = 0; + @Provide consume_num1194: number = 0; + @Provide consume_num1195: number = 0; + @Provide consume_num1196: number = 0; + @Provide consume_num1197: number = 0; + @Provide consume_num1198: number = 0; + @Provide consume_num1199: number = 0; + @Provide consume_num1200: number = 0; + @Provide consume_num1201: number = 0; + @Provide consume_num1202: number = 0; + @Provide consume_num1203: number = 0; + @Provide consume_num1204: number = 0; + @Provide consume_num1205: number = 0; + @Provide consume_num1206: number = 0; + @Provide consume_num1207: number = 0; + @Provide consume_num1208: number = 0; + @Provide consume_num1209: number = 0; + @Provide consume_num1210: number = 0; + @Provide consume_num1211: number = 0; + @Provide consume_num1212: number = 0; + @Provide consume_num1213: number = 0; + @Provide consume_num1214: number = 0; + @Provide consume_num1215: number = 0; + @Provide consume_num1216: number = 0; + @Provide consume_num1217: number = 0; + @Provide consume_num1218: number = 0; + @Provide consume_num1219: number = 0; + @Provide consume_num1220: number = 0; + @Provide consume_num1221: number = 0; + @Provide consume_num1222: number = 0; + @Provide consume_num1223: number = 0; + @Provide consume_num1224: number = 0; + @Provide consume_num1225: number = 0; + @Provide consume_num1226: number = 0; + @Provide consume_num1227: number = 0; + @Provide consume_num1228: number = 0; + @Provide consume_num1229: number = 0; + @Provide consume_num1230: number = 0; + @Provide consume_num1231: number = 0; + @Provide consume_num1232: number = 0; + @Provide consume_num1233: number = 0; + @Provide consume_num1234: number = 0; + @Provide consume_num1235: number = 0; + @Provide consume_num1236: number = 0; + @Provide consume_num1237: number = 0; + @Provide consume_num1238: number = 0; + @Provide consume_num1239: number = 0; + @Provide consume_num1240: number = 0; + @Provide consume_num1241: number = 0; + @Provide consume_num1242: number = 0; + @Provide consume_num1243: number = 0; + @Provide consume_num1244: number = 0; + @Provide consume_num1245: number = 0; + @Provide consume_num1246: number = 0; + @Provide consume_num1247: number = 0; + @Provide consume_num1248: number = 0; + @Provide consume_num1249: number = 0; + @Provide consume_num1250: number = 0; + @Provide consume_num1251: number = 0; + @Provide consume_num1252: number = 0; + @Provide consume_num1253: number = 0; + @Provide consume_num1254: number = 0; + @Provide consume_num1255: number = 0; + @Provide consume_num1256: number = 0; + @Provide consume_num1257: number = 0; + @Provide consume_num1258: number = 0; + @Provide consume_num1259: number = 0; + @Provide consume_num1260: number = 0; + @Provide consume_num1261: number = 0; + @Provide consume_num1262: number = 0; + @Provide consume_num1263: number = 0; + @Provide consume_num1264: number = 0; + @Provide consume_num1265: number = 0; + @Provide consume_num1266: number = 0; + @Provide consume_num1267: number = 0; + @Provide consume_num1268: number = 0; + @Provide consume_num1269: number = 0; + @Provide consume_num1270: number = 0; + @Provide consume_num1271: number = 0; + @Provide consume_num1272: number = 0; + @Provide consume_num1273: number = 0; + @Provide consume_num1274: number = 0; + @Provide consume_num1275: number = 0; + @Provide consume_num1276: number = 0; + @Provide consume_num1277: number = 0; + @Provide consume_num1278: number = 0; + @Provide consume_num1279: number = 0; + @Provide consume_num1280: number = 0; + @Provide consume_num1281: number = 0; + @Provide consume_num1282: number = 0; + @Provide consume_num1283: number = 0; + @Provide consume_num1284: number = 0; + @Provide consume_num1285: number = 0; + @Provide consume_num1286: number = 0; + @Provide consume_num1287: number = 0; + @Provide consume_num1288: number = 0; + @Provide consume_num1289: number = 0; + @Provide consume_num1290: number = 0; + @Provide consume_num1291: number = 0; + @Provide consume_num1292: number = 0; + @Provide consume_num1293: number = 0; + @Provide consume_num1294: number = 0; + @Provide consume_num1295: number = 0; + @Provide consume_num1296: number = 0; + @Provide consume_num1297: number = 0; + @Provide consume_num1298: number = 0; + @Provide consume_num1299: number = 0; + @Provide consume_num1300: number = 0; + @Provide consume_num1301: number = 0; + @Provide consume_num1302: number = 0; + @Provide consume_num1303: number = 0; + @Provide consume_num1304: number = 0; + @Provide consume_num1305: number = 0; + @Provide consume_num1306: number = 0; + @Provide consume_num1307: number = 0; + @Provide consume_num1308: number = 0; + @Provide consume_num1309: number = 0; + @Provide consume_num1310: number = 0; + @Provide consume_num1311: number = 0; + @Provide consume_num1312: number = 0; + @Provide consume_num1313: number = 0; + @Provide consume_num1314: number = 0; + @Provide consume_num1315: number = 0; + @Provide consume_num1316: number = 0; + @Provide consume_num1317: number = 0; + @Provide consume_num1318: number = 0; + @Provide consume_num1319: number = 0; + @Provide consume_num1320: number = 0; + @Provide consume_num1321: number = 0; + @Provide consume_num1322: number = 0; + @Provide consume_num1323: number = 0; + @Provide consume_num1324: number = 0; + @Provide consume_num1325: number = 0; + @Provide consume_num1326: number = 0; + @Provide consume_num1327: number = 0; + @Provide consume_num1328: number = 0; + @Provide consume_num1329: number = 0; + @Provide consume_num1330: number = 0; + @Provide consume_num1331: number = 0; + @Provide consume_num1332: number = 0; + @Provide consume_num1333: number = 0; + @Provide consume_num1334: number = 0; + @Provide consume_num1335: number = 0; + @Provide consume_num1336: number = 0; + @Provide consume_num1337: number = 0; + @Provide consume_num1338: number = 0; + @Provide consume_num1339: number = 0; + @Provide consume_num1340: number = 0; + @Provide consume_num1341: number = 0; + @Provide consume_num1342: number = 0; + @Provide consume_num1343: number = 0; + @Provide consume_num1344: number = 0; + @Provide consume_num1345: number = 0; + @Provide consume_num1346: number = 0; + @Provide consume_num1347: number = 0; + @Provide consume_num1348: number = 0; + @Provide consume_num1349: number = 0; + @Provide consume_num1350: number = 0; + @Provide consume_num1351: number = 0; + @Provide consume_num1352: number = 0; + @Provide consume_num1353: number = 0; + @Provide consume_num1354: number = 0; + @Provide consume_num1355: number = 0; + @Provide consume_num1356: number = 0; + @Provide consume_num1357: number = 0; + @Provide consume_num1358: number = 0; + @Provide consume_num1359: number = 0; + @Provide consume_num1360: number = 0; + @Provide consume_num1361: number = 0; + @Provide consume_num1362: number = 0; + @Provide consume_num1363: number = 0; + @Provide consume_num1364: number = 0; + @Provide consume_num1365: number = 0; + @Provide consume_num1366: number = 0; + @Provide consume_num1367: number = 0; + @Provide consume_num1368: number = 0; + @Provide consume_num1369: number = 0; + @Provide consume_num1370: number = 0; + @Provide consume_num1371: number = 0; + @Provide consume_num1372: number = 0; + @Provide consume_num1373: number = 0; + @Provide consume_num1374: number = 0; + @Provide consume_num1375: number = 0; + @Provide consume_num1376: number = 0; + @Provide consume_num1377: number = 0; + @Provide consume_num1378: number = 0; + @Provide consume_num1379: number = 0; + @Provide consume_num1380: number = 0; + @Provide consume_num1381: number = 0; + @Provide consume_num1382: number = 0; + @Provide consume_num1383: number = 0; + @Provide consume_num1384: number = 0; + @Provide consume_num1385: number = 0; + @Provide consume_num1386: number = 0; + @Provide consume_num1387: number = 0; + @Provide consume_num1388: number = 0; + @Provide consume_num1389: number = 0; + @Provide consume_num1390: number = 0; + @Provide consume_num1391: number = 0; + @Provide consume_num1392: number = 0; + @Provide consume_num1393: number = 0; + @Provide consume_num1394: number = 0; + @Provide consume_num1395: number = 0; + @Provide consume_num1396: number = 0; + @Provide consume_num1397: number = 0; + @Provide consume_num1398: number = 0; + @Provide consume_num1399: number = 0; + @Provide consume_num1400: number = 0; + @Provide consume_num1401: number = 0; + @Provide consume_num1402: number = 0; + @Provide consume_num1403: number = 0; + @Provide consume_num1404: number = 0; + @Provide consume_num1405: number = 0; + @Provide consume_num1406: number = 0; + @Provide consume_num1407: number = 0; + @Provide consume_num1408: number = 0; + @Provide consume_num1409: number = 0; + @Provide consume_num1410: number = 0; + @Provide consume_num1411: number = 0; + @Provide consume_num1412: number = 0; + @Provide consume_num1413: number = 0; + @Provide consume_num1414: number = 0; + @Provide consume_num1415: number = 0; + @Provide consume_num1416: number = 0; + @Provide consume_num1417: number = 0; + @Provide consume_num1418: number = 0; + @Provide consume_num1419: number = 0; + @Provide consume_num1420: number = 0; + @Provide consume_num1421: number = 0; + @Provide consume_num1422: number = 0; + @Provide consume_num1423: number = 0; + @Provide consume_num1424: number = 0; + @Provide consume_num1425: number = 0; + @Provide consume_num1426: number = 0; + @Provide consume_num1427: number = 0; + @Provide consume_num1428: number = 0; + @Provide consume_num1429: number = 0; + @Provide consume_num1430: number = 0; + @Provide consume_num1431: number = 0; + @Provide consume_num1432: number = 0; + @Provide consume_num1433: number = 0; + @Provide consume_num1434: number = 0; + @Provide consume_num1435: number = 0; + @Provide consume_num1436: number = 0; + @Provide consume_num1437: number = 0; + @Provide consume_num1438: number = 0; + @Provide consume_num1439: number = 0; + @Provide consume_num1440: number = 0; + @Provide consume_num1441: number = 0; + @Provide consume_num1442: number = 0; + @Provide consume_num1443: number = 0; + @Provide consume_num1444: number = 0; + @Provide consume_num1445: number = 0; + @Provide consume_num1446: number = 0; + @Provide consume_num1447: number = 0; + @Provide consume_num1448: number = 0; + @Provide consume_num1449: number = 0; + @Provide consume_num1450: number = 0; + @Provide consume_num1451: number = 0; + @Provide consume_num1452: number = 0; + @Provide consume_num1453: number = 0; + @Provide consume_num1454: number = 0; + @Provide consume_num1455: number = 0; + @Provide consume_num1456: number = 0; + @Provide consume_num1457: number = 0; + @Provide consume_num1458: number = 0; + @Provide consume_num1459: number = 0; + @Provide consume_num1460: number = 0; + @Provide consume_num1461: number = 0; + @Provide consume_num1462: number = 0; + @Provide consume_num1463: number = 0; + @Provide consume_num1464: number = 0; + @Provide consume_num1465: number = 0; + @Provide consume_num1466: number = 0; + @Provide consume_num1467: number = 0; + @Provide consume_num1468: number = 0; + @Provide consume_num1469: number = 0; + @Provide consume_num1470: number = 0; + @Provide consume_num1471: number = 0; + @Provide consume_num1472: number = 0; + @Provide consume_num1473: number = 0; + @Provide consume_num1474: number = 0; + @Provide consume_num1475: number = 0; + @Provide consume_num1476: number = 0; + @Provide consume_num1477: number = 0; + @Provide consume_num1478: number = 0; + @Provide consume_num1479: number = 0; + @Provide consume_num1480: number = 0; + @Provide consume_num1481: number = 0; + @Provide consume_num1482: number = 0; + @Provide consume_num1483: number = 0; + @Provide consume_num1484: number = 0; + @Provide consume_num1485: number = 0; + @Provide consume_num1486: number = 0; + @Provide consume_num1487: number = 0; + @Provide consume_num1488: number = 0; + @Provide consume_num1489: number = 0; + @Provide consume_num1490: number = 0; + @Provide consume_num1491: number = 0; + @Provide consume_num1492: number = 0; + @Provide consume_num1493: number = 0; + @Provide consume_num1494: number = 0; + @Provide consume_num1495: number = 0; + @Provide consume_num1496: number = 0; + @Provide consume_num1497: number = 0; + @Provide consume_num1498: number = 0; + @Provide consume_num1499: number = 0; + @Provide consume_num1500: number = 0; + @Provide consume_num1501: number = 0; + @Provide consume_num1502: number = 0; + @Provide consume_num1503: number = 0; + @Provide consume_num1504: number = 0; + @Provide consume_num1505: number = 0; + @Provide consume_num1506: number = 0; + @Provide consume_num1507: number = 0; + @Provide consume_num1508: number = 0; + @Provide consume_num1509: number = 0; + @Provide consume_num1510: number = 0; + @Provide consume_num1511: number = 0; + @Provide consume_num1512: number = 0; + @Provide consume_num1513: number = 0; + @Provide consume_num1514: number = 0; + @Provide consume_num1515: number = 0; + @Provide consume_num1516: number = 0; + @Provide consume_num1517: number = 0; + @Provide consume_num1518: number = 0; + @Provide consume_num1519: number = 0; + @Provide consume_num1520: number = 0; + @Provide consume_num1521: number = 0; + @Provide consume_num1522: number = 0; + @Provide consume_num1523: number = 0; + @Provide consume_num1524: number = 0; + @Provide consume_num1525: number = 0; + @Provide consume_num1526: number = 0; + @Provide consume_num1527: number = 0; + @Provide consume_num1528: number = 0; + @Provide consume_num1529: number = 0; + @Provide consume_num1530: number = 0; + @Provide consume_num1531: number = 0; + @Provide consume_num1532: number = 0; + @Provide consume_num1533: number = 0; + @Provide consume_num1534: number = 0; + @Provide consume_num1535: number = 0; + @Provide consume_num1536: number = 0; + @Provide consume_num1537: number = 0; + @Provide consume_num1538: number = 0; + @Provide consume_num1539: number = 0; + @Provide consume_num1540: number = 0; + @Provide consume_num1541: number = 0; + @Provide consume_num1542: number = 0; + @Provide consume_num1543: number = 0; + @Provide consume_num1544: number = 0; + @Provide consume_num1545: number = 0; + @Provide consume_num1546: number = 0; + @Provide consume_num1547: number = 0; + @Provide consume_num1548: number = 0; + @Provide consume_num1549: number = 0; + @Provide consume_num1550: number = 0; + @Provide consume_num1551: number = 0; + @Provide consume_num1552: number = 0; + @Provide consume_num1553: number = 0; + @Provide consume_num1554: number = 0; + @Provide consume_num1555: number = 0; + @Provide consume_num1556: number = 0; + @Provide consume_num1557: number = 0; + @Provide consume_num1558: number = 0; + @Provide consume_num1559: number = 0; + @Provide consume_num1560: number = 0; + @Provide consume_num1561: number = 0; + @Provide consume_num1562: number = 0; + @Provide consume_num1563: number = 0; + @Provide consume_num1564: number = 0; + @Provide consume_num1565: number = 0; + @Provide consume_num1566: number = 0; + @Provide consume_num1567: number = 0; + @Provide consume_num1568: number = 0; + @Provide consume_num1569: number = 0; + @Provide consume_num1570: number = 0; + @Provide consume_num1571: number = 0; + @Provide consume_num1572: number = 0; + @Provide consume_num1573: number = 0; + @Provide consume_num1574: number = 0; + @Provide consume_num1575: number = 0; + @Provide consume_num1576: number = 0; + @Provide consume_num1577: number = 0; + @Provide consume_num1578: number = 0; + @Provide consume_num1579: number = 0; + @Provide consume_num1580: number = 0; + @Provide consume_num1581: number = 0; + @Provide consume_num1582: number = 0; + @Provide consume_num1583: number = 0; + @Provide consume_num1584: number = 0; + @Provide consume_num1585: number = 0; + @Provide consume_num1586: number = 0; + @Provide consume_num1587: number = 0; + @Provide consume_num1588: number = 0; + @Provide consume_num1589: number = 0; + @Provide consume_num1590: number = 0; + @Provide consume_num1591: number = 0; + @Provide consume_num1592: number = 0; + @Provide consume_num1593: number = 0; + @Provide consume_num1594: number = 0; + @Provide consume_num1595: number = 0; + @Provide consume_num1596: number = 0; + @Provide consume_num1597: number = 0; + @Provide consume_num1598: number = 0; + @Provide consume_num1599: number = 0; + @Provide consume_num1600: number = 0; + @Provide consume_num1601: number = 0; + @Provide consume_num1602: number = 0; + @Provide consume_num1603: number = 0; + @Provide consume_num1604: number = 0; + @Provide consume_num1605: number = 0; + @Provide consume_num1606: number = 0; + @Provide consume_num1607: number = 0; + @Provide consume_num1608: number = 0; + @Provide consume_num1609: number = 0; + @Provide consume_num1610: number = 0; + @Provide consume_num1611: number = 0; + @Provide consume_num1612: number = 0; + @Provide consume_num1613: number = 0; + @Provide consume_num1614: number = 0; + @Provide consume_num1615: number = 0; + @Provide consume_num1616: number = 0; + @Provide consume_num1617: number = 0; + @Provide consume_num1618: number = 0; + @Provide consume_num1619: number = 0; + @Provide consume_num1620: number = 0; + @Provide consume_num1621: number = 0; + @Provide consume_num1622: number = 0; + @Provide consume_num1623: number = 0; + @Provide consume_num1624: number = 0; + @Provide consume_num1625: number = 0; + @Provide consume_num1626: number = 0; + @Provide consume_num1627: number = 0; + @Provide consume_num1628: number = 0; + @Provide consume_num1629: number = 0; + @Provide consume_num1630: number = 0; + @Provide consume_num1631: number = 0; + @Provide consume_num1632: number = 0; + @Provide consume_num1633: number = 0; + @Provide consume_num1634: number = 0; + @Provide consume_num1635: number = 0; + @Provide consume_num1636: number = 0; + @Provide consume_num1637: number = 0; + @Provide consume_num1638: number = 0; + @Provide consume_num1639: number = 0; + @Provide consume_num1640: number = 0; + @Provide consume_num1641: number = 0; + @Provide consume_num1642: number = 0; + @Provide consume_num1643: number = 0; + @Provide consume_num1644: number = 0; + @Provide consume_num1645: number = 0; + @Provide consume_num1646: number = 0; + @Provide consume_num1647: number = 0; + @Provide consume_num1648: number = 0; + @Provide consume_num1649: number = 0; + @Provide consume_num1650: number = 0; + @Provide consume_num1651: number = 0; + @Provide consume_num1652: number = 0; + @Provide consume_num1653: number = 0; + @Provide consume_num1654: number = 0; + @Provide consume_num1655: number = 0; + @Provide consume_num1656: number = 0; + @Provide consume_num1657: number = 0; + @Provide consume_num1658: number = 0; + @Provide consume_num1659: number = 0; + @Provide consume_num1660: number = 0; + @Provide consume_num1661: number = 0; + @Provide consume_num1662: number = 0; + @Provide consume_num1663: number = 0; + @Provide consume_num1664: number = 0; + @Provide consume_num1665: number = 0; + @Provide consume_num1666: number = 0; + @Provide consume_num1667: number = 0; + @Provide consume_num1668: number = 0; + @Provide consume_num1669: number = 0; + @Provide consume_num1670: number = 0; + @Provide consume_num1671: number = 0; + @Provide consume_num1672: number = 0; + @Provide consume_num1673: number = 0; + @Provide consume_num1674: number = 0; + @Provide consume_num1675: number = 0; + @Provide consume_num1676: number = 0; + @Provide consume_num1677: number = 0; + @Provide consume_num1678: number = 0; + @Provide consume_num1679: number = 0; + @Provide consume_num1680: number = 0; + @Provide consume_num1681: number = 0; + @Provide consume_num1682: number = 0; + @Provide consume_num1683: number = 0; + @Provide consume_num1684: number = 0; + @Provide consume_num1685: number = 0; + @Provide consume_num1686: number = 0; + @Provide consume_num1687: number = 0; + @Provide consume_num1688: number = 0; + @Provide consume_num1689: number = 0; + @Provide consume_num1690: number = 0; + @Provide consume_num1691: number = 0; + @Provide consume_num1692: number = 0; + @Provide consume_num1693: number = 0; + @Provide consume_num1694: number = 0; + @Provide consume_num1695: number = 0; + @Provide consume_num1696: number = 0; + @Provide consume_num1697: number = 0; + @Provide consume_num1698: number = 0; + @Provide consume_num1699: number = 0; + @Provide consume_num1700: number = 0; + @Provide consume_num1701: number = 0; + @Provide consume_num1702: number = 0; + @Provide consume_num1703: number = 0; + @Provide consume_num1704: number = 0; + @Provide consume_num1705: number = 0; + @Provide consume_num1706: number = 0; + @Provide consume_num1707: number = 0; + @Provide consume_num1708: number = 0; + @Provide consume_num1709: number = 0; + @Provide consume_num1710: number = 0; + @Provide consume_num1711: number = 0; + @Provide consume_num1712: number = 0; + @Provide consume_num1713: number = 0; + @Provide consume_num1714: number = 0; + @Provide consume_num1715: number = 0; + @Provide consume_num1716: number = 0; + @Provide consume_num1717: number = 0; + @Provide consume_num1718: number = 0; + @Provide consume_num1719: number = 0; + @Provide consume_num1720: number = 0; + @Provide consume_num1721: number = 0; + @Provide consume_num1722: number = 0; + @Provide consume_num1723: number = 0; + @Provide consume_num1724: number = 0; + @Provide consume_num1725: number = 0; + @Provide consume_num1726: number = 0; + @Provide consume_num1727: number = 0; + @Provide consume_num1728: number = 0; + @Provide consume_num1729: number = 0; + @Provide consume_num1730: number = 0; + @Provide consume_num1731: number = 0; + @Provide consume_num1732: number = 0; + @Provide consume_num1733: number = 0; + @Provide consume_num1734: number = 0; + @Provide consume_num1735: number = 0; + @Provide consume_num1736: number = 0; + @Provide consume_num1737: number = 0; + @Provide consume_num1738: number = 0; + @Provide consume_num1739: number = 0; + @Provide consume_num1740: number = 0; + @Provide consume_num1741: number = 0; + @Provide consume_num1742: number = 0; + @Provide consume_num1743: number = 0; + @Provide consume_num1744: number = 0; + @Provide consume_num1745: number = 0; + @Provide consume_num1746: number = 0; + @Provide consume_num1747: number = 0; + @Provide consume_num1748: number = 0; + @Provide consume_num1749: number = 0; + @Provide consume_num1750: number = 0; + @Provide consume_num1751: number = 0; + @Provide consume_num1752: number = 0; + @Provide consume_num1753: number = 0; + @Provide consume_num1754: number = 0; + @Provide consume_num1755: number = 0; + @Provide consume_num1756: number = 0; + @Provide consume_num1757: number = 0; + @Provide consume_num1758: number = 0; + @Provide consume_num1759: number = 0; + @Provide consume_num1760: number = 0; + @Provide consume_num1761: number = 0; + @Provide consume_num1762: number = 0; + @Provide consume_num1763: number = 0; + @Provide consume_num1764: number = 0; + @Provide consume_num1765: number = 0; + @Provide consume_num1766: number = 0; + @Provide consume_num1767: number = 0; + @Provide consume_num1768: number = 0; + @Provide consume_num1769: number = 0; + @Provide consume_num1770: number = 0; + @Provide consume_num1771: number = 0; + @Provide consume_num1772: number = 0; + @Provide consume_num1773: number = 0; + @Provide consume_num1774: number = 0; + @Provide consume_num1775: number = 0; + @Provide consume_num1776: number = 0; + @Provide consume_num1777: number = 0; + @Provide consume_num1778: number = 0; + @Provide consume_num1779: number = 0; + @Provide consume_num1780: number = 0; + @Provide consume_num1781: number = 0; + @Provide consume_num1782: number = 0; + @Provide consume_num1783: number = 0; + @Provide consume_num1784: number = 0; + @Provide consume_num1785: number = 0; + @Provide consume_num1786: number = 0; + @Provide consume_num1787: number = 0; + @Provide consume_num1788: number = 0; + @Provide consume_num1789: number = 0; + @Provide consume_num1790: number = 0; + @Provide consume_num1791: number = 0; + @Provide consume_num1792: number = 0; + @Provide consume_num1793: number = 0; + @Provide consume_num1794: number = 0; + @Provide consume_num1795: number = 0; + @Provide consume_num1796: number = 0; + @Provide consume_num1797: number = 0; + @Provide consume_num1798: number = 0; + @Provide consume_num1799: number = 0; + @Provide consume_num1800: number = 0; + @Provide consume_num1801: number = 0; + @Provide consume_num1802: number = 0; + @Provide consume_num1803: number = 0; + @Provide consume_num1804: number = 0; + @Provide consume_num1805: number = 0; + @Provide consume_num1806: number = 0; + @Provide consume_num1807: number = 0; + @Provide consume_num1808: number = 0; + @Provide consume_num1809: number = 0; + @Provide consume_num1810: number = 0; + @Provide consume_num1811: number = 0; + @Provide consume_num1812: number = 0; + @Provide consume_num1813: number = 0; + @Provide consume_num1814: number = 0; + @Provide consume_num1815: number = 0; + @Provide consume_num1816: number = 0; + @Provide consume_num1817: number = 0; + + + build() { + Column() { + //============================================================================= + PropVariables( + { + prop_num0: this.prop_num0, + prop_num1: this.prop_num1, + prop_num2: this.prop_num2, + prop_num3: this.prop_num3, + prop_num4: this.prop_num4, + prop_num5: this.prop_num5, + prop_num6: this.prop_num6, + prop_num7: this.prop_num7, + prop_num8: this.prop_num8, + prop_num9: this.prop_num9, + prop_num10: this.prop_num10, + prop_num11: this.prop_num11, + prop_num12: this.prop_num12, + prop_num13: this.prop_num13, + prop_num14: this.prop_num14, + prop_num15: this.prop_num15, + prop_num16: this.prop_num16, + prop_num17: this.prop_num17, + prop_num18: this.prop_num18, + prop_num19: this.prop_num19, + prop_num20: this.prop_num20, + prop_num21: this.prop_num21, + prop_num22: this.prop_num22, + prop_num23: this.prop_num23, + prop_num24: this.prop_num24, + prop_num25: this.prop_num25, + prop_num26: this.prop_num26, + prop_num27: this.prop_num27, + prop_num28: this.prop_num28, + prop_num29: this.prop_num29, + prop_num30: this.prop_num30, + prop_num31: this.prop_num31, + prop_num32: this.prop_num32, + prop_num33: this.prop_num33, + prop_num34: this.prop_num34, + prop_num35: this.prop_num35, + prop_num36: this.prop_num36, + prop_num37: this.prop_num37, + prop_num38: this.prop_num38, + prop_num39: this.prop_num39, + prop_num40: this.prop_num40, + prop_num41: this.prop_num41, + prop_num42: this.prop_num42, + prop_num43: this.prop_num43, + prop_num44: this.prop_num44, + prop_num45: this.prop_num45, + prop_num46: this.prop_num46, + prop_num47: this.prop_num47, + prop_num48: this.prop_num48, + prop_num49: this.prop_num49, + prop_num50: this.prop_num50, + prop_num51: this.prop_num51, + prop_num52: this.prop_num52, + prop_num53: this.prop_num53, + prop_num54: this.prop_num54, + prop_num55: this.prop_num55, + prop_num56: this.prop_num56, + prop_num57: this.prop_num57, + prop_num58: this.prop_num58, + prop_num59: this.prop_num59, + prop_num60: this.prop_num60, + prop_num61: this.prop_num61, + prop_num62: this.prop_num62, + prop_num63: this.prop_num63, + prop_num64: this.prop_num64, + prop_num65: this.prop_num65, + prop_num66: this.prop_num66, + prop_num67: this.prop_num67, + prop_num68: this.prop_num68, + prop_num69: this.prop_num69, + prop_num70: this.prop_num70, + prop_num71: this.prop_num71, + prop_num72: this.prop_num72, + prop_num73: this.prop_num73, + prop_num74: this.prop_num74, + prop_num75: this.prop_num75, + prop_num76: this.prop_num76, + prop_num77: this.prop_num77, + prop_num78: this.prop_num78, + prop_num79: this.prop_num79, + prop_num80: this.prop_num80, + prop_num81: this.prop_num81, + prop_num82: this.prop_num82, + prop_num83: this.prop_num83, + prop_num84: this.prop_num84, + prop_num85: this.prop_num85, + prop_num86: this.prop_num86, + prop_num87: this.prop_num87, + prop_num88: this.prop_num88, + prop_num89: this.prop_num89, + prop_num90: this.prop_num90, + prop_num91: this.prop_num91, + prop_num92: this.prop_num92, + prop_num93: this.prop_num93, + prop_num94: this.prop_num94, + prop_num95: this.prop_num95, + prop_num96: this.prop_num96, + prop_num97: this.prop_num97, + prop_num98: this.prop_num98, + prop_num99: this.prop_num99, + prop_num100: this.prop_num100, + prop_num101: this.prop_num101, + prop_num102: this.prop_num102, + prop_num103: this.prop_num103, + prop_num104: this.prop_num104, + prop_num105: this.prop_num105, + prop_num106: this.prop_num106, + prop_num107: this.prop_num107, + prop_num108: this.prop_num108, + prop_num109: this.prop_num109, + prop_num110: this.prop_num110, + prop_num111: this.prop_num111, + prop_num112: this.prop_num112, + prop_num113: this.prop_num113, + prop_num114: this.prop_num114, + prop_num115: this.prop_num115, + prop_num116: this.prop_num116, + prop_num117: this.prop_num117, + prop_num118: this.prop_num118, + prop_num119: this.prop_num119, + prop_num120: this.prop_num120, + prop_num121: this.prop_num121, + prop_num122: this.prop_num122, + prop_num123: this.prop_num123, + prop_num124: this.prop_num124, + prop_num125: this.prop_num125, + prop_num126: this.prop_num126, + prop_num127: this.prop_num127, + prop_num128: this.prop_num128, + prop_num129: this.prop_num129, + prop_num130: this.prop_num130, + prop_num131: this.prop_num131, + prop_num132: this.prop_num132, + prop_num133: this.prop_num133, + prop_num134: this.prop_num134, + prop_num135: this.prop_num135, + prop_num136: this.prop_num136, + prop_num137: this.prop_num137, + prop_num138: this.prop_num138, + prop_num139: this.prop_num139, + prop_num140: this.prop_num140, + prop_num141: this.prop_num141, + prop_num142: this.prop_num142, + prop_num143: this.prop_num143, + prop_num144: this.prop_num144, + prop_num145: this.prop_num145, + prop_num146: this.prop_num146, + prop_num147: this.prop_num147, + prop_num148: this.prop_num148, + prop_num149: this.prop_num149, + prop_num150: this.prop_num150, + prop_num151: this.prop_num151, + prop_num152: this.prop_num152, + prop_num153: this.prop_num153, + prop_num154: this.prop_num154, + prop_num155: this.prop_num155, + prop_num156: this.prop_num156, + prop_num157: this.prop_num157, + prop_num158: this.prop_num158, + prop_num159: this.prop_num159, + prop_num160: this.prop_num160, + prop_num161: this.prop_num161, + prop_num162: this.prop_num162, + prop_num163: this.prop_num163, + prop_num164: this.prop_num164, + prop_num165: this.prop_num165, + prop_num166: this.prop_num166, + prop_num167: this.prop_num167, + prop_num168: this.prop_num168, + prop_num169: this.prop_num169, + prop_num170: this.prop_num170, + prop_num171: this.prop_num171, + prop_num172: this.prop_num172, + prop_num173: this.prop_num173, + prop_num174: this.prop_num174, + prop_num175: this.prop_num175, + prop_num176: this.prop_num176, + prop_num177: this.prop_num177, + prop_num178: this.prop_num178, + prop_num179: this.prop_num179, + prop_num180: this.prop_num180, + prop_num181: this.prop_num181, + prop_num182: this.prop_num182, + prop_num183: this.prop_num183, + prop_num184: this.prop_num184, + prop_num185: this.prop_num185, + prop_num186: this.prop_num186, + prop_num187: this.prop_num187, + prop_num188: this.prop_num188, + prop_num189: this.prop_num189, + prop_num190: this.prop_num190, + prop_num191: this.prop_num191, + prop_num192: this.prop_num192, + prop_num193: this.prop_num193, + prop_num194: this.prop_num194, + prop_num195: this.prop_num195, + prop_num196: this.prop_num196, + prop_num197: this.prop_num197, + prop_num198: this.prop_num198, + prop_num199: this.prop_num199, + prop_num200: this.prop_num200, + prop_num201: this.prop_num201, + prop_num202: this.prop_num202, + prop_num203: this.prop_num203, + prop_num204: this.prop_num204, + prop_num205: this.prop_num205, + prop_num206: this.prop_num206, + prop_num207: this.prop_num207, + prop_num208: this.prop_num208, + prop_num209: this.prop_num209, + prop_num210: this.prop_num210, + prop_num211: this.prop_num211, + prop_num212: this.prop_num212, + prop_num213: this.prop_num213, + prop_num214: this.prop_num214, + prop_num215: this.prop_num215, + prop_num216: this.prop_num216, + prop_num217: this.prop_num217, + prop_num218: this.prop_num218, + prop_num219: this.prop_num219, + prop_num220: this.prop_num220, + prop_num221: this.prop_num221, + prop_num222: this.prop_num222, + prop_num223: this.prop_num223, + prop_num224: this.prop_num224, + prop_num225: this.prop_num225, + prop_num226: this.prop_num226, + prop_num227: this.prop_num227, + prop_num228: this.prop_num228, + prop_num229: this.prop_num229, + prop_num230: this.prop_num230, + prop_num231: this.prop_num231, + prop_num232: this.prop_num232, + prop_num233: this.prop_num233, + prop_num234: this.prop_num234, + prop_num235: this.prop_num235, + prop_num236: this.prop_num236, + prop_num237: this.prop_num237, + prop_num238: this.prop_num238, + prop_num239: this.prop_num239, + prop_num240: this.prop_num240, + prop_num241: this.prop_num241, + prop_num242: this.prop_num242, + prop_num243: this.prop_num243, + prop_num244: this.prop_num244, + prop_num245: this.prop_num245, + prop_num246: this.prop_num246, + prop_num247: this.prop_num247, + prop_num248: this.prop_num248, + prop_num249: this.prop_num249, + prop_num250: this.prop_num250, + prop_num251: this.prop_num251, + prop_num252: this.prop_num252, + prop_num253: this.prop_num253, + prop_num254: this.prop_num254, + prop_num255: this.prop_num255, + prop_num256: this.prop_num256, + prop_num257: this.prop_num257, + prop_num258: this.prop_num258, + prop_num259: this.prop_num259, + prop_num260: this.prop_num260, + prop_num261: this.prop_num261, + prop_num262: this.prop_num262, + prop_num263: this.prop_num263, + prop_num264: this.prop_num264, + prop_num265: this.prop_num265, + prop_num266: this.prop_num266, + prop_num267: this.prop_num267, + prop_num268: this.prop_num268, + prop_num269: this.prop_num269, + prop_num270: this.prop_num270, + prop_num271: this.prop_num271, + prop_num272: this.prop_num272, + prop_num273: this.prop_num273, + prop_num274: this.prop_num274, + prop_num275: this.prop_num275, + prop_num276: this.prop_num276, + prop_num277: this.prop_num277, + prop_num278: this.prop_num278, + prop_num279: this.prop_num279, + prop_num280: this.prop_num280, + prop_num281: this.prop_num281, + prop_num282: this.prop_num282, + prop_num283: this.prop_num283, + prop_num284: this.prop_num284, + prop_num285: this.prop_num285, + prop_num286: this.prop_num286, + prop_num287: this.prop_num287, + prop_num288: this.prop_num288, + prop_num289: this.prop_num289, + prop_num290: this.prop_num290, + prop_num291: this.prop_num291, + prop_num292: this.prop_num292, + prop_num293: this.prop_num293, + prop_num294: this.prop_num294, + prop_num295: this.prop_num295, + prop_num296: this.prop_num296, + prop_num297: this.prop_num297, + prop_num298: this.prop_num298, + prop_num299: this.prop_num299, + prop_num300: this.prop_num300, + prop_num301: this.prop_num301, + prop_num302: this.prop_num302, + prop_num303: this.prop_num303, + prop_num304: this.prop_num304, + prop_num305: this.prop_num305, + prop_num306: this.prop_num306, + prop_num307: this.prop_num307, + prop_num308: this.prop_num308, + prop_num309: this.prop_num309, + prop_num310: this.prop_num310, + prop_num311: this.prop_num311, + prop_num312: this.prop_num312, + prop_num313: this.prop_num313, + prop_num314: this.prop_num314, + prop_num315: this.prop_num315, + prop_num316: this.prop_num316, + prop_num317: this.prop_num317, + prop_num318: this.prop_num318, + prop_num319: this.prop_num319, + prop_num320: this.prop_num320, + prop_num321: this.prop_num321, + prop_num322: this.prop_num322, + prop_num323: this.prop_num323, + prop_num324: this.prop_num324, + prop_num325: this.prop_num325, + prop_num326: this.prop_num326, + prop_num327: this.prop_num327, + prop_num328: this.prop_num328, + prop_num329: this.prop_num329, + prop_num330: this.prop_num330, + prop_num331: this.prop_num331, + prop_num332: this.prop_num332, + prop_num333: this.prop_num333, + prop_num334: this.prop_num334, + prop_num335: this.prop_num335, + prop_num336: this.prop_num336, + prop_num337: this.prop_num337, + prop_num338: this.prop_num338, + prop_num339: this.prop_num339, + prop_num340: this.prop_num340, + prop_num341: this.prop_num341, + prop_num342: this.prop_num342, + prop_num343: this.prop_num343, + prop_num344: this.prop_num344, + prop_num345: this.prop_num345, + prop_num346: this.prop_num346, + prop_num347: this.prop_num347, + prop_num348: this.prop_num348, + prop_num349: this.prop_num349, + prop_num350: this.prop_num350, + prop_num351: this.prop_num351, + prop_num352: this.prop_num352, + prop_num353: this.prop_num353, + prop_num354: this.prop_num354, + prop_num355: this.prop_num355, + prop_num356: this.prop_num356, + prop_num357: this.prop_num357, + prop_num358: this.prop_num358, + prop_num359: this.prop_num359, + prop_num360: this.prop_num360, + prop_num361: this.prop_num361, + prop_num362: this.prop_num362, + prop_num363: this.prop_num363, + prop_num364: this.prop_num364, + prop_num365: this.prop_num365, + prop_num366: this.prop_num366, + prop_num367: this.prop_num367, + prop_num368: this.prop_num368, + prop_num369: this.prop_num369, + prop_num370: this.prop_num370, + prop_num371: this.prop_num371, + prop_num372: this.prop_num372, + prop_num373: this.prop_num373, + prop_num374: this.prop_num374, + prop_num375: this.prop_num375, + prop_num376: this.prop_num376, + prop_num377: this.prop_num377, + prop_num378: this.prop_num378, + prop_num379: this.prop_num379, + prop_num380: this.prop_num380, + prop_num381: this.prop_num381, + prop_num382: this.prop_num382, + prop_num383: this.prop_num383, + prop_num384: this.prop_num384, + prop_num385: this.prop_num385, + prop_num386: this.prop_num386, + prop_num387: this.prop_num387, + prop_num388: this.prop_num388, + prop_num389: this.prop_num389, + prop_num390: this.prop_num390, + prop_num391: this.prop_num391, + prop_num392: this.prop_num392, + prop_num393: this.prop_num393, + prop_num394: this.prop_num394, + prop_num395: this.prop_num395, + prop_num396: this.prop_num396, + prop_num397: this.prop_num397, + prop_num398: this.prop_num398, + prop_num399: this.prop_num399, + prop_num400: this.prop_num400, + prop_num401: this.prop_num401, + prop_num402: this.prop_num402, + prop_num403: this.prop_num403, + prop_num404: this.prop_num404, + prop_num405: this.prop_num405, + prop_num406: this.prop_num406, + prop_num407: this.prop_num407, + prop_num408: this.prop_num408, + prop_num409: this.prop_num409, + prop_num410: this.prop_num410, + prop_num411: this.prop_num411, + prop_num412: this.prop_num412, + prop_num413: this.prop_num413, + prop_num414: this.prop_num414, + prop_num415: this.prop_num415, + prop_num416: this.prop_num416, + prop_num417: this.prop_num417, + prop_num418: this.prop_num418, + prop_num419: this.prop_num419, + prop_num420: this.prop_num420, + prop_num421: this.prop_num421, + prop_num422: this.prop_num422, + prop_num423: this.prop_num423, + prop_num424: this.prop_num424, + prop_num425: this.prop_num425, + prop_num426: this.prop_num426, + prop_num427: this.prop_num427, + prop_num428: this.prop_num428, + prop_num429: this.prop_num429, + prop_num430: this.prop_num430, + prop_num431: this.prop_num431, + prop_num432: this.prop_num432, + prop_num433: this.prop_num433, + prop_num434: this.prop_num434, + prop_num435: this.prop_num435, + prop_num436: this.prop_num436, + prop_num437: this.prop_num437, + prop_num438: this.prop_num438, + prop_num439: this.prop_num439, + prop_num440: this.prop_num440, + prop_num441: this.prop_num441, + prop_num442: this.prop_num442, + prop_num443: this.prop_num443, + prop_num444: this.prop_num444, + prop_num445: this.prop_num445, + prop_num446: this.prop_num446, + prop_num447: this.prop_num447, + prop_num448: this.prop_num448, + prop_num449: this.prop_num449, + prop_num450: this.prop_num450, + prop_num451: this.prop_num451, + prop_num452: this.prop_num452, + prop_num453: this.prop_num453, + prop_num454: this.prop_num454, + prop_num455: this.prop_num455, + prop_num456: this.prop_num456, + prop_num457: this.prop_num457, + prop_num458: this.prop_num458, + prop_num459: this.prop_num459, + prop_num460: this.prop_num460, + prop_num461: this.prop_num461, + prop_num462: this.prop_num462, + prop_num463: this.prop_num463, + prop_num464: this.prop_num464, + prop_num465: this.prop_num465, + prop_num466: this.prop_num466, + prop_num467: this.prop_num467, + prop_num468: this.prop_num468, + prop_num469: this.prop_num469, + prop_num470: this.prop_num470, + prop_num471: this.prop_num471, + prop_num472: this.prop_num472, + prop_num473: this.prop_num473, + prop_num474: this.prop_num474, + prop_num475: this.prop_num475, + prop_num476: this.prop_num476, + prop_num477: this.prop_num477, + prop_num478: this.prop_num478, + prop_num479: this.prop_num479, + prop_num480: this.prop_num480, + prop_num481: this.prop_num481, + prop_num482: this.prop_num482, + prop_num483: this.prop_num483, + prop_num484: this.prop_num484, + prop_num485: this.prop_num485, + prop_num486: this.prop_num486, + prop_num487: this.prop_num487, + prop_num488: this.prop_num488, + prop_num489: this.prop_num489, + prop_num490: this.prop_num490, + prop_num491: this.prop_num491, + prop_num492: this.prop_num492, + prop_num493: this.prop_num493, + prop_num494: this.prop_num494, + prop_num495: this.prop_num495, + prop_num496: this.prop_num496, + prop_num497: this.prop_num497, + prop_num498: this.prop_num498, + prop_num499: this.prop_num499, + prop_num500: this.prop_num500, + prop_num501: this.prop_num501, + prop_num502: this.prop_num502, + prop_num503: this.prop_num503, + prop_num504: this.prop_num504, + prop_num505: this.prop_num505, + prop_num506: this.prop_num506, + prop_num507: this.prop_num507, + prop_num508: this.prop_num508, + prop_num509: this.prop_num509, + prop_num510: this.prop_num510, + prop_num511: this.prop_num511, + prop_num512: this.prop_num512, + prop_num513: this.prop_num513, + prop_num514: this.prop_num514, + prop_num515: this.prop_num515, + prop_num516: this.prop_num516, + prop_num517: this.prop_num517, + prop_num518: this.prop_num518, + prop_num519: this.prop_num519, + prop_num520: this.prop_num520, + prop_num521: this.prop_num521, + prop_num522: this.prop_num522, + prop_num523: this.prop_num523, + prop_num524: this.prop_num524, + prop_num525: this.prop_num525, + prop_num526: this.prop_num526, + prop_num527: this.prop_num527, + prop_num528: this.prop_num528, + prop_num529: this.prop_num529, + prop_num530: this.prop_num530, + prop_num531: this.prop_num531, + prop_num532: this.prop_num532, + prop_num533: this.prop_num533, + prop_num534: this.prop_num534, + prop_num535: this.prop_num535, + prop_num536: this.prop_num536, + prop_num537: this.prop_num537, + prop_num538: this.prop_num538, + prop_num539: this.prop_num539, + prop_num540: this.prop_num540, + prop_num541: this.prop_num541, + prop_num542: this.prop_num542, + prop_num543: this.prop_num543, + prop_num544: this.prop_num544, + prop_num545: this.prop_num545, + prop_num546: this.prop_num546, + prop_num547: this.prop_num547, + prop_num548: this.prop_num548, + prop_num549: this.prop_num549, + prop_num550: this.prop_num550, + prop_num551: this.prop_num551, + prop_num552: this.prop_num552, + prop_num553: this.prop_num553, + prop_num554: this.prop_num554, + prop_num555: this.prop_num555, + prop_num556: this.prop_num556, + prop_num557: this.prop_num557, + prop_num558: this.prop_num558, + prop_num559: this.prop_num559, + prop_num560: this.prop_num560, + prop_num561: this.prop_num561, + prop_num562: this.prop_num562, + prop_num563: this.prop_num563, + prop_num564: this.prop_num564, + prop_num565: this.prop_num565, + prop_num566: this.prop_num566, + prop_num567: this.prop_num567, + prop_num568: this.prop_num568, + prop_num569: this.prop_num569, + prop_num570: this.prop_num570, + prop_num571: this.prop_num571, + prop_num572: this.prop_num572, + prop_num573: this.prop_num573, + prop_num574: this.prop_num574, + prop_num575: this.prop_num575, + prop_num576: this.prop_num576, + prop_num577: this.prop_num577, + prop_num578: this.prop_num578, + prop_num579: this.prop_num579, + prop_num580: this.prop_num580, + prop_num581: this.prop_num581, + prop_num582: this.prop_num582, + prop_num583: this.prop_num583, + prop_num584: this.prop_num584, + prop_num585: this.prop_num585, + prop_num586: this.prop_num586, + prop_num587: this.prop_num587, + prop_num588: this.prop_num588, + prop_num589: this.prop_num589, + prop_num590: this.prop_num590, + prop_num591: this.prop_num591, + prop_num592: this.prop_num592, + prop_num593: this.prop_num593, + prop_num594: this.prop_num594, + prop_num595: this.prop_num595, + prop_num596: this.prop_num596, + prop_num597: this.prop_num597, + prop_num598: this.prop_num598, + prop_num599: this.prop_num599, + prop_num600: this.prop_num600, + prop_num601: this.prop_num601, + prop_num602: this.prop_num602, + prop_num603: this.prop_num603, + prop_num604: this.prop_num604, + prop_num605: this.prop_num605, + prop_num606: this.prop_num606, + prop_num607: this.prop_num607, + prop_num608: this.prop_num608, + prop_num609: this.prop_num609, + prop_num610: this.prop_num610, + prop_num611: this.prop_num611, + prop_num612: this.prop_num612, + prop_num613: this.prop_num613, + prop_num614: this.prop_num614, + prop_num615: this.prop_num615, + prop_num616: this.prop_num616, + prop_num617: this.prop_num617, + prop_num618: this.prop_num618, + prop_num619: this.prop_num619, + prop_num620: this.prop_num620, + prop_num621: this.prop_num621, + prop_num622: this.prop_num622, + prop_num623: this.prop_num623, + prop_num624: this.prop_num624, + prop_num625: this.prop_num625, + prop_num626: this.prop_num626, + prop_num627: this.prop_num627, + prop_num628: this.prop_num628, + prop_num629: this.prop_num629, + prop_num630: this.prop_num630, + prop_num631: this.prop_num631, + prop_num632: this.prop_num632, + prop_num633: this.prop_num633, + prop_num634: this.prop_num634, + prop_num635: this.prop_num635, + prop_num636: this.prop_num636, + prop_num637: this.prop_num637, + prop_num638: this.prop_num638, + prop_num639: this.prop_num639, + prop_num640: this.prop_num640, + prop_num641: this.prop_num641, + prop_num642: this.prop_num642, + prop_num643: this.prop_num643, + prop_num644: this.prop_num644, + prop_num645: this.prop_num645, + prop_num646: this.prop_num646, + prop_num647: this.prop_num647, + prop_num648: this.prop_num648, + prop_num649: this.prop_num649, + prop_num650: this.prop_num650, + prop_num651: this.prop_num651, + prop_num652: this.prop_num652, + prop_num653: this.prop_num653, + prop_num654: this.prop_num654, + prop_num655: this.prop_num655, + prop_num656: this.prop_num656, + prop_num657: this.prop_num657, + prop_num658: this.prop_num658, + prop_num659: this.prop_num659, + prop_num660: this.prop_num660, + prop_num661: this.prop_num661, + prop_num662: this.prop_num662, + prop_num663: this.prop_num663, + prop_num664: this.prop_num664, + prop_num665: this.prop_num665, + prop_num666: this.prop_num666, + prop_num667: this.prop_num667, + prop_num668: this.prop_num668, + prop_num669: this.prop_num669, + prop_num670: this.prop_num670, + prop_num671: this.prop_num671, + prop_num672: this.prop_num672, + prop_num673: this.prop_num673, + prop_num674: this.prop_num674, + prop_num675: this.prop_num675, + prop_num676: this.prop_num676, + prop_num677: this.prop_num677, + prop_num678: this.prop_num678, + prop_num679: this.prop_num679, + prop_num680: this.prop_num680, + prop_num681: this.prop_num681, + prop_num682: this.prop_num682, + prop_num683: this.prop_num683, + prop_num684: this.prop_num684, + prop_num685: this.prop_num685, + prop_num686: this.prop_num686, + prop_num687: this.prop_num687, + prop_num688: this.prop_num688, + prop_num689: this.prop_num689, + prop_num690: this.prop_num690, + prop_num691: this.prop_num691, + prop_num692: this.prop_num692, + prop_num693: this.prop_num693, + prop_num694: this.prop_num694, + prop_num695: this.prop_num695, + prop_num696: this.prop_num696, + prop_num697: this.prop_num697, + prop_num698: this.prop_num698, + prop_num699: this.prop_num699, + prop_num700: this.prop_num700, + prop_num701: this.prop_num701, + prop_num702: this.prop_num702, + prop_num703: this.prop_num703, + prop_num704: this.prop_num704, + prop_num705: this.prop_num705, + prop_num706: this.prop_num706, + prop_num707: this.prop_num707, + prop_num708: this.prop_num708, + prop_num709: this.prop_num709, + prop_num710: this.prop_num710, + prop_num711: this.prop_num711, + prop_num712: this.prop_num712, + prop_num713: this.prop_num713, + prop_num714: this.prop_num714, + prop_num715: this.prop_num715, + prop_num716: this.prop_num716, + prop_num717: this.prop_num717, + prop_num718: this.prop_num718, + prop_num719: this.prop_num719, + prop_num720: this.prop_num720, + prop_num721: this.prop_num721, + prop_num722: this.prop_num722, + prop_num723: this.prop_num723, + prop_num724: this.prop_num724, + prop_num725: this.prop_num725, + prop_num726: this.prop_num726, + prop_num727: this.prop_num727, + prop_num728: this.prop_num728, + prop_num729: this.prop_num729, + prop_num730: this.prop_num730, + prop_num731: this.prop_num731, + prop_num732: this.prop_num732, + prop_num733: this.prop_num733, + prop_num734: this.prop_num734, + prop_num735: this.prop_num735, + prop_num736: this.prop_num736, + prop_num737: this.prop_num737, + prop_num738: this.prop_num738, + prop_num739: this.prop_num739, + prop_num740: this.prop_num740, + prop_num741: this.prop_num741, + prop_num742: this.prop_num742, + prop_num743: this.prop_num743, + prop_num744: this.prop_num744, + prop_num745: this.prop_num745, + prop_num746: this.prop_num746, + prop_num747: this.prop_num747, + prop_num748: this.prop_num748, + prop_num749: this.prop_num749, + prop_num750: this.prop_num750, + prop_num751: this.prop_num751, + prop_num752: this.prop_num752, + prop_num753: this.prop_num753, + prop_num754: this.prop_num754, + prop_num755: this.prop_num755, + prop_num756: this.prop_num756, + prop_num757: this.prop_num757, + prop_num758: this.prop_num758, + prop_num759: this.prop_num759, + prop_num760: this.prop_num760, + prop_num761: this.prop_num761, + prop_num762: this.prop_num762, + prop_num763: this.prop_num763, + prop_num764: this.prop_num764, + prop_num765: this.prop_num765, + prop_num766: this.prop_num766, + prop_num767: this.prop_num767, + prop_num768: this.prop_num768, + prop_num769: this.prop_num769, + prop_num770: this.prop_num770, + prop_num771: this.prop_num771, + prop_num772: this.prop_num772, + prop_num773: this.prop_num773, + prop_num774: this.prop_num774, + prop_num775: this.prop_num775, + prop_num776: this.prop_num776, + prop_num777: this.prop_num777, + prop_num778: this.prop_num778, + prop_num779: this.prop_num779, + prop_num780: this.prop_num780, + prop_num781: this.prop_num781, + prop_num782: this.prop_num782, + prop_num783: this.prop_num783, + prop_num784: this.prop_num784, + prop_num785: this.prop_num785, + prop_num786: this.prop_num786, + prop_num787: this.prop_num787, + prop_num788: this.prop_num788, + prop_num789: this.prop_num789, + prop_num790: this.prop_num790, + prop_num791: this.prop_num791, + prop_num792: this.prop_num792, + prop_num793: this.prop_num793, + prop_num794: this.prop_num794, + prop_num795: this.prop_num795, + prop_num796: this.prop_num796, + prop_num797: this.prop_num797, + prop_num798: this.prop_num798, + prop_num799: this.prop_num799, + prop_num800: this.prop_num800, + prop_num801: this.prop_num801, + prop_num802: this.prop_num802, + prop_num803: this.prop_num803, + prop_num804: this.prop_num804, + prop_num805: this.prop_num805, + prop_num806: this.prop_num806, + prop_num807: this.prop_num807, + prop_num808: this.prop_num808, + prop_num809: this.prop_num809, + prop_num810: this.prop_num810, + prop_num811: this.prop_num811, + prop_num812: this.prop_num812, + prop_num813: this.prop_num813, + prop_num814: this.prop_num814, + prop_num815: this.prop_num815, + prop_num816: this.prop_num816, + prop_num817: this.prop_num817, + prop_num818: this.prop_num818, + prop_num819: this.prop_num819, + prop_num820: this.prop_num820, + prop_num821: this.prop_num821, + prop_num822: this.prop_num822, + prop_num823: this.prop_num823, + prop_num824: this.prop_num824, + prop_num825: this.prop_num825, + prop_num826: this.prop_num826, + prop_num827: this.prop_num827, + prop_num828: this.prop_num828, + prop_num829: this.prop_num829, + prop_num830: this.prop_num830, + prop_num831: this.prop_num831, + prop_num832: this.prop_num832, + prop_num833: this.prop_num833, + prop_num834: this.prop_num834, + prop_num835: this.prop_num835, + prop_num836: this.prop_num836, + prop_num837: this.prop_num837, + prop_num838: this.prop_num838, + prop_num839: this.prop_num839, + prop_num840: this.prop_num840, + prop_num841: this.prop_num841, + prop_num842: this.prop_num842, + prop_num843: this.prop_num843, + prop_num844: this.prop_num844, + prop_num845: this.prop_num845, + prop_num846: this.prop_num846, + prop_num847: this.prop_num847, + prop_num848: this.prop_num848, + prop_num849: this.prop_num849, + prop_num850: this.prop_num850, + prop_num851: this.prop_num851, + prop_num852: this.prop_num852, + prop_num853: this.prop_num853, + prop_num854: this.prop_num854, + prop_num855: this.prop_num855, + prop_num856: this.prop_num856, + prop_num857: this.prop_num857, + prop_num858: this.prop_num858, + prop_num859: this.prop_num859, + prop_num860: this.prop_num860, + prop_num861: this.prop_num861, + prop_num862: this.prop_num862, + prop_num863: this.prop_num863, + prop_num864: this.prop_num864, + prop_num865: this.prop_num865, + prop_num866: this.prop_num866, + prop_num867: this.prop_num867, + prop_num868: this.prop_num868, + prop_num869: this.prop_num869, + prop_num870: this.prop_num870, + prop_num871: this.prop_num871, + prop_num872: this.prop_num872, + prop_num873: this.prop_num873, + prop_num874: this.prop_num874, + prop_num875: this.prop_num875, + prop_num876: this.prop_num876, + prop_num877: this.prop_num877, + prop_num878: this.prop_num878, + prop_num879: this.prop_num879, + prop_num880: this.prop_num880, + prop_num881: this.prop_num881, + prop_num882: this.prop_num882, + prop_num883: this.prop_num883, + prop_num884: this.prop_num884, + prop_num885: this.prop_num885, + prop_num886: this.prop_num886, + prop_num887: this.prop_num887, + prop_num888: this.prop_num888, + prop_num889: this.prop_num889, + prop_num890: this.prop_num890, + prop_num891: this.prop_num891, + prop_num892: this.prop_num892, + prop_num893: this.prop_num893, + prop_num894: this.prop_num894, + prop_num895: this.prop_num895, + prop_num896: this.prop_num896, + prop_num897: this.prop_num897, + prop_num898: this.prop_num898, + prop_num899: this.prop_num899, + prop_num900: this.prop_num900, + prop_num901: this.prop_num901, + prop_num902: this.prop_num902, + prop_num903: this.prop_num903, + prop_num904: this.prop_num904, + prop_num905: this.prop_num905, + prop_num906: this.prop_num906, + prop_num907: this.prop_num907, + prop_num908: this.prop_num908, + prop_num909: this.prop_num909, + prop_num910: this.prop_num910, + prop_num911: this.prop_num911, + prop_num912: this.prop_num912, + prop_num913: this.prop_num913, + prop_num914: this.prop_num914, + prop_num915: this.prop_num915, + prop_num916: this.prop_num916, + prop_num917: this.prop_num917, + prop_num918: this.prop_num918, + prop_num919: this.prop_num919, + prop_num920: this.prop_num920, + prop_num921: this.prop_num921, + prop_num922: this.prop_num922, + prop_num923: this.prop_num923, + prop_num924: this.prop_num924, + prop_num925: this.prop_num925, + prop_num926: this.prop_num926, + prop_num927: this.prop_num927, + prop_num928: this.prop_num928, + prop_num929: this.prop_num929, + prop_num930: this.prop_num930, + prop_num931: this.prop_num931, + prop_num932: this.prop_num932, + prop_num933: this.prop_num933, + prop_num934: this.prop_num934, + prop_num935: this.prop_num935, + prop_num936: this.prop_num936, + prop_num937: this.prop_num937, + prop_num938: this.prop_num938, + prop_num939: this.prop_num939, + prop_num940: this.prop_num940, + prop_num941: this.prop_num941, + prop_num942: this.prop_num942, + prop_num943: this.prop_num943, + prop_num944: this.prop_num944, + prop_num945: this.prop_num945, + prop_num946: this.prop_num946, + prop_num947: this.prop_num947, + prop_num948: this.prop_num948, + prop_num949: this.prop_num949, + prop_num950: this.prop_num950, + prop_num951: this.prop_num951, + prop_num952: this.prop_num952, + prop_num953: this.prop_num953, + prop_num954: this.prop_num954, + prop_num955: this.prop_num955, + prop_num956: this.prop_num956, + prop_num957: this.prop_num957, + prop_num958: this.prop_num958, + prop_num959: this.prop_num959, + prop_num960: this.prop_num960, + prop_num961: this.prop_num961, + prop_num962: this.prop_num962, + prop_num963: this.prop_num963, + prop_num964: this.prop_num964, + prop_num965: this.prop_num965, + prop_num966: this.prop_num966, + prop_num967: this.prop_num967, + prop_num968: this.prop_num968, + prop_num969: this.prop_num969, + prop_num970: this.prop_num970, + prop_num971: this.prop_num971, + prop_num972: this.prop_num972, + prop_num973: this.prop_num973, + prop_num974: this.prop_num974, + prop_num975: this.prop_num975, + prop_num976: this.prop_num976, + prop_num977: this.prop_num977, + prop_num978: this.prop_num978, + prop_num979: this.prop_num979, + prop_num980: this.prop_num980, + prop_num981: this.prop_num981, + prop_num982: this.prop_num982, + prop_num983: this.prop_num983, + prop_num984: this.prop_num984, + prop_num985: this.prop_num985, + prop_num986: this.prop_num986, + prop_num987: this.prop_num987, + prop_num988: this.prop_num988, + prop_num989: this.prop_num989, + prop_num990: this.prop_num990, + prop_num991: this.prop_num991, + prop_num992: this.prop_num992, + prop_num993: this.prop_num993, + prop_num994: this.prop_num994, + prop_num995: this.prop_num995, + prop_num996: this.prop_num996, + prop_num997: this.prop_num997, + prop_num998: this.prop_num998, + prop_num999: this.prop_num999, + prop_num1000: this.prop_num1000, + prop_num1001: this.prop_num1001, + prop_num1002: this.prop_num1002, + prop_num1003: this.prop_num1003, + prop_num1004: this.prop_num1004, + prop_num1005: this.prop_num1005, + prop_num1006: this.prop_num1006, + prop_num1007: this.prop_num1007, + prop_num1008: this.prop_num1008, + prop_num1009: this.prop_num1009, + prop_num1010: this.prop_num1010, + prop_num1011: this.prop_num1011, + prop_num1012: this.prop_num1012, + prop_num1013: this.prop_num1013, + prop_num1014: this.prop_num1014, + prop_num1015: this.prop_num1015, + prop_num1016: this.prop_num1016, + prop_num1017: this.prop_num1017, + prop_num1018: this.prop_num1018, + prop_num1019: this.prop_num1019, + prop_num1020: this.prop_num1020, + prop_num1021: this.prop_num1021, + prop_num1022: this.prop_num1022, + prop_num1023: this.prop_num1023, + prop_num1024: this.prop_num1024, + prop_num1025: this.prop_num1025, + prop_num1026: this.prop_num1026, + prop_num1027: this.prop_num1027, + prop_num1028: this.prop_num1028, + prop_num1029: this.prop_num1029, + prop_num1030: this.prop_num1030, + prop_num1031: this.prop_num1031, + prop_num1032: this.prop_num1032, + prop_num1033: this.prop_num1033, + prop_num1034: this.prop_num1034, + prop_num1035: this.prop_num1035, + prop_num1036: this.prop_num1036, + prop_num1037: this.prop_num1037, + prop_num1038: this.prop_num1038, + prop_num1039: this.prop_num1039, + prop_num1040: this.prop_num1040, + prop_num1041: this.prop_num1041, + prop_num1042: this.prop_num1042, + prop_num1043: this.prop_num1043, + prop_num1044: this.prop_num1044, + prop_num1045: this.prop_num1045, + prop_num1046: this.prop_num1046, + prop_num1047: this.prop_num1047, + prop_num1048: this.prop_num1048, + prop_num1049: this.prop_num1049, + prop_num1050: this.prop_num1050, + prop_num1051: this.prop_num1051, + prop_num1052: this.prop_num1052, + prop_num1053: this.prop_num1053, + prop_num1054: this.prop_num1054, + prop_num1055: this.prop_num1055, + prop_num1056: this.prop_num1056, + prop_num1057: this.prop_num1057, + prop_num1058: this.prop_num1058, + prop_num1059: this.prop_num1059, + prop_num1060: this.prop_num1060, + prop_num1061: this.prop_num1061, + prop_num1062: this.prop_num1062, + prop_num1063: this.prop_num1063, + prop_num1064: this.prop_num1064, + prop_num1065: this.prop_num1065, + prop_num1066: this.prop_num1066, + prop_num1067: this.prop_num1067, + prop_num1068: this.prop_num1068, + prop_num1069: this.prop_num1069, + prop_num1070: this.prop_num1070, + prop_num1071: this.prop_num1071, + prop_num1072: this.prop_num1072, + prop_num1073: this.prop_num1073, + prop_num1074: this.prop_num1074, + prop_num1075: this.prop_num1075, + prop_num1076: this.prop_num1076, + prop_num1077: this.prop_num1077, + prop_num1078: this.prop_num1078, + prop_num1079: this.prop_num1079, + prop_num1080: this.prop_num1080, + prop_num1081: this.prop_num1081, + prop_num1082: this.prop_num1082, + prop_num1083: this.prop_num1083, + prop_num1084: this.prop_num1084, + prop_num1085: this.prop_num1085, + prop_num1086: this.prop_num1086, + prop_num1087: this.prop_num1087, + prop_num1088: this.prop_num1088, + prop_num1089: this.prop_num1089, + prop_num1090: this.prop_num1090, + prop_num1091: this.prop_num1091, + prop_num1092: this.prop_num1092, + prop_num1093: this.prop_num1093, + prop_num1094: this.prop_num1094, + prop_num1095: this.prop_num1095, + prop_num1096: this.prop_num1096, + prop_num1097: this.prop_num1097, + prop_num1098: this.prop_num1098, + prop_num1099: this.prop_num1099, + prop_num1100: this.prop_num1100, + prop_num1101: this.prop_num1101, + prop_num1102: this.prop_num1102, + prop_num1103: this.prop_num1103, + prop_num1104: this.prop_num1104, + prop_num1105: this.prop_num1105, + prop_num1106: this.prop_num1106, + prop_num1107: this.prop_num1107, + prop_num1108: this.prop_num1108, + prop_num1109: this.prop_num1109, + prop_num1110: this.prop_num1110, + prop_num1111: this.prop_num1111, + prop_num1112: this.prop_num1112, + prop_num1113: this.prop_num1113, + prop_num1114: this.prop_num1114, + prop_num1115: this.prop_num1115, + prop_num1116: this.prop_num1116, + prop_num1117: this.prop_num1117, + prop_num1118: this.prop_num1118, + prop_num1119: this.prop_num1119, + prop_num1120: this.prop_num1120, + prop_num1121: this.prop_num1121, + prop_num1122: this.prop_num1122, + prop_num1123: this.prop_num1123, + prop_num1124: this.prop_num1124, + prop_num1125: this.prop_num1125, + prop_num1126: this.prop_num1126, + prop_num1127: this.prop_num1127, + prop_num1128: this.prop_num1128, + prop_num1129: this.prop_num1129, + prop_num1130: this.prop_num1130, + prop_num1131: this.prop_num1131, + prop_num1132: this.prop_num1132, + prop_num1133: this.prop_num1133, + prop_num1134: this.prop_num1134, + prop_num1135: this.prop_num1135, + prop_num1136: this.prop_num1136, + prop_num1137: this.prop_num1137, + prop_num1138: this.prop_num1138, + prop_num1139: this.prop_num1139, + prop_num1140: this.prop_num1140, + prop_num1141: this.prop_num1141, + prop_num1142: this.prop_num1142, + prop_num1143: this.prop_num1143, + prop_num1144: this.prop_num1144, + prop_num1145: this.prop_num1145, + prop_num1146: this.prop_num1146, + prop_num1147: this.prop_num1147, + prop_num1148: this.prop_num1148, + prop_num1149: this.prop_num1149, + prop_num1150: this.prop_num1150, + prop_num1151: this.prop_num1151, + prop_num1152: this.prop_num1152, + prop_num1153: this.prop_num1153, + prop_num1154: this.prop_num1154, + prop_num1155: this.prop_num1155, + prop_num1156: this.prop_num1156, + prop_num1157: this.prop_num1157, + prop_num1158: this.prop_num1158, + prop_num1159: this.prop_num1159, + prop_num1160: this.prop_num1160, + prop_num1161: this.prop_num1161, + prop_num1162: this.prop_num1162, + prop_num1163: this.prop_num1163, + prop_num1164: this.prop_num1164, + prop_num1165: this.prop_num1165, + prop_num1166: this.prop_num1166, + prop_num1167: this.prop_num1167, + prop_num1168: this.prop_num1168, + prop_num1169: this.prop_num1169, + prop_num1170: this.prop_num1170, + prop_num1171: this.prop_num1171, + prop_num1172: this.prop_num1172, + prop_num1173: this.prop_num1173, + prop_num1174: this.prop_num1174, + prop_num1175: this.prop_num1175, + prop_num1176: this.prop_num1176, + prop_num1177: this.prop_num1177, + prop_num1178: this.prop_num1178, + prop_num1179: this.prop_num1179, + prop_num1180: this.prop_num1180, + prop_num1181: this.prop_num1181, + prop_num1182: this.prop_num1182, + prop_num1183: this.prop_num1183, + prop_num1184: this.prop_num1184, + prop_num1185: this.prop_num1185, + prop_num1186: this.prop_num1186, + prop_num1187: this.prop_num1187, + prop_num1188: this.prop_num1188, + prop_num1189: this.prop_num1189, + prop_num1190: this.prop_num1190, + prop_num1191: this.prop_num1191, + prop_num1192: this.prop_num1192, + prop_num1193: this.prop_num1193, + prop_num1194: this.prop_num1194, + prop_num1195: this.prop_num1195, + prop_num1196: this.prop_num1196, + prop_num1197: this.prop_num1197, + prop_num1198: this.prop_num1198, + prop_num1199: this.prop_num1199, + prop_num1200: this.prop_num1200, + prop_num1201: this.prop_num1201, + prop_num1202: this.prop_num1202, + prop_num1203: this.prop_num1203, + prop_num1204: this.prop_num1204, + prop_num1205: this.prop_num1205, + prop_num1206: this.prop_num1206, + prop_num1207: this.prop_num1207, + prop_num1208: this.prop_num1208, + prop_num1209: this.prop_num1209, + prop_num1210: this.prop_num1210, + prop_num1211: this.prop_num1211, + prop_num1212: this.prop_num1212, + prop_num1213: this.prop_num1213, + prop_num1214: this.prop_num1214, + prop_num1215: this.prop_num1215, + prop_num1216: this.prop_num1216, + prop_num1217: this.prop_num1217, + prop_num1218: this.prop_num1218, + prop_num1219: this.prop_num1219, + prop_num1220: this.prop_num1220, + prop_num1221: this.prop_num1221, + prop_num1222: this.prop_num1222, + prop_num1223: this.prop_num1223, + prop_num1224: this.prop_num1224, + prop_num1225: this.prop_num1225, + prop_num1226: this.prop_num1226, + prop_num1227: this.prop_num1227, + prop_num1228: this.prop_num1228, + prop_num1229: this.prop_num1229, + prop_num1230: this.prop_num1230, + prop_num1231: this.prop_num1231, + prop_num1232: this.prop_num1232, + prop_num1233: this.prop_num1233, + prop_num1234: this.prop_num1234, + prop_num1235: this.prop_num1235, + prop_num1236: this.prop_num1236, + prop_num1237: this.prop_num1237, + prop_num1238: this.prop_num1238, + prop_num1239: this.prop_num1239, + prop_num1240: this.prop_num1240, + prop_num1241: this.prop_num1241, + prop_num1242: this.prop_num1242, + prop_num1243: this.prop_num1243, + prop_num1244: this.prop_num1244, + prop_num1245: this.prop_num1245, + prop_num1246: this.prop_num1246, + prop_num1247: this.prop_num1247, + prop_num1248: this.prop_num1248, + prop_num1249: this.prop_num1249, + prop_num1250: this.prop_num1250, + prop_num1251: this.prop_num1251, + prop_num1252: this.prop_num1252, + prop_num1253: this.prop_num1253, + prop_num1254: this.prop_num1254, + prop_num1255: this.prop_num1255, + prop_num1256: this.prop_num1256, + prop_num1257: this.prop_num1257, + prop_num1258: this.prop_num1258, + prop_num1259: this.prop_num1259, + prop_num1260: this.prop_num1260, + prop_num1261: this.prop_num1261, + prop_num1262: this.prop_num1262, + prop_num1263: this.prop_num1263, + prop_num1264: this.prop_num1264, + prop_num1265: this.prop_num1265, + prop_num1266: this.prop_num1266, + prop_num1267: this.prop_num1267, + prop_num1268: this.prop_num1268, + prop_num1269: this.prop_num1269, + prop_num1270: this.prop_num1270, + prop_num1271: this.prop_num1271, + prop_num1272: this.prop_num1272, + prop_num1273: this.prop_num1273, + prop_num1274: this.prop_num1274, + prop_num1275: this.prop_num1275, + prop_num1276: this.prop_num1276, + prop_num1277: this.prop_num1277, + prop_num1278: this.prop_num1278, + prop_num1279: this.prop_num1279, + prop_num1280: this.prop_num1280, + prop_num1281: this.prop_num1281, + prop_num1282: this.prop_num1282, + prop_num1283: this.prop_num1283, + prop_num1284: this.prop_num1284, + prop_num1285: this.prop_num1285, + prop_num1286: this.prop_num1286, + prop_num1287: this.prop_num1287, + prop_num1288: this.prop_num1288, + prop_num1289: this.prop_num1289, + prop_num1290: this.prop_num1290, + prop_num1291: this.prop_num1291, + prop_num1292: this.prop_num1292, + prop_num1293: this.prop_num1293, + prop_num1294: this.prop_num1294, + prop_num1295: this.prop_num1295, + prop_num1296: this.prop_num1296, + prop_num1297: this.prop_num1297, + prop_num1298: this.prop_num1298, + prop_num1299: this.prop_num1299, + prop_num1300: this.prop_num1300, + prop_num1301: this.prop_num1301, + prop_num1302: this.prop_num1302, + prop_num1303: this.prop_num1303, + prop_num1304: this.prop_num1304, + prop_num1305: this.prop_num1305, + prop_num1306: this.prop_num1306, + prop_num1307: this.prop_num1307, + prop_num1308: this.prop_num1308, + prop_num1309: this.prop_num1309, + prop_num1310: this.prop_num1310, + prop_num1311: this.prop_num1311, + prop_num1312: this.prop_num1312, + prop_num1313: this.prop_num1313, + prop_num1314: this.prop_num1314, + prop_num1315: this.prop_num1315, + prop_num1316: this.prop_num1316, + prop_num1317: this.prop_num1317, + prop_num1318: this.prop_num1318, + prop_num1319: this.prop_num1319, + prop_num1320: this.prop_num1320, + prop_num1321: this.prop_num1321, + prop_num1322: this.prop_num1322, + prop_num1323: this.prop_num1323, + prop_num1324: this.prop_num1324, + prop_num1325: this.prop_num1325, + prop_num1326: this.prop_num1326, + prop_num1327: this.prop_num1327, + prop_num1328: this.prop_num1328, + prop_num1329: this.prop_num1329, + prop_num1330: this.prop_num1330, + prop_num1331: this.prop_num1331, + prop_num1332: this.prop_num1332, + prop_num1333: this.prop_num1333, + prop_num1334: this.prop_num1334, + prop_num1335: this.prop_num1335, + prop_num1336: this.prop_num1336, + prop_num1337: this.prop_num1337, + prop_num1338: this.prop_num1338, + prop_num1339: this.prop_num1339, + prop_num1340: this.prop_num1340, + prop_num1341: this.prop_num1341, + prop_num1342: this.prop_num1342, + prop_num1343: this.prop_num1343, + prop_num1344: this.prop_num1344, + prop_num1345: this.prop_num1345, + prop_num1346: this.prop_num1346, + prop_num1347: this.prop_num1347, + prop_num1348: this.prop_num1348, + prop_num1349: this.prop_num1349, + prop_num1350: this.prop_num1350, + prop_num1351: this.prop_num1351, + prop_num1352: this.prop_num1352, + prop_num1353: this.prop_num1353, + prop_num1354: this.prop_num1354, + prop_num1355: this.prop_num1355, + prop_num1356: this.prop_num1356, + prop_num1357: this.prop_num1357, + prop_num1358: this.prop_num1358, + prop_num1359: this.prop_num1359, + prop_num1360: this.prop_num1360, + prop_num1361: this.prop_num1361, + prop_num1362: this.prop_num1362, + prop_num1363: this.prop_num1363, + prop_num1364: this.prop_num1364, + prop_num1365: this.prop_num1365, + prop_num1366: this.prop_num1366, + prop_num1367: this.prop_num1367, + prop_num1368: this.prop_num1368, + prop_num1369: this.prop_num1369, + prop_num1370: this.prop_num1370, + prop_num1371: this.prop_num1371, + prop_num1372: this.prop_num1372, + prop_num1373: this.prop_num1373, + prop_num1374: this.prop_num1374, + prop_num1375: this.prop_num1375, + prop_num1376: this.prop_num1376, + prop_num1377: this.prop_num1377, + prop_num1378: this.prop_num1378, + prop_num1379: this.prop_num1379, + prop_num1380: this.prop_num1380, + prop_num1381: this.prop_num1381, + prop_num1382: this.prop_num1382, + prop_num1383: this.prop_num1383, + prop_num1384: this.prop_num1384, + prop_num1385: this.prop_num1385, + prop_num1386: this.prop_num1386, + prop_num1387: this.prop_num1387, + prop_num1388: this.prop_num1388, + prop_num1389: this.prop_num1389, + prop_num1390: this.prop_num1390, + prop_num1391: this.prop_num1391, + prop_num1392: this.prop_num1392, + prop_num1393: this.prop_num1393, + prop_num1394: this.prop_num1394, + prop_num1395: this.prop_num1395, + prop_num1396: this.prop_num1396, + prop_num1397: this.prop_num1397, + prop_num1398: this.prop_num1398, + prop_num1399: this.prop_num1399, + prop_num1400: this.prop_num1400, + prop_num1401: this.prop_num1401, + prop_num1402: this.prop_num1402, + prop_num1403: this.prop_num1403, + prop_num1404: this.prop_num1404, + prop_num1405: this.prop_num1405, + prop_num1406: this.prop_num1406, + prop_num1407: this.prop_num1407, + prop_num1408: this.prop_num1408, + prop_num1409: this.prop_num1409, + prop_num1410: this.prop_num1410, + prop_num1411: this.prop_num1411, + prop_num1412: this.prop_num1412, + prop_num1413: this.prop_num1413, + prop_num1414: this.prop_num1414, + prop_num1415: this.prop_num1415, + prop_num1416: this.prop_num1416, + prop_num1417: this.prop_num1417, + prop_num1418: this.prop_num1418, + prop_num1419: this.prop_num1419, + prop_num1420: this.prop_num1420, + prop_num1421: this.prop_num1421, + prop_num1422: this.prop_num1422, + prop_num1423: this.prop_num1423, + prop_num1424: this.prop_num1424, + prop_num1425: this.prop_num1425, + prop_num1426: this.prop_num1426, + prop_num1427: this.prop_num1427, + prop_num1428: this.prop_num1428, + prop_num1429: this.prop_num1429, + prop_num1430: this.prop_num1430, + prop_num1431: this.prop_num1431, + prop_num1432: this.prop_num1432, + prop_num1433: this.prop_num1433, + prop_num1434: this.prop_num1434, + prop_num1435: this.prop_num1435, + prop_num1436: this.prop_num1436, + prop_num1437: this.prop_num1437, + prop_num1438: this.prop_num1438, + prop_num1439: this.prop_num1439, + prop_num1440: this.prop_num1440, + prop_num1441: this.prop_num1441, + prop_num1442: this.prop_num1442, + prop_num1443: this.prop_num1443, + prop_num1444: this.prop_num1444, + prop_num1445: this.prop_num1445, + prop_num1446: this.prop_num1446, + prop_num1447: this.prop_num1447, + prop_num1448: this.prop_num1448, + prop_num1449: this.prop_num1449, + prop_num1450: this.prop_num1450, + prop_num1451: this.prop_num1451, + prop_num1452: this.prop_num1452, + prop_num1453: this.prop_num1453, + prop_num1454: this.prop_num1454, + prop_num1455: this.prop_num1455, + prop_num1456: this.prop_num1456, + prop_num1457: this.prop_num1457, + prop_num1458: this.prop_num1458, + prop_num1459: this.prop_num1459, + prop_num1460: this.prop_num1460, + prop_num1461: this.prop_num1461, + prop_num1462: this.prop_num1462, + prop_num1463: this.prop_num1463, + prop_num1464: this.prop_num1464, + prop_num1465: this.prop_num1465, + prop_num1466: this.prop_num1466, + prop_num1467: this.prop_num1467, + prop_num1468: this.prop_num1468, + prop_num1469: this.prop_num1469, + prop_num1470: this.prop_num1470, + prop_num1471: this.prop_num1471, + prop_num1472: this.prop_num1472, + prop_num1473: this.prop_num1473, + prop_num1474: this.prop_num1474, + prop_num1475: this.prop_num1475, + prop_num1476: this.prop_num1476, + prop_num1477: this.prop_num1477, + prop_num1478: this.prop_num1478, + prop_num1479: this.prop_num1479, + prop_num1480: this.prop_num1480, + prop_num1481: this.prop_num1481, + prop_num1482: this.prop_num1482, + prop_num1483: this.prop_num1483, + prop_num1484: this.prop_num1484, + prop_num1485: this.prop_num1485, + prop_num1486: this.prop_num1486, + prop_num1487: this.prop_num1487, + prop_num1488: this.prop_num1488, + prop_num1489: this.prop_num1489, + prop_num1490: this.prop_num1490, + prop_num1491: this.prop_num1491, + prop_num1492: this.prop_num1492, + prop_num1493: this.prop_num1493, + prop_num1494: this.prop_num1494, + prop_num1495: this.prop_num1495, + prop_num1496: this.prop_num1496, + prop_num1497: this.prop_num1497, + prop_num1498: this.prop_num1498, + prop_num1499: this.prop_num1499, + prop_num1500: this.prop_num1500, + prop_num1501: this.prop_num1501, + prop_num1502: this.prop_num1502, + prop_num1503: this.prop_num1503, + prop_num1504: this.prop_num1504, + prop_num1505: this.prop_num1505, + prop_num1506: this.prop_num1506, + prop_num1507: this.prop_num1507, + prop_num1508: this.prop_num1508, + prop_num1509: this.prop_num1509, + prop_num1510: this.prop_num1510, + prop_num1511: this.prop_num1511, + prop_num1512: this.prop_num1512, + prop_num1513: this.prop_num1513, + prop_num1514: this.prop_num1514, + prop_num1515: this.prop_num1515, + prop_num1516: this.prop_num1516, + prop_num1517: this.prop_num1517, + prop_num1518: this.prop_num1518, + prop_num1519: this.prop_num1519, + prop_num1520: this.prop_num1520, + prop_num1521: this.prop_num1521, + prop_num1522: this.prop_num1522, + prop_num1523: this.prop_num1523, + prop_num1524: this.prop_num1524, + prop_num1525: this.prop_num1525, + prop_num1526: this.prop_num1526, + prop_num1527: this.prop_num1527, + prop_num1528: this.prop_num1528, + prop_num1529: this.prop_num1529, + prop_num1530: this.prop_num1530, + prop_num1531: this.prop_num1531, + prop_num1532: this.prop_num1532, + prop_num1533: this.prop_num1533, + prop_num1534: this.prop_num1534, + prop_num1535: this.prop_num1535, + prop_num1536: this.prop_num1536, + prop_num1537: this.prop_num1537, + prop_num1538: this.prop_num1538, + prop_num1539: this.prop_num1539, + prop_num1540: this.prop_num1540, + prop_num1541: this.prop_num1541, + prop_num1542: this.prop_num1542, + prop_num1543: this.prop_num1543, + prop_num1544: this.prop_num1544, + prop_num1545: this.prop_num1545, + prop_num1546: this.prop_num1546, + prop_num1547: this.prop_num1547, + prop_num1548: this.prop_num1548, + prop_num1549: this.prop_num1549, + prop_num1550: this.prop_num1550, + prop_num1551: this.prop_num1551, + prop_num1552: this.prop_num1552, + prop_num1553: this.prop_num1553, + prop_num1554: this.prop_num1554, + prop_num1555: this.prop_num1555, + prop_num1556: this.prop_num1556, + prop_num1557: this.prop_num1557, + prop_num1558: this.prop_num1558, + prop_num1559: this.prop_num1559, + prop_num1560: this.prop_num1560, + prop_num1561: this.prop_num1561, + prop_num1562: this.prop_num1562, + prop_num1563: this.prop_num1563, + prop_num1564: this.prop_num1564, + prop_num1565: this.prop_num1565, + prop_num1566: this.prop_num1566, + prop_num1567: this.prop_num1567, + prop_num1568: this.prop_num1568, + prop_num1569: this.prop_num1569, + prop_num1570: this.prop_num1570, + prop_num1571: this.prop_num1571, + prop_num1572: this.prop_num1572, + prop_num1573: this.prop_num1573, + prop_num1574: this.prop_num1574, + prop_num1575: this.prop_num1575, + prop_num1576: this.prop_num1576, + prop_num1577: this.prop_num1577, + prop_num1578: this.prop_num1578, + prop_num1579: this.prop_num1579, + prop_num1580: this.prop_num1580, + prop_num1581: this.prop_num1581, + prop_num1582: this.prop_num1582, + prop_num1583: this.prop_num1583, + prop_num1584: this.prop_num1584, + prop_num1585: this.prop_num1585, + prop_num1586: this.prop_num1586, + prop_num1587: this.prop_num1587, + prop_num1588: this.prop_num1588, + prop_num1589: this.prop_num1589, + prop_num1590: this.prop_num1590, + prop_num1591: this.prop_num1591, + prop_num1592: this.prop_num1592, + prop_num1593: this.prop_num1593, + prop_num1594: this.prop_num1594, + prop_num1595: this.prop_num1595, + prop_num1596: this.prop_num1596, + prop_num1597: this.prop_num1597, + prop_num1598: this.prop_num1598, + prop_num1599: this.prop_num1599, + prop_num1600: this.prop_num1600, + prop_num1601: this.prop_num1601, + prop_num1602: this.prop_num1602, + prop_num1603: this.prop_num1603, + prop_num1604: this.prop_num1604, + prop_num1605: this.prop_num1605, + prop_num1606: this.prop_num1606, + prop_num1607: this.prop_num1607, + prop_num1608: this.prop_num1608, + prop_num1609: this.prop_num1609, + prop_num1610: this.prop_num1610, + prop_num1611: this.prop_num1611, + prop_num1612: this.prop_num1612, + prop_num1613: this.prop_num1613, + prop_num1614: this.prop_num1614, + prop_num1615: this.prop_num1615, + prop_num1616: this.prop_num1616, + prop_num1617: this.prop_num1617, + prop_num1618: this.prop_num1618, + prop_num1619: this.prop_num1619, + prop_num1620: this.prop_num1620, + prop_num1621: this.prop_num1621, + prop_num1622: this.prop_num1622, + prop_num1623: this.prop_num1623, + prop_num1624: this.prop_num1624, + prop_num1625: this.prop_num1625, + prop_num1626: this.prop_num1626, + prop_num1627: this.prop_num1627, + prop_num1628: this.prop_num1628, + prop_num1629: this.prop_num1629, + prop_num1630: this.prop_num1630, + prop_num1631: this.prop_num1631, + prop_num1632: this.prop_num1632, + prop_num1633: this.prop_num1633, + prop_num1634: this.prop_num1634, + prop_num1635: this.prop_num1635, + prop_num1636: this.prop_num1636, + prop_num1637: this.prop_num1637, + prop_num1638: this.prop_num1638, + prop_num1639: this.prop_num1639, + prop_num1640: this.prop_num1640, + prop_num1641: this.prop_num1641, + prop_num1642: this.prop_num1642, + prop_num1643: this.prop_num1643, + prop_num1644: this.prop_num1644, + prop_num1645: this.prop_num1645, + prop_num1646: this.prop_num1646, + prop_num1647: this.prop_num1647, + prop_num1648: this.prop_num1648, + prop_num1649: this.prop_num1649, + prop_num1650: this.prop_num1650, + prop_num1651: this.prop_num1651, + prop_num1652: this.prop_num1652, + prop_num1653: this.prop_num1653, + prop_num1654: this.prop_num1654, + prop_num1655: this.prop_num1655, + prop_num1656: this.prop_num1656, + prop_num1657: this.prop_num1657, + prop_num1658: this.prop_num1658, + prop_num1659: this.prop_num1659, + prop_num1660: this.prop_num1660, + prop_num1661: this.prop_num1661, + prop_num1662: this.prop_num1662, + prop_num1663: this.prop_num1663, + prop_num1664: this.prop_num1664, + prop_num1665: this.prop_num1665, + prop_num1666: this.prop_num1666, + prop_num1667: this.prop_num1667, + prop_num1668: this.prop_num1668, + prop_num1669: this.prop_num1669, + prop_num1670: this.prop_num1670, + prop_num1671: this.prop_num1671, + prop_num1672: this.prop_num1672, + prop_num1673: this.prop_num1673, + prop_num1674: this.prop_num1674, + prop_num1675: this.prop_num1675, + prop_num1676: this.prop_num1676, + prop_num1677: this.prop_num1677, + prop_num1678: this.prop_num1678, + prop_num1679: this.prop_num1679, + prop_num1680: this.prop_num1680, + prop_num1681: this.prop_num1681, + prop_num1682: this.prop_num1682, + prop_num1683: this.prop_num1683, + prop_num1684: this.prop_num1684, + prop_num1685: this.prop_num1685, + prop_num1686: this.prop_num1686, + prop_num1687: this.prop_num1687, + prop_num1688: this.prop_num1688, + prop_num1689: this.prop_num1689, + prop_num1690: this.prop_num1690, + prop_num1691: this.prop_num1691, + prop_num1692: this.prop_num1692, + prop_num1693: this.prop_num1693, + prop_num1694: this.prop_num1694, + prop_num1695: this.prop_num1695, + prop_num1696: this.prop_num1696, + prop_num1697: this.prop_num1697, + prop_num1698: this.prop_num1698, + prop_num1699: this.prop_num1699, + prop_num1700: this.prop_num1700, + prop_num1701: this.prop_num1701, + prop_num1702: this.prop_num1702, + prop_num1703: this.prop_num1703, + prop_num1704: this.prop_num1704, + prop_num1705: this.prop_num1705, + prop_num1706: this.prop_num1706, + prop_num1707: this.prop_num1707, + prop_num1708: this.prop_num1708, + prop_num1709: this.prop_num1709, + prop_num1710: this.prop_num1710, + prop_num1711: this.prop_num1711, + prop_num1712: this.prop_num1712, + prop_num1713: this.prop_num1713, + prop_num1714: this.prop_num1714, + prop_num1715: this.prop_num1715, + prop_num1716: this.prop_num1716, + prop_num1717: this.prop_num1717, + prop_num1718: this.prop_num1718, + prop_num1719: this.prop_num1719, + prop_num1720: this.prop_num1720, + prop_num1721: this.prop_num1721, + prop_num1722: this.prop_num1722, + prop_num1723: this.prop_num1723, + prop_num1724: this.prop_num1724, + prop_num1725: this.prop_num1725, + prop_num1726: this.prop_num1726, + prop_num1727: this.prop_num1727, + prop_num1728: this.prop_num1728, + prop_num1729: this.prop_num1729, + prop_num1730: this.prop_num1730, + prop_num1731: this.prop_num1731, + prop_num1732: this.prop_num1732, + prop_num1733: this.prop_num1733, + prop_num1734: this.prop_num1734, + prop_num1735: this.prop_num1735, + prop_num1736: this.prop_num1736, + prop_num1737: this.prop_num1737, + prop_num1738: this.prop_num1738, + prop_num1739: this.prop_num1739, + prop_num1740: this.prop_num1740, + prop_num1741: this.prop_num1741, + prop_num1742: this.prop_num1742, + prop_num1743: this.prop_num1743, + prop_num1744: this.prop_num1744, + prop_num1745: this.prop_num1745, + prop_num1746: this.prop_num1746, + prop_num1747: this.prop_num1747, + prop_num1748: this.prop_num1748, + prop_num1749: this.prop_num1749, + prop_num1750: this.prop_num1750, + prop_num1751: this.prop_num1751, + prop_num1752: this.prop_num1752, + prop_num1753: this.prop_num1753, + prop_num1754: this.prop_num1754, + prop_num1755: this.prop_num1755, + prop_num1756: this.prop_num1756, + prop_num1757: this.prop_num1757, + prop_num1758: this.prop_num1758, + prop_num1759: this.prop_num1759, + prop_num1760: this.prop_num1760, + prop_num1761: this.prop_num1761, + prop_num1762: this.prop_num1762, + prop_num1763: this.prop_num1763, + prop_num1764: this.prop_num1764, + prop_num1765: this.prop_num1765, + prop_num1766: this.prop_num1766, + prop_num1767: this.prop_num1767, + prop_num1768: this.prop_num1768, + prop_num1769: this.prop_num1769, + prop_num1770: this.prop_num1770, + prop_num1771: this.prop_num1771, + prop_num1772: this.prop_num1772, + prop_num1773: this.prop_num1773, + prop_num1774: this.prop_num1774, + prop_num1775: this.prop_num1775, + prop_num1776: this.prop_num1776, + prop_num1777: this.prop_num1777, + prop_num1778: this.prop_num1778, + prop_num1779: this.prop_num1779, + prop_num1780: this.prop_num1780, + prop_num1781: this.prop_num1781, + prop_num1782: this.prop_num1782, + prop_num1783: this.prop_num1783, + prop_num1784: this.prop_num1784, + prop_num1785: this.prop_num1785, + prop_num1786: this.prop_num1786, + prop_num1787: this.prop_num1787, + prop_num1788: this.prop_num1788, + prop_num1789: this.prop_num1789, + prop_num1790: this.prop_num1790, + prop_num1791: this.prop_num1791, + prop_num1792: this.prop_num1792, + prop_num1793: this.prop_num1793, + prop_num1794: this.prop_num1794, + prop_num1795: this.prop_num1795, + prop_num1796: this.prop_num1796, + prop_num1797: this.prop_num1797, + prop_num1798: this.prop_num1798, + prop_num1799: this.prop_num1799, + prop_num1800: this.prop_num1800, + prop_num1801: this.prop_num1801, + prop_num1802: this.prop_num1802, + prop_num1803: this.prop_num1803, + prop_num1804: this.prop_num1804, + prop_num1805: this.prop_num1805, + prop_num1806: this.prop_num1806, + prop_num1807: this.prop_num1807, + prop_num1808: this.prop_num1808, + prop_num1809: this.prop_num1809, + prop_num1810: this.prop_num1810, + prop_num1811: this.prop_num1811, + prop_num1812: this.prop_num1812, + prop_num1813: this.prop_num1813, + prop_num1814: this.prop_num1814, + prop_num1815: this.prop_num1815, + prop_num1816: this.prop_num1816, + prop_num1817: this.prop_num1817, + + } + ) + + //============================================================================= + LinkVariables( + { + link_num0: this.link_num0, + link_num1: this.link_num1, + link_num2: this.link_num2, + link_num3: this.link_num3, + link_num4: this.link_num4, + link_num5: this.link_num5, + link_num6: this.link_num6, + link_num7: this.link_num7, + link_num8: this.link_num8, + link_num9: this.link_num9, + link_num10: this.link_num10, + link_num11: this.link_num11, + link_num12: this.link_num12, + link_num13: this.link_num13, + link_num14: this.link_num14, + link_num15: this.link_num15, + link_num16: this.link_num16, + link_num17: this.link_num17, + link_num18: this.link_num18, + link_num19: this.link_num19, + link_num20: this.link_num20, + link_num21: this.link_num21, + link_num22: this.link_num22, + link_num23: this.link_num23, + link_num24: this.link_num24, + link_num25: this.link_num25, + link_num26: this.link_num26, + link_num27: this.link_num27, + link_num28: this.link_num28, + link_num29: this.link_num29, + link_num30: this.link_num30, + link_num31: this.link_num31, + link_num32: this.link_num32, + link_num33: this.link_num33, + link_num34: this.link_num34, + link_num35: this.link_num35, + link_num36: this.link_num36, + link_num37: this.link_num37, + link_num38: this.link_num38, + link_num39: this.link_num39, + link_num40: this.link_num40, + link_num41: this.link_num41, + link_num42: this.link_num42, + link_num43: this.link_num43, + link_num44: this.link_num44, + link_num45: this.link_num45, + link_num46: this.link_num46, + link_num47: this.link_num47, + link_num48: this.link_num48, + link_num49: this.link_num49, + link_num50: this.link_num50, + link_num51: this.link_num51, + link_num52: this.link_num52, + link_num53: this.link_num53, + link_num54: this.link_num54, + link_num55: this.link_num55, + link_num56: this.link_num56, + link_num57: this.link_num57, + link_num58: this.link_num58, + link_num59: this.link_num59, + link_num60: this.link_num60, + link_num61: this.link_num61, + link_num62: this.link_num62, + link_num63: this.link_num63, + link_num64: this.link_num64, + link_num65: this.link_num65, + link_num66: this.link_num66, + link_num67: this.link_num67, + link_num68: this.link_num68, + link_num69: this.link_num69, + link_num70: this.link_num70, + link_num71: this.link_num71, + link_num72: this.link_num72, + link_num73: this.link_num73, + link_num74: this.link_num74, + link_num75: this.link_num75, + link_num76: this.link_num76, + link_num77: this.link_num77, + link_num78: this.link_num78, + link_num79: this.link_num79, + link_num80: this.link_num80, + link_num81: this.link_num81, + link_num82: this.link_num82, + link_num83: this.link_num83, + link_num84: this.link_num84, + link_num85: this.link_num85, + link_num86: this.link_num86, + link_num87: this.link_num87, + link_num88: this.link_num88, + link_num89: this.link_num89, + link_num90: this.link_num90, + link_num91: this.link_num91, + link_num92: this.link_num92, + link_num93: this.link_num93, + link_num94: this.link_num94, + link_num95: this.link_num95, + link_num96: this.link_num96, + link_num97: this.link_num97, + link_num98: this.link_num98, + link_num99: this.link_num99, + link_num100: this.link_num100, + link_num101: this.link_num101, + link_num102: this.link_num102, + link_num103: this.link_num103, + link_num104: this.link_num104, + link_num105: this.link_num105, + link_num106: this.link_num106, + link_num107: this.link_num107, + link_num108: this.link_num108, + link_num109: this.link_num109, + link_num110: this.link_num110, + link_num111: this.link_num111, + link_num112: this.link_num112, + link_num113: this.link_num113, + link_num114: this.link_num114, + link_num115: this.link_num115, + link_num116: this.link_num116, + link_num117: this.link_num117, + link_num118: this.link_num118, + link_num119: this.link_num119, + link_num120: this.link_num120, + link_num121: this.link_num121, + link_num122: this.link_num122, + link_num123: this.link_num123, + link_num124: this.link_num124, + link_num125: this.link_num125, + link_num126: this.link_num126, + link_num127: this.link_num127, + link_num128: this.link_num128, + link_num129: this.link_num129, + link_num130: this.link_num130, + link_num131: this.link_num131, + link_num132: this.link_num132, + link_num133: this.link_num133, + link_num134: this.link_num134, + link_num135: this.link_num135, + link_num136: this.link_num136, + link_num137: this.link_num137, + link_num138: this.link_num138, + link_num139: this.link_num139, + link_num140: this.link_num140, + link_num141: this.link_num141, + link_num142: this.link_num142, + link_num143: this.link_num143, + link_num144: this.link_num144, + link_num145: this.link_num145, + link_num146: this.link_num146, + link_num147: this.link_num147, + link_num148: this.link_num148, + link_num149: this.link_num149, + link_num150: this.link_num150, + link_num151: this.link_num151, + link_num152: this.link_num152, + link_num153: this.link_num153, + link_num154: this.link_num154, + link_num155: this.link_num155, + link_num156: this.link_num156, + link_num157: this.link_num157, + link_num158: this.link_num158, + link_num159: this.link_num159, + link_num160: this.link_num160, + link_num161: this.link_num161, + link_num162: this.link_num162, + link_num163: this.link_num163, + link_num164: this.link_num164, + link_num165: this.link_num165, + link_num166: this.link_num166, + link_num167: this.link_num167, + link_num168: this.link_num168, + link_num169: this.link_num169, + link_num170: this.link_num170, + link_num171: this.link_num171, + link_num172: this.link_num172, + link_num173: this.link_num173, + link_num174: this.link_num174, + link_num175: this.link_num175, + link_num176: this.link_num176, + link_num177: this.link_num177, + link_num178: this.link_num178, + link_num179: this.link_num179, + link_num180: this.link_num180, + link_num181: this.link_num181, + link_num182: this.link_num182, + link_num183: this.link_num183, + link_num184: this.link_num184, + link_num185: this.link_num185, + link_num186: this.link_num186, + link_num187: this.link_num187, + link_num188: this.link_num188, + link_num189: this.link_num189, + link_num190: this.link_num190, + link_num191: this.link_num191, + link_num192: this.link_num192, + link_num193: this.link_num193, + link_num194: this.link_num194, + link_num195: this.link_num195, + link_num196: this.link_num196, + link_num197: this.link_num197, + link_num198: this.link_num198, + link_num199: this.link_num199, + link_num200: this.link_num200, + link_num201: this.link_num201, + link_num202: this.link_num202, + link_num203: this.link_num203, + link_num204: this.link_num204, + link_num205: this.link_num205, + link_num206: this.link_num206, + link_num207: this.link_num207, + link_num208: this.link_num208, + link_num209: this.link_num209, + link_num210: this.link_num210, + link_num211: this.link_num211, + link_num212: this.link_num212, + link_num213: this.link_num213, + link_num214: this.link_num214, + link_num215: this.link_num215, + link_num216: this.link_num216, + link_num217: this.link_num217, + link_num218: this.link_num218, + link_num219: this.link_num219, + link_num220: this.link_num220, + link_num221: this.link_num221, + link_num222: this.link_num222, + link_num223: this.link_num223, + link_num224: this.link_num224, + link_num225: this.link_num225, + link_num226: this.link_num226, + link_num227: this.link_num227, + link_num228: this.link_num228, + link_num229: this.link_num229, + link_num230: this.link_num230, + link_num231: this.link_num231, + link_num232: this.link_num232, + link_num233: this.link_num233, + link_num234: this.link_num234, + link_num235: this.link_num235, + link_num236: this.link_num236, + link_num237: this.link_num237, + link_num238: this.link_num238, + link_num239: this.link_num239, + link_num240: this.link_num240, + link_num241: this.link_num241, + link_num242: this.link_num242, + link_num243: this.link_num243, + link_num244: this.link_num244, + link_num245: this.link_num245, + link_num246: this.link_num246, + link_num247: this.link_num247, + link_num248: this.link_num248, + link_num249: this.link_num249, + link_num250: this.link_num250, + link_num251: this.link_num251, + link_num252: this.link_num252, + link_num253: this.link_num253, + link_num254: this.link_num254, + link_num255: this.link_num255, + link_num256: this.link_num256, + link_num257: this.link_num257, + link_num258: this.link_num258, + link_num259: this.link_num259, + link_num260: this.link_num260, + link_num261: this.link_num261, + link_num262: this.link_num262, + link_num263: this.link_num263, + link_num264: this.link_num264, + link_num265: this.link_num265, + link_num266: this.link_num266, + link_num267: this.link_num267, + link_num268: this.link_num268, + link_num269: this.link_num269, + link_num270: this.link_num270, + link_num271: this.link_num271, + link_num272: this.link_num272, + link_num273: this.link_num273, + link_num274: this.link_num274, + link_num275: this.link_num275, + link_num276: this.link_num276, + link_num277: this.link_num277, + link_num278: this.link_num278, + link_num279: this.link_num279, + link_num280: this.link_num280, + link_num281: this.link_num281, + link_num282: this.link_num282, + link_num283: this.link_num283, + link_num284: this.link_num284, + link_num285: this.link_num285, + link_num286: this.link_num286, + link_num287: this.link_num287, + link_num288: this.link_num288, + link_num289: this.link_num289, + link_num290: this.link_num290, + link_num291: this.link_num291, + link_num292: this.link_num292, + link_num293: this.link_num293, + link_num294: this.link_num294, + link_num295: this.link_num295, + link_num296: this.link_num296, + link_num297: this.link_num297, + link_num298: this.link_num298, + link_num299: this.link_num299, + link_num300: this.link_num300, + link_num301: this.link_num301, + link_num302: this.link_num302, + link_num303: this.link_num303, + link_num304: this.link_num304, + link_num305: this.link_num305, + link_num306: this.link_num306, + link_num307: this.link_num307, + link_num308: this.link_num308, + link_num309: this.link_num309, + link_num310: this.link_num310, + link_num311: this.link_num311, + link_num312: this.link_num312, + link_num313: this.link_num313, + link_num314: this.link_num314, + link_num315: this.link_num315, + link_num316: this.link_num316, + link_num317: this.link_num317, + link_num318: this.link_num318, + link_num319: this.link_num319, + link_num320: this.link_num320, + link_num321: this.link_num321, + link_num322: this.link_num322, + link_num323: this.link_num323, + link_num324: this.link_num324, + link_num325: this.link_num325, + link_num326: this.link_num326, + link_num327: this.link_num327, + link_num328: this.link_num328, + link_num329: this.link_num329, + link_num330: this.link_num330, + link_num331: this.link_num331, + link_num332: this.link_num332, + link_num333: this.link_num333, + link_num334: this.link_num334, + link_num335: this.link_num335, + link_num336: this.link_num336, + link_num337: this.link_num337, + link_num338: this.link_num338, + link_num339: this.link_num339, + link_num340: this.link_num340, + link_num341: this.link_num341, + link_num342: this.link_num342, + link_num343: this.link_num343, + link_num344: this.link_num344, + link_num345: this.link_num345, + link_num346: this.link_num346, + link_num347: this.link_num347, + link_num348: this.link_num348, + link_num349: this.link_num349, + link_num350: this.link_num350, + link_num351: this.link_num351, + link_num352: this.link_num352, + link_num353: this.link_num353, + link_num354: this.link_num354, + link_num355: this.link_num355, + link_num356: this.link_num356, + link_num357: this.link_num357, + link_num358: this.link_num358, + link_num359: this.link_num359, + link_num360: this.link_num360, + link_num361: this.link_num361, + link_num362: this.link_num362, + link_num363: this.link_num363, + link_num364: this.link_num364, + link_num365: this.link_num365, + link_num366: this.link_num366, + link_num367: this.link_num367, + link_num368: this.link_num368, + link_num369: this.link_num369, + link_num370: this.link_num370, + link_num371: this.link_num371, + link_num372: this.link_num372, + link_num373: this.link_num373, + link_num374: this.link_num374, + link_num375: this.link_num375, + link_num376: this.link_num376, + link_num377: this.link_num377, + link_num378: this.link_num378, + link_num379: this.link_num379, + link_num380: this.link_num380, + link_num381: this.link_num381, + link_num382: this.link_num382, + link_num383: this.link_num383, + link_num384: this.link_num384, + link_num385: this.link_num385, + link_num386: this.link_num386, + link_num387: this.link_num387, + link_num388: this.link_num388, + link_num389: this.link_num389, + link_num390: this.link_num390, + link_num391: this.link_num391, + link_num392: this.link_num392, + link_num393: this.link_num393, + link_num394: this.link_num394, + link_num395: this.link_num395, + link_num396: this.link_num396, + link_num397: this.link_num397, + link_num398: this.link_num398, + link_num399: this.link_num399, + link_num400: this.link_num400, + link_num401: this.link_num401, + link_num402: this.link_num402, + link_num403: this.link_num403, + link_num404: this.link_num404, + link_num405: this.link_num405, + link_num406: this.link_num406, + link_num407: this.link_num407, + link_num408: this.link_num408, + link_num409: this.link_num409, + link_num410: this.link_num410, + link_num411: this.link_num411, + link_num412: this.link_num412, + link_num413: this.link_num413, + link_num414: this.link_num414, + link_num415: this.link_num415, + link_num416: this.link_num416, + link_num417: this.link_num417, + link_num418: this.link_num418, + link_num419: this.link_num419, + link_num420: this.link_num420, + link_num421: this.link_num421, + link_num422: this.link_num422, + link_num423: this.link_num423, + link_num424: this.link_num424, + link_num425: this.link_num425, + link_num426: this.link_num426, + link_num427: this.link_num427, + link_num428: this.link_num428, + link_num429: this.link_num429, + link_num430: this.link_num430, + link_num431: this.link_num431, + link_num432: this.link_num432, + link_num433: this.link_num433, + link_num434: this.link_num434, + link_num435: this.link_num435, + link_num436: this.link_num436, + link_num437: this.link_num437, + link_num438: this.link_num438, + link_num439: this.link_num439, + link_num440: this.link_num440, + link_num441: this.link_num441, + link_num442: this.link_num442, + link_num443: this.link_num443, + link_num444: this.link_num444, + link_num445: this.link_num445, + link_num446: this.link_num446, + link_num447: this.link_num447, + link_num448: this.link_num448, + link_num449: this.link_num449, + link_num450: this.link_num450, + link_num451: this.link_num451, + link_num452: this.link_num452, + link_num453: this.link_num453, + link_num454: this.link_num454, + link_num455: this.link_num455, + link_num456: this.link_num456, + link_num457: this.link_num457, + link_num458: this.link_num458, + link_num459: this.link_num459, + link_num460: this.link_num460, + link_num461: this.link_num461, + link_num462: this.link_num462, + link_num463: this.link_num463, + link_num464: this.link_num464, + link_num465: this.link_num465, + link_num466: this.link_num466, + link_num467: this.link_num467, + link_num468: this.link_num468, + link_num469: this.link_num469, + link_num470: this.link_num470, + link_num471: this.link_num471, + link_num472: this.link_num472, + link_num473: this.link_num473, + link_num474: this.link_num474, + link_num475: this.link_num475, + link_num476: this.link_num476, + link_num477: this.link_num477, + link_num478: this.link_num478, + link_num479: this.link_num479, + link_num480: this.link_num480, + link_num481: this.link_num481, + link_num482: this.link_num482, + link_num483: this.link_num483, + link_num484: this.link_num484, + link_num485: this.link_num485, + link_num486: this.link_num486, + link_num487: this.link_num487, + link_num488: this.link_num488, + link_num489: this.link_num489, + link_num490: this.link_num490, + link_num491: this.link_num491, + link_num492: this.link_num492, + link_num493: this.link_num493, + link_num494: this.link_num494, + link_num495: this.link_num495, + link_num496: this.link_num496, + link_num497: this.link_num497, + link_num498: this.link_num498, + link_num499: this.link_num499, + link_num500: this.link_num500, + link_num501: this.link_num501, + link_num502: this.link_num502, + link_num503: this.link_num503, + link_num504: this.link_num504, + link_num505: this.link_num505, + link_num506: this.link_num506, + link_num507: this.link_num507, + link_num508: this.link_num508, + link_num509: this.link_num509, + link_num510: this.link_num510, + link_num511: this.link_num511, + link_num512: this.link_num512, + link_num513: this.link_num513, + link_num514: this.link_num514, + link_num515: this.link_num515, + link_num516: this.link_num516, + link_num517: this.link_num517, + link_num518: this.link_num518, + link_num519: this.link_num519, + link_num520: this.link_num520, + link_num521: this.link_num521, + link_num522: this.link_num522, + link_num523: this.link_num523, + link_num524: this.link_num524, + link_num525: this.link_num525, + link_num526: this.link_num526, + link_num527: this.link_num527, + link_num528: this.link_num528, + link_num529: this.link_num529, + link_num530: this.link_num530, + link_num531: this.link_num531, + link_num532: this.link_num532, + link_num533: this.link_num533, + link_num534: this.link_num534, + link_num535: this.link_num535, + link_num536: this.link_num536, + link_num537: this.link_num537, + link_num538: this.link_num538, + link_num539: this.link_num539, + link_num540: this.link_num540, + link_num541: this.link_num541, + link_num542: this.link_num542, + link_num543: this.link_num543, + link_num544: this.link_num544, + link_num545: this.link_num545, + link_num546: this.link_num546, + link_num547: this.link_num547, + link_num548: this.link_num548, + link_num549: this.link_num549, + link_num550: this.link_num550, + link_num551: this.link_num551, + link_num552: this.link_num552, + link_num553: this.link_num553, + link_num554: this.link_num554, + link_num555: this.link_num555, + link_num556: this.link_num556, + link_num557: this.link_num557, + link_num558: this.link_num558, + link_num559: this.link_num559, + link_num560: this.link_num560, + link_num561: this.link_num561, + link_num562: this.link_num562, + link_num563: this.link_num563, + link_num564: this.link_num564, + link_num565: this.link_num565, + link_num566: this.link_num566, + link_num567: this.link_num567, + link_num568: this.link_num568, + link_num569: this.link_num569, + link_num570: this.link_num570, + link_num571: this.link_num571, + link_num572: this.link_num572, + link_num573: this.link_num573, + link_num574: this.link_num574, + link_num575: this.link_num575, + link_num576: this.link_num576, + link_num577: this.link_num577, + link_num578: this.link_num578, + link_num579: this.link_num579, + link_num580: this.link_num580, + link_num581: this.link_num581, + link_num582: this.link_num582, + link_num583: this.link_num583, + link_num584: this.link_num584, + link_num585: this.link_num585, + link_num586: this.link_num586, + link_num587: this.link_num587, + link_num588: this.link_num588, + link_num589: this.link_num589, + link_num590: this.link_num590, + link_num591: this.link_num591, + link_num592: this.link_num592, + link_num593: this.link_num593, + link_num594: this.link_num594, + link_num595: this.link_num595, + link_num596: this.link_num596, + link_num597: this.link_num597, + link_num598: this.link_num598, + link_num599: this.link_num599, + link_num600: this.link_num600, + link_num601: this.link_num601, + link_num602: this.link_num602, + link_num603: this.link_num603, + link_num604: this.link_num604, + link_num605: this.link_num605, + link_num606: this.link_num606, + link_num607: this.link_num607, + link_num608: this.link_num608, + link_num609: this.link_num609, + link_num610: this.link_num610, + link_num611: this.link_num611, + link_num612: this.link_num612, + link_num613: this.link_num613, + link_num614: this.link_num614, + link_num615: this.link_num615, + link_num616: this.link_num616, + link_num617: this.link_num617, + link_num618: this.link_num618, + link_num619: this.link_num619, + link_num620: this.link_num620, + link_num621: this.link_num621, + link_num622: this.link_num622, + link_num623: this.link_num623, + link_num624: this.link_num624, + link_num625: this.link_num625, + link_num626: this.link_num626, + link_num627: this.link_num627, + link_num628: this.link_num628, + link_num629: this.link_num629, + link_num630: this.link_num630, + link_num631: this.link_num631, + link_num632: this.link_num632, + link_num633: this.link_num633, + link_num634: this.link_num634, + link_num635: this.link_num635, + link_num636: this.link_num636, + link_num637: this.link_num637, + link_num638: this.link_num638, + link_num639: this.link_num639, + link_num640: this.link_num640, + link_num641: this.link_num641, + link_num642: this.link_num642, + link_num643: this.link_num643, + link_num644: this.link_num644, + link_num645: this.link_num645, + link_num646: this.link_num646, + link_num647: this.link_num647, + link_num648: this.link_num648, + link_num649: this.link_num649, + link_num650: this.link_num650, + link_num651: this.link_num651, + link_num652: this.link_num652, + link_num653: this.link_num653, + link_num654: this.link_num654, + link_num655: this.link_num655, + link_num656: this.link_num656, + link_num657: this.link_num657, + link_num658: this.link_num658, + link_num659: this.link_num659, + link_num660: this.link_num660, + link_num661: this.link_num661, + link_num662: this.link_num662, + link_num663: this.link_num663, + link_num664: this.link_num664, + link_num665: this.link_num665, + link_num666: this.link_num666, + link_num667: this.link_num667, + link_num668: this.link_num668, + link_num669: this.link_num669, + link_num670: this.link_num670, + link_num671: this.link_num671, + link_num672: this.link_num672, + link_num673: this.link_num673, + link_num674: this.link_num674, + link_num675: this.link_num675, + link_num676: this.link_num676, + link_num677: this.link_num677, + link_num678: this.link_num678, + link_num679: this.link_num679, + link_num680: this.link_num680, + link_num681: this.link_num681, + link_num682: this.link_num682, + link_num683: this.link_num683, + link_num684: this.link_num684, + link_num685: this.link_num685, + link_num686: this.link_num686, + link_num687: this.link_num687, + link_num688: this.link_num688, + link_num689: this.link_num689, + link_num690: this.link_num690, + link_num691: this.link_num691, + link_num692: this.link_num692, + link_num693: this.link_num693, + link_num694: this.link_num694, + link_num695: this.link_num695, + link_num696: this.link_num696, + link_num697: this.link_num697, + link_num698: this.link_num698, + link_num699: this.link_num699, + link_num700: this.link_num700, + link_num701: this.link_num701, + link_num702: this.link_num702, + link_num703: this.link_num703, + link_num704: this.link_num704, + link_num705: this.link_num705, + link_num706: this.link_num706, + link_num707: this.link_num707, + link_num708: this.link_num708, + link_num709: this.link_num709, + link_num710: this.link_num710, + link_num711: this.link_num711, + link_num712: this.link_num712, + link_num713: this.link_num713, + link_num714: this.link_num714, + link_num715: this.link_num715, + link_num716: this.link_num716, + link_num717: this.link_num717, + link_num718: this.link_num718, + link_num719: this.link_num719, + link_num720: this.link_num720, + link_num721: this.link_num721, + link_num722: this.link_num722, + link_num723: this.link_num723, + link_num724: this.link_num724, + link_num725: this.link_num725, + link_num726: this.link_num726, + link_num727: this.link_num727, + link_num728: this.link_num728, + link_num729: this.link_num729, + link_num730: this.link_num730, + link_num731: this.link_num731, + link_num732: this.link_num732, + link_num733: this.link_num733, + link_num734: this.link_num734, + link_num735: this.link_num735, + link_num736: this.link_num736, + link_num737: this.link_num737, + link_num738: this.link_num738, + link_num739: this.link_num739, + link_num740: this.link_num740, + link_num741: this.link_num741, + link_num742: this.link_num742, + link_num743: this.link_num743, + link_num744: this.link_num744, + link_num745: this.link_num745, + link_num746: this.link_num746, + link_num747: this.link_num747, + link_num748: this.link_num748, + link_num749: this.link_num749, + link_num750: this.link_num750, + link_num751: this.link_num751, + link_num752: this.link_num752, + link_num753: this.link_num753, + link_num754: this.link_num754, + link_num755: this.link_num755, + link_num756: this.link_num756, + link_num757: this.link_num757, + link_num758: this.link_num758, + link_num759: this.link_num759, + link_num760: this.link_num760, + link_num761: this.link_num761, + link_num762: this.link_num762, + link_num763: this.link_num763, + link_num764: this.link_num764, + link_num765: this.link_num765, + link_num766: this.link_num766, + link_num767: this.link_num767, + link_num768: this.link_num768, + link_num769: this.link_num769, + link_num770: this.link_num770, + link_num771: this.link_num771, + link_num772: this.link_num772, + link_num773: this.link_num773, + link_num774: this.link_num774, + link_num775: this.link_num775, + link_num776: this.link_num776, + link_num777: this.link_num777, + link_num778: this.link_num778, + link_num779: this.link_num779, + link_num780: this.link_num780, + link_num781: this.link_num781, + link_num782: this.link_num782, + link_num783: this.link_num783, + link_num784: this.link_num784, + link_num785: this.link_num785, + link_num786: this.link_num786, + link_num787: this.link_num787, + link_num788: this.link_num788, + link_num789: this.link_num789, + link_num790: this.link_num790, + link_num791: this.link_num791, + link_num792: this.link_num792, + link_num793: this.link_num793, + link_num794: this.link_num794, + link_num795: this.link_num795, + link_num796: this.link_num796, + link_num797: this.link_num797, + link_num798: this.link_num798, + link_num799: this.link_num799, + link_num800: this.link_num800, + link_num801: this.link_num801, + link_num802: this.link_num802, + link_num803: this.link_num803, + link_num804: this.link_num804, + link_num805: this.link_num805, + link_num806: this.link_num806, + link_num807: this.link_num807, + link_num808: this.link_num808, + link_num809: this.link_num809, + link_num810: this.link_num810, + link_num811: this.link_num811, + link_num812: this.link_num812, + link_num813: this.link_num813, + link_num814: this.link_num814, + link_num815: this.link_num815, + link_num816: this.link_num816, + link_num817: this.link_num817, + link_num818: this.link_num818, + link_num819: this.link_num819, + link_num820: this.link_num820, + link_num821: this.link_num821, + link_num822: this.link_num822, + link_num823: this.link_num823, + link_num824: this.link_num824, + link_num825: this.link_num825, + link_num826: this.link_num826, + link_num827: this.link_num827, + link_num828: this.link_num828, + link_num829: this.link_num829, + link_num830: this.link_num830, + link_num831: this.link_num831, + link_num832: this.link_num832, + link_num833: this.link_num833, + link_num834: this.link_num834, + link_num835: this.link_num835, + link_num836: this.link_num836, + link_num837: this.link_num837, + link_num838: this.link_num838, + link_num839: this.link_num839, + link_num840: this.link_num840, + link_num841: this.link_num841, + link_num842: this.link_num842, + link_num843: this.link_num843, + link_num844: this.link_num844, + link_num845: this.link_num845, + link_num846: this.link_num846, + link_num847: this.link_num847, + link_num848: this.link_num848, + link_num849: this.link_num849, + link_num850: this.link_num850, + link_num851: this.link_num851, + link_num852: this.link_num852, + link_num853: this.link_num853, + link_num854: this.link_num854, + link_num855: this.link_num855, + link_num856: this.link_num856, + link_num857: this.link_num857, + link_num858: this.link_num858, + link_num859: this.link_num859, + link_num860: this.link_num860, + link_num861: this.link_num861, + link_num862: this.link_num862, + link_num863: this.link_num863, + link_num864: this.link_num864, + link_num865: this.link_num865, + link_num866: this.link_num866, + link_num867: this.link_num867, + link_num868: this.link_num868, + link_num869: this.link_num869, + link_num870: this.link_num870, + link_num871: this.link_num871, + link_num872: this.link_num872, + link_num873: this.link_num873, + link_num874: this.link_num874, + link_num875: this.link_num875, + link_num876: this.link_num876, + link_num877: this.link_num877, + link_num878: this.link_num878, + link_num879: this.link_num879, + link_num880: this.link_num880, + link_num881: this.link_num881, + link_num882: this.link_num882, + link_num883: this.link_num883, + link_num884: this.link_num884, + link_num885: this.link_num885, + link_num886: this.link_num886, + link_num887: this.link_num887, + link_num888: this.link_num888, + link_num889: this.link_num889, + link_num890: this.link_num890, + link_num891: this.link_num891, + link_num892: this.link_num892, + link_num893: this.link_num893, + link_num894: this.link_num894, + link_num895: this.link_num895, + link_num896: this.link_num896, + link_num897: this.link_num897, + link_num898: this.link_num898, + link_num899: this.link_num899, + link_num900: this.link_num900, + link_num901: this.link_num901, + link_num902: this.link_num902, + link_num903: this.link_num903, + link_num904: this.link_num904, + link_num905: this.link_num905, + link_num906: this.link_num906, + link_num907: this.link_num907, + link_num908: this.link_num908, + link_num909: this.link_num909, + link_num910: this.link_num910, + link_num911: this.link_num911, + link_num912: this.link_num912, + link_num913: this.link_num913, + link_num914: this.link_num914, + link_num915: this.link_num915, + link_num916: this.link_num916, + link_num917: this.link_num917, + link_num918: this.link_num918, + link_num919: this.link_num919, + link_num920: this.link_num920, + link_num921: this.link_num921, + link_num922: this.link_num922, + link_num923: this.link_num923, + link_num924: this.link_num924, + link_num925: this.link_num925, + link_num926: this.link_num926, + link_num927: this.link_num927, + link_num928: this.link_num928, + link_num929: this.link_num929, + link_num930: this.link_num930, + link_num931: this.link_num931, + link_num932: this.link_num932, + link_num933: this.link_num933, + link_num934: this.link_num934, + link_num935: this.link_num935, + link_num936: this.link_num936, + link_num937: this.link_num937, + link_num938: this.link_num938, + link_num939: this.link_num939, + link_num940: this.link_num940, + link_num941: this.link_num941, + link_num942: this.link_num942, + link_num943: this.link_num943, + link_num944: this.link_num944, + link_num945: this.link_num945, + link_num946: this.link_num946, + link_num947: this.link_num947, + link_num948: this.link_num948, + link_num949: this.link_num949, + link_num950: this.link_num950, + link_num951: this.link_num951, + link_num952: this.link_num952, + link_num953: this.link_num953, + link_num954: this.link_num954, + link_num955: this.link_num955, + link_num956: this.link_num956, + link_num957: this.link_num957, + link_num958: this.link_num958, + link_num959: this.link_num959, + link_num960: this.link_num960, + link_num961: this.link_num961, + link_num962: this.link_num962, + link_num963: this.link_num963, + link_num964: this.link_num964, + link_num965: this.link_num965, + link_num966: this.link_num966, + link_num967: this.link_num967, + link_num968: this.link_num968, + link_num969: this.link_num969, + link_num970: this.link_num970, + link_num971: this.link_num971, + link_num972: this.link_num972, + link_num973: this.link_num973, + link_num974: this.link_num974, + link_num975: this.link_num975, + link_num976: this.link_num976, + link_num977: this.link_num977, + link_num978: this.link_num978, + link_num979: this.link_num979, + link_num980: this.link_num980, + link_num981: this.link_num981, + link_num982: this.link_num982, + link_num983: this.link_num983, + link_num984: this.link_num984, + link_num985: this.link_num985, + link_num986: this.link_num986, + link_num987: this.link_num987, + link_num988: this.link_num988, + link_num989: this.link_num989, + link_num990: this.link_num990, + link_num991: this.link_num991, + link_num992: this.link_num992, + link_num993: this.link_num993, + link_num994: this.link_num994, + link_num995: this.link_num995, + link_num996: this.link_num996, + link_num997: this.link_num997, + link_num998: this.link_num998, + link_num999: this.link_num999, + link_num1000: this.link_num1000, + link_num1001: this.link_num1001, + link_num1002: this.link_num1002, + link_num1003: this.link_num1003, + link_num1004: this.link_num1004, + link_num1005: this.link_num1005, + link_num1006: this.link_num1006, + link_num1007: this.link_num1007, + link_num1008: this.link_num1008, + link_num1009: this.link_num1009, + link_num1010: this.link_num1010, + link_num1011: this.link_num1011, + link_num1012: this.link_num1012, + link_num1013: this.link_num1013, + link_num1014: this.link_num1014, + link_num1015: this.link_num1015, + link_num1016: this.link_num1016, + link_num1017: this.link_num1017, + link_num1018: this.link_num1018, + link_num1019: this.link_num1019, + link_num1020: this.link_num1020, + link_num1021: this.link_num1021, + link_num1022: this.link_num1022, + link_num1023: this.link_num1023, + link_num1024: this.link_num1024, + link_num1025: this.link_num1025, + link_num1026: this.link_num1026, + link_num1027: this.link_num1027, + link_num1028: this.link_num1028, + link_num1029: this.link_num1029, + link_num1030: this.link_num1030, + link_num1031: this.link_num1031, + link_num1032: this.link_num1032, + link_num1033: this.link_num1033, + link_num1034: this.link_num1034, + link_num1035: this.link_num1035, + link_num1036: this.link_num1036, + link_num1037: this.link_num1037, + link_num1038: this.link_num1038, + link_num1039: this.link_num1039, + link_num1040: this.link_num1040, + link_num1041: this.link_num1041, + link_num1042: this.link_num1042, + link_num1043: this.link_num1043, + link_num1044: this.link_num1044, + link_num1045: this.link_num1045, + link_num1046: this.link_num1046, + link_num1047: this.link_num1047, + link_num1048: this.link_num1048, + link_num1049: this.link_num1049, + link_num1050: this.link_num1050, + link_num1051: this.link_num1051, + link_num1052: this.link_num1052, + link_num1053: this.link_num1053, + link_num1054: this.link_num1054, + link_num1055: this.link_num1055, + link_num1056: this.link_num1056, + link_num1057: this.link_num1057, + link_num1058: this.link_num1058, + link_num1059: this.link_num1059, + link_num1060: this.link_num1060, + link_num1061: this.link_num1061, + link_num1062: this.link_num1062, + link_num1063: this.link_num1063, + link_num1064: this.link_num1064, + link_num1065: this.link_num1065, + link_num1066: this.link_num1066, + link_num1067: this.link_num1067, + link_num1068: this.link_num1068, + link_num1069: this.link_num1069, + link_num1070: this.link_num1070, + link_num1071: this.link_num1071, + link_num1072: this.link_num1072, + link_num1073: this.link_num1073, + link_num1074: this.link_num1074, + link_num1075: this.link_num1075, + link_num1076: this.link_num1076, + link_num1077: this.link_num1077, + link_num1078: this.link_num1078, + link_num1079: this.link_num1079, + link_num1080: this.link_num1080, + link_num1081: this.link_num1081, + link_num1082: this.link_num1082, + link_num1083: this.link_num1083, + link_num1084: this.link_num1084, + link_num1085: this.link_num1085, + link_num1086: this.link_num1086, + link_num1087: this.link_num1087, + link_num1088: this.link_num1088, + link_num1089: this.link_num1089, + link_num1090: this.link_num1090, + link_num1091: this.link_num1091, + link_num1092: this.link_num1092, + link_num1093: this.link_num1093, + link_num1094: this.link_num1094, + link_num1095: this.link_num1095, + link_num1096: this.link_num1096, + link_num1097: this.link_num1097, + link_num1098: this.link_num1098, + link_num1099: this.link_num1099, + link_num1100: this.link_num1100, + link_num1101: this.link_num1101, + link_num1102: this.link_num1102, + link_num1103: this.link_num1103, + link_num1104: this.link_num1104, + link_num1105: this.link_num1105, + link_num1106: this.link_num1106, + link_num1107: this.link_num1107, + link_num1108: this.link_num1108, + link_num1109: this.link_num1109, + link_num1110: this.link_num1110, + link_num1111: this.link_num1111, + link_num1112: this.link_num1112, + link_num1113: this.link_num1113, + link_num1114: this.link_num1114, + link_num1115: this.link_num1115, + link_num1116: this.link_num1116, + link_num1117: this.link_num1117, + link_num1118: this.link_num1118, + link_num1119: this.link_num1119, + link_num1120: this.link_num1120, + link_num1121: this.link_num1121, + link_num1122: this.link_num1122, + link_num1123: this.link_num1123, + link_num1124: this.link_num1124, + link_num1125: this.link_num1125, + link_num1126: this.link_num1126, + link_num1127: this.link_num1127, + link_num1128: this.link_num1128, + link_num1129: this.link_num1129, + link_num1130: this.link_num1130, + link_num1131: this.link_num1131, + link_num1132: this.link_num1132, + link_num1133: this.link_num1133, + link_num1134: this.link_num1134, + link_num1135: this.link_num1135, + link_num1136: this.link_num1136, + link_num1137: this.link_num1137, + link_num1138: this.link_num1138, + link_num1139: this.link_num1139, + link_num1140: this.link_num1140, + link_num1141: this.link_num1141, + link_num1142: this.link_num1142, + link_num1143: this.link_num1143, + link_num1144: this.link_num1144, + link_num1145: this.link_num1145, + link_num1146: this.link_num1146, + link_num1147: this.link_num1147, + link_num1148: this.link_num1148, + link_num1149: this.link_num1149, + link_num1150: this.link_num1150, + link_num1151: this.link_num1151, + link_num1152: this.link_num1152, + link_num1153: this.link_num1153, + link_num1154: this.link_num1154, + link_num1155: this.link_num1155, + link_num1156: this.link_num1156, + link_num1157: this.link_num1157, + link_num1158: this.link_num1158, + link_num1159: this.link_num1159, + link_num1160: this.link_num1160, + link_num1161: this.link_num1161, + link_num1162: this.link_num1162, + link_num1163: this.link_num1163, + link_num1164: this.link_num1164, + link_num1165: this.link_num1165, + link_num1166: this.link_num1166, + link_num1167: this.link_num1167, + link_num1168: this.link_num1168, + link_num1169: this.link_num1169, + link_num1170: this.link_num1170, + link_num1171: this.link_num1171, + link_num1172: this.link_num1172, + link_num1173: this.link_num1173, + link_num1174: this.link_num1174, + link_num1175: this.link_num1175, + link_num1176: this.link_num1176, + link_num1177: this.link_num1177, + link_num1178: this.link_num1178, + link_num1179: this.link_num1179, + link_num1180: this.link_num1180, + link_num1181: this.link_num1181, + link_num1182: this.link_num1182, + link_num1183: this.link_num1183, + link_num1184: this.link_num1184, + link_num1185: this.link_num1185, + link_num1186: this.link_num1186, + link_num1187: this.link_num1187, + link_num1188: this.link_num1188, + link_num1189: this.link_num1189, + link_num1190: this.link_num1190, + link_num1191: this.link_num1191, + link_num1192: this.link_num1192, + link_num1193: this.link_num1193, + link_num1194: this.link_num1194, + link_num1195: this.link_num1195, + link_num1196: this.link_num1196, + link_num1197: this.link_num1197, + link_num1198: this.link_num1198, + link_num1199: this.link_num1199, + link_num1200: this.link_num1200, + link_num1201: this.link_num1201, + link_num1202: this.link_num1202, + link_num1203: this.link_num1203, + link_num1204: this.link_num1204, + link_num1205: this.link_num1205, + link_num1206: this.link_num1206, + link_num1207: this.link_num1207, + link_num1208: this.link_num1208, + link_num1209: this.link_num1209, + link_num1210: this.link_num1210, + link_num1211: this.link_num1211, + link_num1212: this.link_num1212, + link_num1213: this.link_num1213, + link_num1214: this.link_num1214, + link_num1215: this.link_num1215, + link_num1216: this.link_num1216, + link_num1217: this.link_num1217, + link_num1218: this.link_num1218, + link_num1219: this.link_num1219, + link_num1220: this.link_num1220, + link_num1221: this.link_num1221, + link_num1222: this.link_num1222, + link_num1223: this.link_num1223, + link_num1224: this.link_num1224, + link_num1225: this.link_num1225, + link_num1226: this.link_num1226, + link_num1227: this.link_num1227, + link_num1228: this.link_num1228, + link_num1229: this.link_num1229, + link_num1230: this.link_num1230, + link_num1231: this.link_num1231, + link_num1232: this.link_num1232, + link_num1233: this.link_num1233, + link_num1234: this.link_num1234, + link_num1235: this.link_num1235, + link_num1236: this.link_num1236, + link_num1237: this.link_num1237, + link_num1238: this.link_num1238, + link_num1239: this.link_num1239, + link_num1240: this.link_num1240, + link_num1241: this.link_num1241, + link_num1242: this.link_num1242, + link_num1243: this.link_num1243, + link_num1244: this.link_num1244, + link_num1245: this.link_num1245, + link_num1246: this.link_num1246, + link_num1247: this.link_num1247, + link_num1248: this.link_num1248, + link_num1249: this.link_num1249, + link_num1250: this.link_num1250, + link_num1251: this.link_num1251, + link_num1252: this.link_num1252, + link_num1253: this.link_num1253, + link_num1254: this.link_num1254, + link_num1255: this.link_num1255, + link_num1256: this.link_num1256, + link_num1257: this.link_num1257, + link_num1258: this.link_num1258, + link_num1259: this.link_num1259, + link_num1260: this.link_num1260, + link_num1261: this.link_num1261, + link_num1262: this.link_num1262, + link_num1263: this.link_num1263, + link_num1264: this.link_num1264, + link_num1265: this.link_num1265, + link_num1266: this.link_num1266, + link_num1267: this.link_num1267, + link_num1268: this.link_num1268, + link_num1269: this.link_num1269, + link_num1270: this.link_num1270, + link_num1271: this.link_num1271, + link_num1272: this.link_num1272, + link_num1273: this.link_num1273, + link_num1274: this.link_num1274, + link_num1275: this.link_num1275, + link_num1276: this.link_num1276, + link_num1277: this.link_num1277, + link_num1278: this.link_num1278, + link_num1279: this.link_num1279, + link_num1280: this.link_num1280, + link_num1281: this.link_num1281, + link_num1282: this.link_num1282, + link_num1283: this.link_num1283, + link_num1284: this.link_num1284, + link_num1285: this.link_num1285, + link_num1286: this.link_num1286, + link_num1287: this.link_num1287, + link_num1288: this.link_num1288, + link_num1289: this.link_num1289, + link_num1290: this.link_num1290, + link_num1291: this.link_num1291, + link_num1292: this.link_num1292, + link_num1293: this.link_num1293, + link_num1294: this.link_num1294, + link_num1295: this.link_num1295, + link_num1296: this.link_num1296, + link_num1297: this.link_num1297, + link_num1298: this.link_num1298, + link_num1299: this.link_num1299, + link_num1300: this.link_num1300, + link_num1301: this.link_num1301, + link_num1302: this.link_num1302, + link_num1303: this.link_num1303, + link_num1304: this.link_num1304, + link_num1305: this.link_num1305, + link_num1306: this.link_num1306, + link_num1307: this.link_num1307, + link_num1308: this.link_num1308, + link_num1309: this.link_num1309, + link_num1310: this.link_num1310, + link_num1311: this.link_num1311, + link_num1312: this.link_num1312, + link_num1313: this.link_num1313, + link_num1314: this.link_num1314, + link_num1315: this.link_num1315, + link_num1316: this.link_num1316, + link_num1317: this.link_num1317, + link_num1318: this.link_num1318, + link_num1319: this.link_num1319, + link_num1320: this.link_num1320, + link_num1321: this.link_num1321, + link_num1322: this.link_num1322, + link_num1323: this.link_num1323, + link_num1324: this.link_num1324, + link_num1325: this.link_num1325, + link_num1326: this.link_num1326, + link_num1327: this.link_num1327, + link_num1328: this.link_num1328, + link_num1329: this.link_num1329, + link_num1330: this.link_num1330, + link_num1331: this.link_num1331, + link_num1332: this.link_num1332, + link_num1333: this.link_num1333, + link_num1334: this.link_num1334, + link_num1335: this.link_num1335, + link_num1336: this.link_num1336, + link_num1337: this.link_num1337, + link_num1338: this.link_num1338, + link_num1339: this.link_num1339, + link_num1340: this.link_num1340, + link_num1341: this.link_num1341, + link_num1342: this.link_num1342, + link_num1343: this.link_num1343, + link_num1344: this.link_num1344, + link_num1345: this.link_num1345, + link_num1346: this.link_num1346, + link_num1347: this.link_num1347, + link_num1348: this.link_num1348, + link_num1349: this.link_num1349, + link_num1350: this.link_num1350, + link_num1351: this.link_num1351, + link_num1352: this.link_num1352, + link_num1353: this.link_num1353, + link_num1354: this.link_num1354, + link_num1355: this.link_num1355, + link_num1356: this.link_num1356, + link_num1357: this.link_num1357, + link_num1358: this.link_num1358, + link_num1359: this.link_num1359, + link_num1360: this.link_num1360, + link_num1361: this.link_num1361, + link_num1362: this.link_num1362, + link_num1363: this.link_num1363, + link_num1364: this.link_num1364, + link_num1365: this.link_num1365, + link_num1366: this.link_num1366, + link_num1367: this.link_num1367, + link_num1368: this.link_num1368, + link_num1369: this.link_num1369, + link_num1370: this.link_num1370, + link_num1371: this.link_num1371, + link_num1372: this.link_num1372, + link_num1373: this.link_num1373, + link_num1374: this.link_num1374, + link_num1375: this.link_num1375, + link_num1376: this.link_num1376, + link_num1377: this.link_num1377, + link_num1378: this.link_num1378, + link_num1379: this.link_num1379, + link_num1380: this.link_num1380, + link_num1381: this.link_num1381, + link_num1382: this.link_num1382, + link_num1383: this.link_num1383, + link_num1384: this.link_num1384, + link_num1385: this.link_num1385, + link_num1386: this.link_num1386, + link_num1387: this.link_num1387, + link_num1388: this.link_num1388, + link_num1389: this.link_num1389, + link_num1390: this.link_num1390, + link_num1391: this.link_num1391, + link_num1392: this.link_num1392, + link_num1393: this.link_num1393, + link_num1394: this.link_num1394, + link_num1395: this.link_num1395, + link_num1396: this.link_num1396, + link_num1397: this.link_num1397, + link_num1398: this.link_num1398, + link_num1399: this.link_num1399, + link_num1400: this.link_num1400, + link_num1401: this.link_num1401, + link_num1402: this.link_num1402, + link_num1403: this.link_num1403, + link_num1404: this.link_num1404, + link_num1405: this.link_num1405, + link_num1406: this.link_num1406, + link_num1407: this.link_num1407, + link_num1408: this.link_num1408, + link_num1409: this.link_num1409, + link_num1410: this.link_num1410, + link_num1411: this.link_num1411, + link_num1412: this.link_num1412, + link_num1413: this.link_num1413, + link_num1414: this.link_num1414, + link_num1415: this.link_num1415, + link_num1416: this.link_num1416, + link_num1417: this.link_num1417, + link_num1418: this.link_num1418, + link_num1419: this.link_num1419, + link_num1420: this.link_num1420, + link_num1421: this.link_num1421, + link_num1422: this.link_num1422, + link_num1423: this.link_num1423, + link_num1424: this.link_num1424, + link_num1425: this.link_num1425, + link_num1426: this.link_num1426, + link_num1427: this.link_num1427, + link_num1428: this.link_num1428, + link_num1429: this.link_num1429, + link_num1430: this.link_num1430, + link_num1431: this.link_num1431, + link_num1432: this.link_num1432, + link_num1433: this.link_num1433, + link_num1434: this.link_num1434, + link_num1435: this.link_num1435, + link_num1436: this.link_num1436, + link_num1437: this.link_num1437, + link_num1438: this.link_num1438, + link_num1439: this.link_num1439, + link_num1440: this.link_num1440, + link_num1441: this.link_num1441, + link_num1442: this.link_num1442, + link_num1443: this.link_num1443, + link_num1444: this.link_num1444, + link_num1445: this.link_num1445, + link_num1446: this.link_num1446, + link_num1447: this.link_num1447, + link_num1448: this.link_num1448, + link_num1449: this.link_num1449, + link_num1450: this.link_num1450, + link_num1451: this.link_num1451, + link_num1452: this.link_num1452, + link_num1453: this.link_num1453, + link_num1454: this.link_num1454, + link_num1455: this.link_num1455, + link_num1456: this.link_num1456, + link_num1457: this.link_num1457, + link_num1458: this.link_num1458, + link_num1459: this.link_num1459, + link_num1460: this.link_num1460, + link_num1461: this.link_num1461, + link_num1462: this.link_num1462, + link_num1463: this.link_num1463, + link_num1464: this.link_num1464, + link_num1465: this.link_num1465, + link_num1466: this.link_num1466, + link_num1467: this.link_num1467, + link_num1468: this.link_num1468, + link_num1469: this.link_num1469, + link_num1470: this.link_num1470, + link_num1471: this.link_num1471, + link_num1472: this.link_num1472, + link_num1473: this.link_num1473, + link_num1474: this.link_num1474, + link_num1475: this.link_num1475, + link_num1476: this.link_num1476, + link_num1477: this.link_num1477, + link_num1478: this.link_num1478, + link_num1479: this.link_num1479, + link_num1480: this.link_num1480, + link_num1481: this.link_num1481, + link_num1482: this.link_num1482, + link_num1483: this.link_num1483, + link_num1484: this.link_num1484, + link_num1485: this.link_num1485, + link_num1486: this.link_num1486, + link_num1487: this.link_num1487, + link_num1488: this.link_num1488, + link_num1489: this.link_num1489, + link_num1490: this.link_num1490, + link_num1491: this.link_num1491, + link_num1492: this.link_num1492, + link_num1493: this.link_num1493, + link_num1494: this.link_num1494, + link_num1495: this.link_num1495, + link_num1496: this.link_num1496, + link_num1497: this.link_num1497, + link_num1498: this.link_num1498, + link_num1499: this.link_num1499, + link_num1500: this.link_num1500, + link_num1501: this.link_num1501, + link_num1502: this.link_num1502, + link_num1503: this.link_num1503, + link_num1504: this.link_num1504, + link_num1505: this.link_num1505, + link_num1506: this.link_num1506, + link_num1507: this.link_num1507, + link_num1508: this.link_num1508, + link_num1509: this.link_num1509, + link_num1510: this.link_num1510, + link_num1511: this.link_num1511, + link_num1512: this.link_num1512, + link_num1513: this.link_num1513, + link_num1514: this.link_num1514, + link_num1515: this.link_num1515, + link_num1516: this.link_num1516, + link_num1517: this.link_num1517, + link_num1518: this.link_num1518, + link_num1519: this.link_num1519, + link_num1520: this.link_num1520, + link_num1521: this.link_num1521, + link_num1522: this.link_num1522, + link_num1523: this.link_num1523, + link_num1524: this.link_num1524, + link_num1525: this.link_num1525, + link_num1526: this.link_num1526, + link_num1527: this.link_num1527, + link_num1528: this.link_num1528, + link_num1529: this.link_num1529, + link_num1530: this.link_num1530, + link_num1531: this.link_num1531, + link_num1532: this.link_num1532, + link_num1533: this.link_num1533, + link_num1534: this.link_num1534, + link_num1535: this.link_num1535, + link_num1536: this.link_num1536, + link_num1537: this.link_num1537, + link_num1538: this.link_num1538, + link_num1539: this.link_num1539, + link_num1540: this.link_num1540, + link_num1541: this.link_num1541, + link_num1542: this.link_num1542, + link_num1543: this.link_num1543, + link_num1544: this.link_num1544, + link_num1545: this.link_num1545, + link_num1546: this.link_num1546, + link_num1547: this.link_num1547, + link_num1548: this.link_num1548, + link_num1549: this.link_num1549, + link_num1550: this.link_num1550, + link_num1551: this.link_num1551, + link_num1552: this.link_num1552, + link_num1553: this.link_num1553, + link_num1554: this.link_num1554, + link_num1555: this.link_num1555, + link_num1556: this.link_num1556, + link_num1557: this.link_num1557, + link_num1558: this.link_num1558, + link_num1559: this.link_num1559, + link_num1560: this.link_num1560, + link_num1561: this.link_num1561, + link_num1562: this.link_num1562, + link_num1563: this.link_num1563, + link_num1564: this.link_num1564, + link_num1565: this.link_num1565, + link_num1566: this.link_num1566, + link_num1567: this.link_num1567, + link_num1568: this.link_num1568, + link_num1569: this.link_num1569, + link_num1570: this.link_num1570, + link_num1571: this.link_num1571, + link_num1572: this.link_num1572, + link_num1573: this.link_num1573, + link_num1574: this.link_num1574, + link_num1575: this.link_num1575, + link_num1576: this.link_num1576, + link_num1577: this.link_num1577, + link_num1578: this.link_num1578, + link_num1579: this.link_num1579, + link_num1580: this.link_num1580, + link_num1581: this.link_num1581, + link_num1582: this.link_num1582, + link_num1583: this.link_num1583, + link_num1584: this.link_num1584, + link_num1585: this.link_num1585, + link_num1586: this.link_num1586, + link_num1587: this.link_num1587, + link_num1588: this.link_num1588, + link_num1589: this.link_num1589, + link_num1590: this.link_num1590, + link_num1591: this.link_num1591, + link_num1592: this.link_num1592, + link_num1593: this.link_num1593, + link_num1594: this.link_num1594, + link_num1595: this.link_num1595, + link_num1596: this.link_num1596, + link_num1597: this.link_num1597, + link_num1598: this.link_num1598, + link_num1599: this.link_num1599, + link_num1600: this.link_num1600, + link_num1601: this.link_num1601, + link_num1602: this.link_num1602, + link_num1603: this.link_num1603, + link_num1604: this.link_num1604, + link_num1605: this.link_num1605, + link_num1606: this.link_num1606, + link_num1607: this.link_num1607, + link_num1608: this.link_num1608, + link_num1609: this.link_num1609, + link_num1610: this.link_num1610, + link_num1611: this.link_num1611, + link_num1612: this.link_num1612, + link_num1613: this.link_num1613, + link_num1614: this.link_num1614, + link_num1615: this.link_num1615, + link_num1616: this.link_num1616, + link_num1617: this.link_num1617, + link_num1618: this.link_num1618, + link_num1619: this.link_num1619, + link_num1620: this.link_num1620, + link_num1621: this.link_num1621, + link_num1622: this.link_num1622, + link_num1623: this.link_num1623, + link_num1624: this.link_num1624, + link_num1625: this.link_num1625, + link_num1626: this.link_num1626, + link_num1627: this.link_num1627, + link_num1628: this.link_num1628, + link_num1629: this.link_num1629, + link_num1630: this.link_num1630, + link_num1631: this.link_num1631, + link_num1632: this.link_num1632, + link_num1633: this.link_num1633, + link_num1634: this.link_num1634, + link_num1635: this.link_num1635, + link_num1636: this.link_num1636, + link_num1637: this.link_num1637, + link_num1638: this.link_num1638, + link_num1639: this.link_num1639, + link_num1640: this.link_num1640, + link_num1641: this.link_num1641, + link_num1642: this.link_num1642, + link_num1643: this.link_num1643, + link_num1644: this.link_num1644, + link_num1645: this.link_num1645, + link_num1646: this.link_num1646, + link_num1647: this.link_num1647, + link_num1648: this.link_num1648, + link_num1649: this.link_num1649, + link_num1650: this.link_num1650, + link_num1651: this.link_num1651, + link_num1652: this.link_num1652, + link_num1653: this.link_num1653, + link_num1654: this.link_num1654, + link_num1655: this.link_num1655, + link_num1656: this.link_num1656, + link_num1657: this.link_num1657, + link_num1658: this.link_num1658, + link_num1659: this.link_num1659, + link_num1660: this.link_num1660, + link_num1661: this.link_num1661, + link_num1662: this.link_num1662, + link_num1663: this.link_num1663, + link_num1664: this.link_num1664, + link_num1665: this.link_num1665, + link_num1666: this.link_num1666, + link_num1667: this.link_num1667, + link_num1668: this.link_num1668, + link_num1669: this.link_num1669, + link_num1670: this.link_num1670, + link_num1671: this.link_num1671, + link_num1672: this.link_num1672, + link_num1673: this.link_num1673, + link_num1674: this.link_num1674, + link_num1675: this.link_num1675, + link_num1676: this.link_num1676, + link_num1677: this.link_num1677, + link_num1678: this.link_num1678, + link_num1679: this.link_num1679, + link_num1680: this.link_num1680, + link_num1681: this.link_num1681, + link_num1682: this.link_num1682, + link_num1683: this.link_num1683, + link_num1684: this.link_num1684, + link_num1685: this.link_num1685, + link_num1686: this.link_num1686, + link_num1687: this.link_num1687, + link_num1688: this.link_num1688, + link_num1689: this.link_num1689, + link_num1690: this.link_num1690, + link_num1691: this.link_num1691, + link_num1692: this.link_num1692, + link_num1693: this.link_num1693, + link_num1694: this.link_num1694, + link_num1695: this.link_num1695, + link_num1696: this.link_num1696, + link_num1697: this.link_num1697, + link_num1698: this.link_num1698, + link_num1699: this.link_num1699, + link_num1700: this.link_num1700, + link_num1701: this.link_num1701, + link_num1702: this.link_num1702, + link_num1703: this.link_num1703, + link_num1704: this.link_num1704, + link_num1705: this.link_num1705, + link_num1706: this.link_num1706, + link_num1707: this.link_num1707, + link_num1708: this.link_num1708, + link_num1709: this.link_num1709, + link_num1710: this.link_num1710, + link_num1711: this.link_num1711, + link_num1712: this.link_num1712, + link_num1713: this.link_num1713, + link_num1714: this.link_num1714, + link_num1715: this.link_num1715, + link_num1716: this.link_num1716, + link_num1717: this.link_num1717, + link_num1718: this.link_num1718, + link_num1719: this.link_num1719, + link_num1720: this.link_num1720, + link_num1721: this.link_num1721, + link_num1722: this.link_num1722, + link_num1723: this.link_num1723, + link_num1724: this.link_num1724, + link_num1725: this.link_num1725, + link_num1726: this.link_num1726, + link_num1727: this.link_num1727, + link_num1728: this.link_num1728, + link_num1729: this.link_num1729, + link_num1730: this.link_num1730, + link_num1731: this.link_num1731, + link_num1732: this.link_num1732, + link_num1733: this.link_num1733, + link_num1734: this.link_num1734, + link_num1735: this.link_num1735, + link_num1736: this.link_num1736, + link_num1737: this.link_num1737, + link_num1738: this.link_num1738, + link_num1739: this.link_num1739, + link_num1740: this.link_num1740, + link_num1741: this.link_num1741, + link_num1742: this.link_num1742, + link_num1743: this.link_num1743, + link_num1744: this.link_num1744, + link_num1745: this.link_num1745, + link_num1746: this.link_num1746, + link_num1747: this.link_num1747, + link_num1748: this.link_num1748, + link_num1749: this.link_num1749, + link_num1750: this.link_num1750, + link_num1751: this.link_num1751, + link_num1752: this.link_num1752, + link_num1753: this.link_num1753, + link_num1754: this.link_num1754, + link_num1755: this.link_num1755, + link_num1756: this.link_num1756, + link_num1757: this.link_num1757, + link_num1758: this.link_num1758, + link_num1759: this.link_num1759, + link_num1760: this.link_num1760, + link_num1761: this.link_num1761, + link_num1762: this.link_num1762, + link_num1763: this.link_num1763, + link_num1764: this.link_num1764, + link_num1765: this.link_num1765, + link_num1766: this.link_num1766, + link_num1767: this.link_num1767, + link_num1768: this.link_num1768, + link_num1769: this.link_num1769, + link_num1770: this.link_num1770, + link_num1771: this.link_num1771, + link_num1772: this.link_num1772, + link_num1773: this.link_num1773, + link_num1774: this.link_num1774, + link_num1775: this.link_num1775, + link_num1776: this.link_num1776, + link_num1777: this.link_num1777, + link_num1778: this.link_num1778, + link_num1779: this.link_num1779, + link_num1780: this.link_num1780, + link_num1781: this.link_num1781, + link_num1782: this.link_num1782, + link_num1783: this.link_num1783, + link_num1784: this.link_num1784, + link_num1785: this.link_num1785, + link_num1786: this.link_num1786, + link_num1787: this.link_num1787, + link_num1788: this.link_num1788, + link_num1789: this.link_num1789, + link_num1790: this.link_num1790, + link_num1791: this.link_num1791, + link_num1792: this.link_num1792, + link_num1793: this.link_num1793, + link_num1794: this.link_num1794, + link_num1795: this.link_num1795, + link_num1796: this.link_num1796, + link_num1797: this.link_num1797, + link_num1798: this.link_num1798, + link_num1799: this.link_num1799, + link_num1800: this.link_num1800, + link_num1801: this.link_num1801, + link_num1802: this.link_num1802, + link_num1803: this.link_num1803, + link_num1804: this.link_num1804, + link_num1805: this.link_num1805, + link_num1806: this.link_num1806, + link_num1807: this.link_num1807, + link_num1808: this.link_num1808, + link_num1809: this.link_num1809, + link_num1810: this.link_num1810, + link_num1811: this.link_num1811, + link_num1812: this.link_num1812, + link_num1813: this.link_num1813, + link_num1814: this.link_num1814, + link_num1815: this.link_num1815, + link_num1816: this.link_num1816, + link_num1817: this.link_num1817, + + } + ) + + //============================================================================= + ConsumeVariables() + } + } +} + +@Component +struct PropVariables { + //============================================================================= + @Prop prop_num0: number = 0; + @Prop prop_num1: number = 0; + @Prop prop_num2: number = 0; + @Prop prop_num3: number = 0; + @Prop prop_num4: number = 0; + @Prop prop_num5: number = 0; + @Prop prop_num6: number = 0; + @Prop prop_num7: number = 0; + @Prop prop_num8: number = 0; + @Prop prop_num9: number = 0; + @Prop prop_num10: number = 0; + @Prop prop_num11: number = 0; + @Prop prop_num12: number = 0; + @Prop prop_num13: number = 0; + @Prop prop_num14: number = 0; + @Prop prop_num15: number = 0; + @Prop prop_num16: number = 0; + @Prop prop_num17: number = 0; + @Prop prop_num18: number = 0; + @Prop prop_num19: number = 0; + @Prop prop_num20: number = 0; + @Prop prop_num21: number = 0; + @Prop prop_num22: number = 0; + @Prop prop_num23: number = 0; + @Prop prop_num24: number = 0; + @Prop prop_num25: number = 0; + @Prop prop_num26: number = 0; + @Prop prop_num27: number = 0; + @Prop prop_num28: number = 0; + @Prop prop_num29: number = 0; + @Prop prop_num30: number = 0; + @Prop prop_num31: number = 0; + @Prop prop_num32: number = 0; + @Prop prop_num33: number = 0; + @Prop prop_num34: number = 0; + @Prop prop_num35: number = 0; + @Prop prop_num36: number = 0; + @Prop prop_num37: number = 0; + @Prop prop_num38: number = 0; + @Prop prop_num39: number = 0; + @Prop prop_num40: number = 0; + @Prop prop_num41: number = 0; + @Prop prop_num42: number = 0; + @Prop prop_num43: number = 0; + @Prop prop_num44: number = 0; + @Prop prop_num45: number = 0; + @Prop prop_num46: number = 0; + @Prop prop_num47: number = 0; + @Prop prop_num48: number = 0; + @Prop prop_num49: number = 0; + @Prop prop_num50: number = 0; + @Prop prop_num51: number = 0; + @Prop prop_num52: number = 0; + @Prop prop_num53: number = 0; + @Prop prop_num54: number = 0; + @Prop prop_num55: number = 0; + @Prop prop_num56: number = 0; + @Prop prop_num57: number = 0; + @Prop prop_num58: number = 0; + @Prop prop_num59: number = 0; + @Prop prop_num60: number = 0; + @Prop prop_num61: number = 0; + @Prop prop_num62: number = 0; + @Prop prop_num63: number = 0; + @Prop prop_num64: number = 0; + @Prop prop_num65: number = 0; + @Prop prop_num66: number = 0; + @Prop prop_num67: number = 0; + @Prop prop_num68: number = 0; + @Prop prop_num69: number = 0; + @Prop prop_num70: number = 0; + @Prop prop_num71: number = 0; + @Prop prop_num72: number = 0; + @Prop prop_num73: number = 0; + @Prop prop_num74: number = 0; + @Prop prop_num75: number = 0; + @Prop prop_num76: number = 0; + @Prop prop_num77: number = 0; + @Prop prop_num78: number = 0; + @Prop prop_num79: number = 0; + @Prop prop_num80: number = 0; + @Prop prop_num81: number = 0; + @Prop prop_num82: number = 0; + @Prop prop_num83: number = 0; + @Prop prop_num84: number = 0; + @Prop prop_num85: number = 0; + @Prop prop_num86: number = 0; + @Prop prop_num87: number = 0; + @Prop prop_num88: number = 0; + @Prop prop_num89: number = 0; + @Prop prop_num90: number = 0; + @Prop prop_num91: number = 0; + @Prop prop_num92: number = 0; + @Prop prop_num93: number = 0; + @Prop prop_num94: number = 0; + @Prop prop_num95: number = 0; + @Prop prop_num96: number = 0; + @Prop prop_num97: number = 0; + @Prop prop_num98: number = 0; + @Prop prop_num99: number = 0; + @Prop prop_num100: number = 0; + @Prop prop_num101: number = 0; + @Prop prop_num102: number = 0; + @Prop prop_num103: number = 0; + @Prop prop_num104: number = 0; + @Prop prop_num105: number = 0; + @Prop prop_num106: number = 0; + @Prop prop_num107: number = 0; + @Prop prop_num108: number = 0; + @Prop prop_num109: number = 0; + @Prop prop_num110: number = 0; + @Prop prop_num111: number = 0; + @Prop prop_num112: number = 0; + @Prop prop_num113: number = 0; + @Prop prop_num114: number = 0; + @Prop prop_num115: number = 0; + @Prop prop_num116: number = 0; + @Prop prop_num117: number = 0; + @Prop prop_num118: number = 0; + @Prop prop_num119: number = 0; + @Prop prop_num120: number = 0; + @Prop prop_num121: number = 0; + @Prop prop_num122: number = 0; + @Prop prop_num123: number = 0; + @Prop prop_num124: number = 0; + @Prop prop_num125: number = 0; + @Prop prop_num126: number = 0; + @Prop prop_num127: number = 0; + @Prop prop_num128: number = 0; + @Prop prop_num129: number = 0; + @Prop prop_num130: number = 0; + @Prop prop_num131: number = 0; + @Prop prop_num132: number = 0; + @Prop prop_num133: number = 0; + @Prop prop_num134: number = 0; + @Prop prop_num135: number = 0; + @Prop prop_num136: number = 0; + @Prop prop_num137: number = 0; + @Prop prop_num138: number = 0; + @Prop prop_num139: number = 0; + @Prop prop_num140: number = 0; + @Prop prop_num141: number = 0; + @Prop prop_num142: number = 0; + @Prop prop_num143: number = 0; + @Prop prop_num144: number = 0; + @Prop prop_num145: number = 0; + @Prop prop_num146: number = 0; + @Prop prop_num147: number = 0; + @Prop prop_num148: number = 0; + @Prop prop_num149: number = 0; + @Prop prop_num150: number = 0; + @Prop prop_num151: number = 0; + @Prop prop_num152: number = 0; + @Prop prop_num153: number = 0; + @Prop prop_num154: number = 0; + @Prop prop_num155: number = 0; + @Prop prop_num156: number = 0; + @Prop prop_num157: number = 0; + @Prop prop_num158: number = 0; + @Prop prop_num159: number = 0; + @Prop prop_num160: number = 0; + @Prop prop_num161: number = 0; + @Prop prop_num162: number = 0; + @Prop prop_num163: number = 0; + @Prop prop_num164: number = 0; + @Prop prop_num165: number = 0; + @Prop prop_num166: number = 0; + @Prop prop_num167: number = 0; + @Prop prop_num168: number = 0; + @Prop prop_num169: number = 0; + @Prop prop_num170: number = 0; + @Prop prop_num171: number = 0; + @Prop prop_num172: number = 0; + @Prop prop_num173: number = 0; + @Prop prop_num174: number = 0; + @Prop prop_num175: number = 0; + @Prop prop_num176: number = 0; + @Prop prop_num177: number = 0; + @Prop prop_num178: number = 0; + @Prop prop_num179: number = 0; + @Prop prop_num180: number = 0; + @Prop prop_num181: number = 0; + @Prop prop_num182: number = 0; + @Prop prop_num183: number = 0; + @Prop prop_num184: number = 0; + @Prop prop_num185: number = 0; + @Prop prop_num186: number = 0; + @Prop prop_num187: number = 0; + @Prop prop_num188: number = 0; + @Prop prop_num189: number = 0; + @Prop prop_num190: number = 0; + @Prop prop_num191: number = 0; + @Prop prop_num192: number = 0; + @Prop prop_num193: number = 0; + @Prop prop_num194: number = 0; + @Prop prop_num195: number = 0; + @Prop prop_num196: number = 0; + @Prop prop_num197: number = 0; + @Prop prop_num198: number = 0; + @Prop prop_num199: number = 0; + @Prop prop_num200: number = 0; + @Prop prop_num201: number = 0; + @Prop prop_num202: number = 0; + @Prop prop_num203: number = 0; + @Prop prop_num204: number = 0; + @Prop prop_num205: number = 0; + @Prop prop_num206: number = 0; + @Prop prop_num207: number = 0; + @Prop prop_num208: number = 0; + @Prop prop_num209: number = 0; + @Prop prop_num210: number = 0; + @Prop prop_num211: number = 0; + @Prop prop_num212: number = 0; + @Prop prop_num213: number = 0; + @Prop prop_num214: number = 0; + @Prop prop_num215: number = 0; + @Prop prop_num216: number = 0; + @Prop prop_num217: number = 0; + @Prop prop_num218: number = 0; + @Prop prop_num219: number = 0; + @Prop prop_num220: number = 0; + @Prop prop_num221: number = 0; + @Prop prop_num222: number = 0; + @Prop prop_num223: number = 0; + @Prop prop_num224: number = 0; + @Prop prop_num225: number = 0; + @Prop prop_num226: number = 0; + @Prop prop_num227: number = 0; + @Prop prop_num228: number = 0; + @Prop prop_num229: number = 0; + @Prop prop_num230: number = 0; + @Prop prop_num231: number = 0; + @Prop prop_num232: number = 0; + @Prop prop_num233: number = 0; + @Prop prop_num234: number = 0; + @Prop prop_num235: number = 0; + @Prop prop_num236: number = 0; + @Prop prop_num237: number = 0; + @Prop prop_num238: number = 0; + @Prop prop_num239: number = 0; + @Prop prop_num240: number = 0; + @Prop prop_num241: number = 0; + @Prop prop_num242: number = 0; + @Prop prop_num243: number = 0; + @Prop prop_num244: number = 0; + @Prop prop_num245: number = 0; + @Prop prop_num246: number = 0; + @Prop prop_num247: number = 0; + @Prop prop_num248: number = 0; + @Prop prop_num249: number = 0; + @Prop prop_num250: number = 0; + @Prop prop_num251: number = 0; + @Prop prop_num252: number = 0; + @Prop prop_num253: number = 0; + @Prop prop_num254: number = 0; + @Prop prop_num255: number = 0; + @Prop prop_num256: number = 0; + @Prop prop_num257: number = 0; + @Prop prop_num258: number = 0; + @Prop prop_num259: number = 0; + @Prop prop_num260: number = 0; + @Prop prop_num261: number = 0; + @Prop prop_num262: number = 0; + @Prop prop_num263: number = 0; + @Prop prop_num264: number = 0; + @Prop prop_num265: number = 0; + @Prop prop_num266: number = 0; + @Prop prop_num267: number = 0; + @Prop prop_num268: number = 0; + @Prop prop_num269: number = 0; + @Prop prop_num270: number = 0; + @Prop prop_num271: number = 0; + @Prop prop_num272: number = 0; + @Prop prop_num273: number = 0; + @Prop prop_num274: number = 0; + @Prop prop_num275: number = 0; + @Prop prop_num276: number = 0; + @Prop prop_num277: number = 0; + @Prop prop_num278: number = 0; + @Prop prop_num279: number = 0; + @Prop prop_num280: number = 0; + @Prop prop_num281: number = 0; + @Prop prop_num282: number = 0; + @Prop prop_num283: number = 0; + @Prop prop_num284: number = 0; + @Prop prop_num285: number = 0; + @Prop prop_num286: number = 0; + @Prop prop_num287: number = 0; + @Prop prop_num288: number = 0; + @Prop prop_num289: number = 0; + @Prop prop_num290: number = 0; + @Prop prop_num291: number = 0; + @Prop prop_num292: number = 0; + @Prop prop_num293: number = 0; + @Prop prop_num294: number = 0; + @Prop prop_num295: number = 0; + @Prop prop_num296: number = 0; + @Prop prop_num297: number = 0; + @Prop prop_num298: number = 0; + @Prop prop_num299: number = 0; + @Prop prop_num300: number = 0; + @Prop prop_num301: number = 0; + @Prop prop_num302: number = 0; + @Prop prop_num303: number = 0; + @Prop prop_num304: number = 0; + @Prop prop_num305: number = 0; + @Prop prop_num306: number = 0; + @Prop prop_num307: number = 0; + @Prop prop_num308: number = 0; + @Prop prop_num309: number = 0; + @Prop prop_num310: number = 0; + @Prop prop_num311: number = 0; + @Prop prop_num312: number = 0; + @Prop prop_num313: number = 0; + @Prop prop_num314: number = 0; + @Prop prop_num315: number = 0; + @Prop prop_num316: number = 0; + @Prop prop_num317: number = 0; + @Prop prop_num318: number = 0; + @Prop prop_num319: number = 0; + @Prop prop_num320: number = 0; + @Prop prop_num321: number = 0; + @Prop prop_num322: number = 0; + @Prop prop_num323: number = 0; + @Prop prop_num324: number = 0; + @Prop prop_num325: number = 0; + @Prop prop_num326: number = 0; + @Prop prop_num327: number = 0; + @Prop prop_num328: number = 0; + @Prop prop_num329: number = 0; + @Prop prop_num330: number = 0; + @Prop prop_num331: number = 0; + @Prop prop_num332: number = 0; + @Prop prop_num333: number = 0; + @Prop prop_num334: number = 0; + @Prop prop_num335: number = 0; + @Prop prop_num336: number = 0; + @Prop prop_num337: number = 0; + @Prop prop_num338: number = 0; + @Prop prop_num339: number = 0; + @Prop prop_num340: number = 0; + @Prop prop_num341: number = 0; + @Prop prop_num342: number = 0; + @Prop prop_num343: number = 0; + @Prop prop_num344: number = 0; + @Prop prop_num345: number = 0; + @Prop prop_num346: number = 0; + @Prop prop_num347: number = 0; + @Prop prop_num348: number = 0; + @Prop prop_num349: number = 0; + @Prop prop_num350: number = 0; + @Prop prop_num351: number = 0; + @Prop prop_num352: number = 0; + @Prop prop_num353: number = 0; + @Prop prop_num354: number = 0; + @Prop prop_num355: number = 0; + @Prop prop_num356: number = 0; + @Prop prop_num357: number = 0; + @Prop prop_num358: number = 0; + @Prop prop_num359: number = 0; + @Prop prop_num360: number = 0; + @Prop prop_num361: number = 0; + @Prop prop_num362: number = 0; + @Prop prop_num363: number = 0; + @Prop prop_num364: number = 0; + @Prop prop_num365: number = 0; + @Prop prop_num366: number = 0; + @Prop prop_num367: number = 0; + @Prop prop_num368: number = 0; + @Prop prop_num369: number = 0; + @Prop prop_num370: number = 0; + @Prop prop_num371: number = 0; + @Prop prop_num372: number = 0; + @Prop prop_num373: number = 0; + @Prop prop_num374: number = 0; + @Prop prop_num375: number = 0; + @Prop prop_num376: number = 0; + @Prop prop_num377: number = 0; + @Prop prop_num378: number = 0; + @Prop prop_num379: number = 0; + @Prop prop_num380: number = 0; + @Prop prop_num381: number = 0; + @Prop prop_num382: number = 0; + @Prop prop_num383: number = 0; + @Prop prop_num384: number = 0; + @Prop prop_num385: number = 0; + @Prop prop_num386: number = 0; + @Prop prop_num387: number = 0; + @Prop prop_num388: number = 0; + @Prop prop_num389: number = 0; + @Prop prop_num390: number = 0; + @Prop prop_num391: number = 0; + @Prop prop_num392: number = 0; + @Prop prop_num393: number = 0; + @Prop prop_num394: number = 0; + @Prop prop_num395: number = 0; + @Prop prop_num396: number = 0; + @Prop prop_num397: number = 0; + @Prop prop_num398: number = 0; + @Prop prop_num399: number = 0; + @Prop prop_num400: number = 0; + @Prop prop_num401: number = 0; + @Prop prop_num402: number = 0; + @Prop prop_num403: number = 0; + @Prop prop_num404: number = 0; + @Prop prop_num405: number = 0; + @Prop prop_num406: number = 0; + @Prop prop_num407: number = 0; + @Prop prop_num408: number = 0; + @Prop prop_num409: number = 0; + @Prop prop_num410: number = 0; + @Prop prop_num411: number = 0; + @Prop prop_num412: number = 0; + @Prop prop_num413: number = 0; + @Prop prop_num414: number = 0; + @Prop prop_num415: number = 0; + @Prop prop_num416: number = 0; + @Prop prop_num417: number = 0; + @Prop prop_num418: number = 0; + @Prop prop_num419: number = 0; + @Prop prop_num420: number = 0; + @Prop prop_num421: number = 0; + @Prop prop_num422: number = 0; + @Prop prop_num423: number = 0; + @Prop prop_num424: number = 0; + @Prop prop_num425: number = 0; + @Prop prop_num426: number = 0; + @Prop prop_num427: number = 0; + @Prop prop_num428: number = 0; + @Prop prop_num429: number = 0; + @Prop prop_num430: number = 0; + @Prop prop_num431: number = 0; + @Prop prop_num432: number = 0; + @Prop prop_num433: number = 0; + @Prop prop_num434: number = 0; + @Prop prop_num435: number = 0; + @Prop prop_num436: number = 0; + @Prop prop_num437: number = 0; + @Prop prop_num438: number = 0; + @Prop prop_num439: number = 0; + @Prop prop_num440: number = 0; + @Prop prop_num441: number = 0; + @Prop prop_num442: number = 0; + @Prop prop_num443: number = 0; + @Prop prop_num444: number = 0; + @Prop prop_num445: number = 0; + @Prop prop_num446: number = 0; + @Prop prop_num447: number = 0; + @Prop prop_num448: number = 0; + @Prop prop_num449: number = 0; + @Prop prop_num450: number = 0; + @Prop prop_num451: number = 0; + @Prop prop_num452: number = 0; + @Prop prop_num453: number = 0; + @Prop prop_num454: number = 0; + @Prop prop_num455: number = 0; + @Prop prop_num456: number = 0; + @Prop prop_num457: number = 0; + @Prop prop_num458: number = 0; + @Prop prop_num459: number = 0; + @Prop prop_num460: number = 0; + @Prop prop_num461: number = 0; + @Prop prop_num462: number = 0; + @Prop prop_num463: number = 0; + @Prop prop_num464: number = 0; + @Prop prop_num465: number = 0; + @Prop prop_num466: number = 0; + @Prop prop_num467: number = 0; + @Prop prop_num468: number = 0; + @Prop prop_num469: number = 0; + @Prop prop_num470: number = 0; + @Prop prop_num471: number = 0; + @Prop prop_num472: number = 0; + @Prop prop_num473: number = 0; + @Prop prop_num474: number = 0; + @Prop prop_num475: number = 0; + @Prop prop_num476: number = 0; + @Prop prop_num477: number = 0; + @Prop prop_num478: number = 0; + @Prop prop_num479: number = 0; + @Prop prop_num480: number = 0; + @Prop prop_num481: number = 0; + @Prop prop_num482: number = 0; + @Prop prop_num483: number = 0; + @Prop prop_num484: number = 0; + @Prop prop_num485: number = 0; + @Prop prop_num486: number = 0; + @Prop prop_num487: number = 0; + @Prop prop_num488: number = 0; + @Prop prop_num489: number = 0; + @Prop prop_num490: number = 0; + @Prop prop_num491: number = 0; + @Prop prop_num492: number = 0; + @Prop prop_num493: number = 0; + @Prop prop_num494: number = 0; + @Prop prop_num495: number = 0; + @Prop prop_num496: number = 0; + @Prop prop_num497: number = 0; + @Prop prop_num498: number = 0; + @Prop prop_num499: number = 0; + @Prop prop_num500: number = 0; + @Prop prop_num501: number = 0; + @Prop prop_num502: number = 0; + @Prop prop_num503: number = 0; + @Prop prop_num504: number = 0; + @Prop prop_num505: number = 0; + @Prop prop_num506: number = 0; + @Prop prop_num507: number = 0; + @Prop prop_num508: number = 0; + @Prop prop_num509: number = 0; + @Prop prop_num510: number = 0; + @Prop prop_num511: number = 0; + @Prop prop_num512: number = 0; + @Prop prop_num513: number = 0; + @Prop prop_num514: number = 0; + @Prop prop_num515: number = 0; + @Prop prop_num516: number = 0; + @Prop prop_num517: number = 0; + @Prop prop_num518: number = 0; + @Prop prop_num519: number = 0; + @Prop prop_num520: number = 0; + @Prop prop_num521: number = 0; + @Prop prop_num522: number = 0; + @Prop prop_num523: number = 0; + @Prop prop_num524: number = 0; + @Prop prop_num525: number = 0; + @Prop prop_num526: number = 0; + @Prop prop_num527: number = 0; + @Prop prop_num528: number = 0; + @Prop prop_num529: number = 0; + @Prop prop_num530: number = 0; + @Prop prop_num531: number = 0; + @Prop prop_num532: number = 0; + @Prop prop_num533: number = 0; + @Prop prop_num534: number = 0; + @Prop prop_num535: number = 0; + @Prop prop_num536: number = 0; + @Prop prop_num537: number = 0; + @Prop prop_num538: number = 0; + @Prop prop_num539: number = 0; + @Prop prop_num540: number = 0; + @Prop prop_num541: number = 0; + @Prop prop_num542: number = 0; + @Prop prop_num543: number = 0; + @Prop prop_num544: number = 0; + @Prop prop_num545: number = 0; + @Prop prop_num546: number = 0; + @Prop prop_num547: number = 0; + @Prop prop_num548: number = 0; + @Prop prop_num549: number = 0; + @Prop prop_num550: number = 0; + @Prop prop_num551: number = 0; + @Prop prop_num552: number = 0; + @Prop prop_num553: number = 0; + @Prop prop_num554: number = 0; + @Prop prop_num555: number = 0; + @Prop prop_num556: number = 0; + @Prop prop_num557: number = 0; + @Prop prop_num558: number = 0; + @Prop prop_num559: number = 0; + @Prop prop_num560: number = 0; + @Prop prop_num561: number = 0; + @Prop prop_num562: number = 0; + @Prop prop_num563: number = 0; + @Prop prop_num564: number = 0; + @Prop prop_num565: number = 0; + @Prop prop_num566: number = 0; + @Prop prop_num567: number = 0; + @Prop prop_num568: number = 0; + @Prop prop_num569: number = 0; + @Prop prop_num570: number = 0; + @Prop prop_num571: number = 0; + @Prop prop_num572: number = 0; + @Prop prop_num573: number = 0; + @Prop prop_num574: number = 0; + @Prop prop_num575: number = 0; + @Prop prop_num576: number = 0; + @Prop prop_num577: number = 0; + @Prop prop_num578: number = 0; + @Prop prop_num579: number = 0; + @Prop prop_num580: number = 0; + @Prop prop_num581: number = 0; + @Prop prop_num582: number = 0; + @Prop prop_num583: number = 0; + @Prop prop_num584: number = 0; + @Prop prop_num585: number = 0; + @Prop prop_num586: number = 0; + @Prop prop_num587: number = 0; + @Prop prop_num588: number = 0; + @Prop prop_num589: number = 0; + @Prop prop_num590: number = 0; + @Prop prop_num591: number = 0; + @Prop prop_num592: number = 0; + @Prop prop_num593: number = 0; + @Prop prop_num594: number = 0; + @Prop prop_num595: number = 0; + @Prop prop_num596: number = 0; + @Prop prop_num597: number = 0; + @Prop prop_num598: number = 0; + @Prop prop_num599: number = 0; + @Prop prop_num600: number = 0; + @Prop prop_num601: number = 0; + @Prop prop_num602: number = 0; + @Prop prop_num603: number = 0; + @Prop prop_num604: number = 0; + @Prop prop_num605: number = 0; + @Prop prop_num606: number = 0; + @Prop prop_num607: number = 0; + @Prop prop_num608: number = 0; + @Prop prop_num609: number = 0; + @Prop prop_num610: number = 0; + @Prop prop_num611: number = 0; + @Prop prop_num612: number = 0; + @Prop prop_num613: number = 0; + @Prop prop_num614: number = 0; + @Prop prop_num615: number = 0; + @Prop prop_num616: number = 0; + @Prop prop_num617: number = 0; + @Prop prop_num618: number = 0; + @Prop prop_num619: number = 0; + @Prop prop_num620: number = 0; + @Prop prop_num621: number = 0; + @Prop prop_num622: number = 0; + @Prop prop_num623: number = 0; + @Prop prop_num624: number = 0; + @Prop prop_num625: number = 0; + @Prop prop_num626: number = 0; + @Prop prop_num627: number = 0; + @Prop prop_num628: number = 0; + @Prop prop_num629: number = 0; + @Prop prop_num630: number = 0; + @Prop prop_num631: number = 0; + @Prop prop_num632: number = 0; + @Prop prop_num633: number = 0; + @Prop prop_num634: number = 0; + @Prop prop_num635: number = 0; + @Prop prop_num636: number = 0; + @Prop prop_num637: number = 0; + @Prop prop_num638: number = 0; + @Prop prop_num639: number = 0; + @Prop prop_num640: number = 0; + @Prop prop_num641: number = 0; + @Prop prop_num642: number = 0; + @Prop prop_num643: number = 0; + @Prop prop_num644: number = 0; + @Prop prop_num645: number = 0; + @Prop prop_num646: number = 0; + @Prop prop_num647: number = 0; + @Prop prop_num648: number = 0; + @Prop prop_num649: number = 0; + @Prop prop_num650: number = 0; + @Prop prop_num651: number = 0; + @Prop prop_num652: number = 0; + @Prop prop_num653: number = 0; + @Prop prop_num654: number = 0; + @Prop prop_num655: number = 0; + @Prop prop_num656: number = 0; + @Prop prop_num657: number = 0; + @Prop prop_num658: number = 0; + @Prop prop_num659: number = 0; + @Prop prop_num660: number = 0; + @Prop prop_num661: number = 0; + @Prop prop_num662: number = 0; + @Prop prop_num663: number = 0; + @Prop prop_num664: number = 0; + @Prop prop_num665: number = 0; + @Prop prop_num666: number = 0; + @Prop prop_num667: number = 0; + @Prop prop_num668: number = 0; + @Prop prop_num669: number = 0; + @Prop prop_num670: number = 0; + @Prop prop_num671: number = 0; + @Prop prop_num672: number = 0; + @Prop prop_num673: number = 0; + @Prop prop_num674: number = 0; + @Prop prop_num675: number = 0; + @Prop prop_num676: number = 0; + @Prop prop_num677: number = 0; + @Prop prop_num678: number = 0; + @Prop prop_num679: number = 0; + @Prop prop_num680: number = 0; + @Prop prop_num681: number = 0; + @Prop prop_num682: number = 0; + @Prop prop_num683: number = 0; + @Prop prop_num684: number = 0; + @Prop prop_num685: number = 0; + @Prop prop_num686: number = 0; + @Prop prop_num687: number = 0; + @Prop prop_num688: number = 0; + @Prop prop_num689: number = 0; + @Prop prop_num690: number = 0; + @Prop prop_num691: number = 0; + @Prop prop_num692: number = 0; + @Prop prop_num693: number = 0; + @Prop prop_num694: number = 0; + @Prop prop_num695: number = 0; + @Prop prop_num696: number = 0; + @Prop prop_num697: number = 0; + @Prop prop_num698: number = 0; + @Prop prop_num699: number = 0; + @Prop prop_num700: number = 0; + @Prop prop_num701: number = 0; + @Prop prop_num702: number = 0; + @Prop prop_num703: number = 0; + @Prop prop_num704: number = 0; + @Prop prop_num705: number = 0; + @Prop prop_num706: number = 0; + @Prop prop_num707: number = 0; + @Prop prop_num708: number = 0; + @Prop prop_num709: number = 0; + @Prop prop_num710: number = 0; + @Prop prop_num711: number = 0; + @Prop prop_num712: number = 0; + @Prop prop_num713: number = 0; + @Prop prop_num714: number = 0; + @Prop prop_num715: number = 0; + @Prop prop_num716: number = 0; + @Prop prop_num717: number = 0; + @Prop prop_num718: number = 0; + @Prop prop_num719: number = 0; + @Prop prop_num720: number = 0; + @Prop prop_num721: number = 0; + @Prop prop_num722: number = 0; + @Prop prop_num723: number = 0; + @Prop prop_num724: number = 0; + @Prop prop_num725: number = 0; + @Prop prop_num726: number = 0; + @Prop prop_num727: number = 0; + @Prop prop_num728: number = 0; + @Prop prop_num729: number = 0; + @Prop prop_num730: number = 0; + @Prop prop_num731: number = 0; + @Prop prop_num732: number = 0; + @Prop prop_num733: number = 0; + @Prop prop_num734: number = 0; + @Prop prop_num735: number = 0; + @Prop prop_num736: number = 0; + @Prop prop_num737: number = 0; + @Prop prop_num738: number = 0; + @Prop prop_num739: number = 0; + @Prop prop_num740: number = 0; + @Prop prop_num741: number = 0; + @Prop prop_num742: number = 0; + @Prop prop_num743: number = 0; + @Prop prop_num744: number = 0; + @Prop prop_num745: number = 0; + @Prop prop_num746: number = 0; + @Prop prop_num747: number = 0; + @Prop prop_num748: number = 0; + @Prop prop_num749: number = 0; + @Prop prop_num750: number = 0; + @Prop prop_num751: number = 0; + @Prop prop_num752: number = 0; + @Prop prop_num753: number = 0; + @Prop prop_num754: number = 0; + @Prop prop_num755: number = 0; + @Prop prop_num756: number = 0; + @Prop prop_num757: number = 0; + @Prop prop_num758: number = 0; + @Prop prop_num759: number = 0; + @Prop prop_num760: number = 0; + @Prop prop_num761: number = 0; + @Prop prop_num762: number = 0; + @Prop prop_num763: number = 0; + @Prop prop_num764: number = 0; + @Prop prop_num765: number = 0; + @Prop prop_num766: number = 0; + @Prop prop_num767: number = 0; + @Prop prop_num768: number = 0; + @Prop prop_num769: number = 0; + @Prop prop_num770: number = 0; + @Prop prop_num771: number = 0; + @Prop prop_num772: number = 0; + @Prop prop_num773: number = 0; + @Prop prop_num774: number = 0; + @Prop prop_num775: number = 0; + @Prop prop_num776: number = 0; + @Prop prop_num777: number = 0; + @Prop prop_num778: number = 0; + @Prop prop_num779: number = 0; + @Prop prop_num780: number = 0; + @Prop prop_num781: number = 0; + @Prop prop_num782: number = 0; + @Prop prop_num783: number = 0; + @Prop prop_num784: number = 0; + @Prop prop_num785: number = 0; + @Prop prop_num786: number = 0; + @Prop prop_num787: number = 0; + @Prop prop_num788: number = 0; + @Prop prop_num789: number = 0; + @Prop prop_num790: number = 0; + @Prop prop_num791: number = 0; + @Prop prop_num792: number = 0; + @Prop prop_num793: number = 0; + @Prop prop_num794: number = 0; + @Prop prop_num795: number = 0; + @Prop prop_num796: number = 0; + @Prop prop_num797: number = 0; + @Prop prop_num798: number = 0; + @Prop prop_num799: number = 0; + @Prop prop_num800: number = 0; + @Prop prop_num801: number = 0; + @Prop prop_num802: number = 0; + @Prop prop_num803: number = 0; + @Prop prop_num804: number = 0; + @Prop prop_num805: number = 0; + @Prop prop_num806: number = 0; + @Prop prop_num807: number = 0; + @Prop prop_num808: number = 0; + @Prop prop_num809: number = 0; + @Prop prop_num810: number = 0; + @Prop prop_num811: number = 0; + @Prop prop_num812: number = 0; + @Prop prop_num813: number = 0; + @Prop prop_num814: number = 0; + @Prop prop_num815: number = 0; + @Prop prop_num816: number = 0; + @Prop prop_num817: number = 0; + @Prop prop_num818: number = 0; + @Prop prop_num819: number = 0; + @Prop prop_num820: number = 0; + @Prop prop_num821: number = 0; + @Prop prop_num822: number = 0; + @Prop prop_num823: number = 0; + @Prop prop_num824: number = 0; + @Prop prop_num825: number = 0; + @Prop prop_num826: number = 0; + @Prop prop_num827: number = 0; + @Prop prop_num828: number = 0; + @Prop prop_num829: number = 0; + @Prop prop_num830: number = 0; + @Prop prop_num831: number = 0; + @Prop prop_num832: number = 0; + @Prop prop_num833: number = 0; + @Prop prop_num834: number = 0; + @Prop prop_num835: number = 0; + @Prop prop_num836: number = 0; + @Prop prop_num837: number = 0; + @Prop prop_num838: number = 0; + @Prop prop_num839: number = 0; + @Prop prop_num840: number = 0; + @Prop prop_num841: number = 0; + @Prop prop_num842: number = 0; + @Prop prop_num843: number = 0; + @Prop prop_num844: number = 0; + @Prop prop_num845: number = 0; + @Prop prop_num846: number = 0; + @Prop prop_num847: number = 0; + @Prop prop_num848: number = 0; + @Prop prop_num849: number = 0; + @Prop prop_num850: number = 0; + @Prop prop_num851: number = 0; + @Prop prop_num852: number = 0; + @Prop prop_num853: number = 0; + @Prop prop_num854: number = 0; + @Prop prop_num855: number = 0; + @Prop prop_num856: number = 0; + @Prop prop_num857: number = 0; + @Prop prop_num858: number = 0; + @Prop prop_num859: number = 0; + @Prop prop_num860: number = 0; + @Prop prop_num861: number = 0; + @Prop prop_num862: number = 0; + @Prop prop_num863: number = 0; + @Prop prop_num864: number = 0; + @Prop prop_num865: number = 0; + @Prop prop_num866: number = 0; + @Prop prop_num867: number = 0; + @Prop prop_num868: number = 0; + @Prop prop_num869: number = 0; + @Prop prop_num870: number = 0; + @Prop prop_num871: number = 0; + @Prop prop_num872: number = 0; + @Prop prop_num873: number = 0; + @Prop prop_num874: number = 0; + @Prop prop_num875: number = 0; + @Prop prop_num876: number = 0; + @Prop prop_num877: number = 0; + @Prop prop_num878: number = 0; + @Prop prop_num879: number = 0; + @Prop prop_num880: number = 0; + @Prop prop_num881: number = 0; + @Prop prop_num882: number = 0; + @Prop prop_num883: number = 0; + @Prop prop_num884: number = 0; + @Prop prop_num885: number = 0; + @Prop prop_num886: number = 0; + @Prop prop_num887: number = 0; + @Prop prop_num888: number = 0; + @Prop prop_num889: number = 0; + @Prop prop_num890: number = 0; + @Prop prop_num891: number = 0; + @Prop prop_num892: number = 0; + @Prop prop_num893: number = 0; + @Prop prop_num894: number = 0; + @Prop prop_num895: number = 0; + @Prop prop_num896: number = 0; + @Prop prop_num897: number = 0; + @Prop prop_num898: number = 0; + @Prop prop_num899: number = 0; + @Prop prop_num900: number = 0; + @Prop prop_num901: number = 0; + @Prop prop_num902: number = 0; + @Prop prop_num903: number = 0; + @Prop prop_num904: number = 0; + @Prop prop_num905: number = 0; + @Prop prop_num906: number = 0; + @Prop prop_num907: number = 0; + @Prop prop_num908: number = 0; + @Prop prop_num909: number = 0; + @Prop prop_num910: number = 0; + @Prop prop_num911: number = 0; + @Prop prop_num912: number = 0; + @Prop prop_num913: number = 0; + @Prop prop_num914: number = 0; + @Prop prop_num915: number = 0; + @Prop prop_num916: number = 0; + @Prop prop_num917: number = 0; + @Prop prop_num918: number = 0; + @Prop prop_num919: number = 0; + @Prop prop_num920: number = 0; + @Prop prop_num921: number = 0; + @Prop prop_num922: number = 0; + @Prop prop_num923: number = 0; + @Prop prop_num924: number = 0; + @Prop prop_num925: number = 0; + @Prop prop_num926: number = 0; + @Prop prop_num927: number = 0; + @Prop prop_num928: number = 0; + @Prop prop_num929: number = 0; + @Prop prop_num930: number = 0; + @Prop prop_num931: number = 0; + @Prop prop_num932: number = 0; + @Prop prop_num933: number = 0; + @Prop prop_num934: number = 0; + @Prop prop_num935: number = 0; + @Prop prop_num936: number = 0; + @Prop prop_num937: number = 0; + @Prop prop_num938: number = 0; + @Prop prop_num939: number = 0; + @Prop prop_num940: number = 0; + @Prop prop_num941: number = 0; + @Prop prop_num942: number = 0; + @Prop prop_num943: number = 0; + @Prop prop_num944: number = 0; + @Prop prop_num945: number = 0; + @Prop prop_num946: number = 0; + @Prop prop_num947: number = 0; + @Prop prop_num948: number = 0; + @Prop prop_num949: number = 0; + @Prop prop_num950: number = 0; + @Prop prop_num951: number = 0; + @Prop prop_num952: number = 0; + @Prop prop_num953: number = 0; + @Prop prop_num954: number = 0; + @Prop prop_num955: number = 0; + @Prop prop_num956: number = 0; + @Prop prop_num957: number = 0; + @Prop prop_num958: number = 0; + @Prop prop_num959: number = 0; + @Prop prop_num960: number = 0; + @Prop prop_num961: number = 0; + @Prop prop_num962: number = 0; + @Prop prop_num963: number = 0; + @Prop prop_num964: number = 0; + @Prop prop_num965: number = 0; + @Prop prop_num966: number = 0; + @Prop prop_num967: number = 0; + @Prop prop_num968: number = 0; + @Prop prop_num969: number = 0; + @Prop prop_num970: number = 0; + @Prop prop_num971: number = 0; + @Prop prop_num972: number = 0; + @Prop prop_num973: number = 0; + @Prop prop_num974: number = 0; + @Prop prop_num975: number = 0; + @Prop prop_num976: number = 0; + @Prop prop_num977: number = 0; + @Prop prop_num978: number = 0; + @Prop prop_num979: number = 0; + @Prop prop_num980: number = 0; + @Prop prop_num981: number = 0; + @Prop prop_num982: number = 0; + @Prop prop_num983: number = 0; + @Prop prop_num984: number = 0; + @Prop prop_num985: number = 0; + @Prop prop_num986: number = 0; + @Prop prop_num987: number = 0; + @Prop prop_num988: number = 0; + @Prop prop_num989: number = 0; + @Prop prop_num990: number = 0; + @Prop prop_num991: number = 0; + @Prop prop_num992: number = 0; + @Prop prop_num993: number = 0; + @Prop prop_num994: number = 0; + @Prop prop_num995: number = 0; + @Prop prop_num996: number = 0; + @Prop prop_num997: number = 0; + @Prop prop_num998: number = 0; + @Prop prop_num999: number = 0; + @Prop prop_num1000: number = 0; + @Prop prop_num1001: number = 0; + @Prop prop_num1002: number = 0; + @Prop prop_num1003: number = 0; + @Prop prop_num1004: number = 0; + @Prop prop_num1005: number = 0; + @Prop prop_num1006: number = 0; + @Prop prop_num1007: number = 0; + @Prop prop_num1008: number = 0; + @Prop prop_num1009: number = 0; + @Prop prop_num1010: number = 0; + @Prop prop_num1011: number = 0; + @Prop prop_num1012: number = 0; + @Prop prop_num1013: number = 0; + @Prop prop_num1014: number = 0; + @Prop prop_num1015: number = 0; + @Prop prop_num1016: number = 0; + @Prop prop_num1017: number = 0; + @Prop prop_num1018: number = 0; + @Prop prop_num1019: number = 0; + @Prop prop_num1020: number = 0; + @Prop prop_num1021: number = 0; + @Prop prop_num1022: number = 0; + @Prop prop_num1023: number = 0; + @Prop prop_num1024: number = 0; + @Prop prop_num1025: number = 0; + @Prop prop_num1026: number = 0; + @Prop prop_num1027: number = 0; + @Prop prop_num1028: number = 0; + @Prop prop_num1029: number = 0; + @Prop prop_num1030: number = 0; + @Prop prop_num1031: number = 0; + @Prop prop_num1032: number = 0; + @Prop prop_num1033: number = 0; + @Prop prop_num1034: number = 0; + @Prop prop_num1035: number = 0; + @Prop prop_num1036: number = 0; + @Prop prop_num1037: number = 0; + @Prop prop_num1038: number = 0; + @Prop prop_num1039: number = 0; + @Prop prop_num1040: number = 0; + @Prop prop_num1041: number = 0; + @Prop prop_num1042: number = 0; + @Prop prop_num1043: number = 0; + @Prop prop_num1044: number = 0; + @Prop prop_num1045: number = 0; + @Prop prop_num1046: number = 0; + @Prop prop_num1047: number = 0; + @Prop prop_num1048: number = 0; + @Prop prop_num1049: number = 0; + @Prop prop_num1050: number = 0; + @Prop prop_num1051: number = 0; + @Prop prop_num1052: number = 0; + @Prop prop_num1053: number = 0; + @Prop prop_num1054: number = 0; + @Prop prop_num1055: number = 0; + @Prop prop_num1056: number = 0; + @Prop prop_num1057: number = 0; + @Prop prop_num1058: number = 0; + @Prop prop_num1059: number = 0; + @Prop prop_num1060: number = 0; + @Prop prop_num1061: number = 0; + @Prop prop_num1062: number = 0; + @Prop prop_num1063: number = 0; + @Prop prop_num1064: number = 0; + @Prop prop_num1065: number = 0; + @Prop prop_num1066: number = 0; + @Prop prop_num1067: number = 0; + @Prop prop_num1068: number = 0; + @Prop prop_num1069: number = 0; + @Prop prop_num1070: number = 0; + @Prop prop_num1071: number = 0; + @Prop prop_num1072: number = 0; + @Prop prop_num1073: number = 0; + @Prop prop_num1074: number = 0; + @Prop prop_num1075: number = 0; + @Prop prop_num1076: number = 0; + @Prop prop_num1077: number = 0; + @Prop prop_num1078: number = 0; + @Prop prop_num1079: number = 0; + @Prop prop_num1080: number = 0; + @Prop prop_num1081: number = 0; + @Prop prop_num1082: number = 0; + @Prop prop_num1083: number = 0; + @Prop prop_num1084: number = 0; + @Prop prop_num1085: number = 0; + @Prop prop_num1086: number = 0; + @Prop prop_num1087: number = 0; + @Prop prop_num1088: number = 0; + @Prop prop_num1089: number = 0; + @Prop prop_num1090: number = 0; + @Prop prop_num1091: number = 0; + @Prop prop_num1092: number = 0; + @Prop prop_num1093: number = 0; + @Prop prop_num1094: number = 0; + @Prop prop_num1095: number = 0; + @Prop prop_num1096: number = 0; + @Prop prop_num1097: number = 0; + @Prop prop_num1098: number = 0; + @Prop prop_num1099: number = 0; + @Prop prop_num1100: number = 0; + @Prop prop_num1101: number = 0; + @Prop prop_num1102: number = 0; + @Prop prop_num1103: number = 0; + @Prop prop_num1104: number = 0; + @Prop prop_num1105: number = 0; + @Prop prop_num1106: number = 0; + @Prop prop_num1107: number = 0; + @Prop prop_num1108: number = 0; + @Prop prop_num1109: number = 0; + @Prop prop_num1110: number = 0; + @Prop prop_num1111: number = 0; + @Prop prop_num1112: number = 0; + @Prop prop_num1113: number = 0; + @Prop prop_num1114: number = 0; + @Prop prop_num1115: number = 0; + @Prop prop_num1116: number = 0; + @Prop prop_num1117: number = 0; + @Prop prop_num1118: number = 0; + @Prop prop_num1119: number = 0; + @Prop prop_num1120: number = 0; + @Prop prop_num1121: number = 0; + @Prop prop_num1122: number = 0; + @Prop prop_num1123: number = 0; + @Prop prop_num1124: number = 0; + @Prop prop_num1125: number = 0; + @Prop prop_num1126: number = 0; + @Prop prop_num1127: number = 0; + @Prop prop_num1128: number = 0; + @Prop prop_num1129: number = 0; + @Prop prop_num1130: number = 0; + @Prop prop_num1131: number = 0; + @Prop prop_num1132: number = 0; + @Prop prop_num1133: number = 0; + @Prop prop_num1134: number = 0; + @Prop prop_num1135: number = 0; + @Prop prop_num1136: number = 0; + @Prop prop_num1137: number = 0; + @Prop prop_num1138: number = 0; + @Prop prop_num1139: number = 0; + @Prop prop_num1140: number = 0; + @Prop prop_num1141: number = 0; + @Prop prop_num1142: number = 0; + @Prop prop_num1143: number = 0; + @Prop prop_num1144: number = 0; + @Prop prop_num1145: number = 0; + @Prop prop_num1146: number = 0; + @Prop prop_num1147: number = 0; + @Prop prop_num1148: number = 0; + @Prop prop_num1149: number = 0; + @Prop prop_num1150: number = 0; + @Prop prop_num1151: number = 0; + @Prop prop_num1152: number = 0; + @Prop prop_num1153: number = 0; + @Prop prop_num1154: number = 0; + @Prop prop_num1155: number = 0; + @Prop prop_num1156: number = 0; + @Prop prop_num1157: number = 0; + @Prop prop_num1158: number = 0; + @Prop prop_num1159: number = 0; + @Prop prop_num1160: number = 0; + @Prop prop_num1161: number = 0; + @Prop prop_num1162: number = 0; + @Prop prop_num1163: number = 0; + @Prop prop_num1164: number = 0; + @Prop prop_num1165: number = 0; + @Prop prop_num1166: number = 0; + @Prop prop_num1167: number = 0; + @Prop prop_num1168: number = 0; + @Prop prop_num1169: number = 0; + @Prop prop_num1170: number = 0; + @Prop prop_num1171: number = 0; + @Prop prop_num1172: number = 0; + @Prop prop_num1173: number = 0; + @Prop prop_num1174: number = 0; + @Prop prop_num1175: number = 0; + @Prop prop_num1176: number = 0; + @Prop prop_num1177: number = 0; + @Prop prop_num1178: number = 0; + @Prop prop_num1179: number = 0; + @Prop prop_num1180: number = 0; + @Prop prop_num1181: number = 0; + @Prop prop_num1182: number = 0; + @Prop prop_num1183: number = 0; + @Prop prop_num1184: number = 0; + @Prop prop_num1185: number = 0; + @Prop prop_num1186: number = 0; + @Prop prop_num1187: number = 0; + @Prop prop_num1188: number = 0; + @Prop prop_num1189: number = 0; + @Prop prop_num1190: number = 0; + @Prop prop_num1191: number = 0; + @Prop prop_num1192: number = 0; + @Prop prop_num1193: number = 0; + @Prop prop_num1194: number = 0; + @Prop prop_num1195: number = 0; + @Prop prop_num1196: number = 0; + @Prop prop_num1197: number = 0; + @Prop prop_num1198: number = 0; + @Prop prop_num1199: number = 0; + @Prop prop_num1200: number = 0; + @Prop prop_num1201: number = 0; + @Prop prop_num1202: number = 0; + @Prop prop_num1203: number = 0; + @Prop prop_num1204: number = 0; + @Prop prop_num1205: number = 0; + @Prop prop_num1206: number = 0; + @Prop prop_num1207: number = 0; + @Prop prop_num1208: number = 0; + @Prop prop_num1209: number = 0; + @Prop prop_num1210: number = 0; + @Prop prop_num1211: number = 0; + @Prop prop_num1212: number = 0; + @Prop prop_num1213: number = 0; + @Prop prop_num1214: number = 0; + @Prop prop_num1215: number = 0; + @Prop prop_num1216: number = 0; + @Prop prop_num1217: number = 0; + @Prop prop_num1218: number = 0; + @Prop prop_num1219: number = 0; + @Prop prop_num1220: number = 0; + @Prop prop_num1221: number = 0; + @Prop prop_num1222: number = 0; + @Prop prop_num1223: number = 0; + @Prop prop_num1224: number = 0; + @Prop prop_num1225: number = 0; + @Prop prop_num1226: number = 0; + @Prop prop_num1227: number = 0; + @Prop prop_num1228: number = 0; + @Prop prop_num1229: number = 0; + @Prop prop_num1230: number = 0; + @Prop prop_num1231: number = 0; + @Prop prop_num1232: number = 0; + @Prop prop_num1233: number = 0; + @Prop prop_num1234: number = 0; + @Prop prop_num1235: number = 0; + @Prop prop_num1236: number = 0; + @Prop prop_num1237: number = 0; + @Prop prop_num1238: number = 0; + @Prop prop_num1239: number = 0; + @Prop prop_num1240: number = 0; + @Prop prop_num1241: number = 0; + @Prop prop_num1242: number = 0; + @Prop prop_num1243: number = 0; + @Prop prop_num1244: number = 0; + @Prop prop_num1245: number = 0; + @Prop prop_num1246: number = 0; + @Prop prop_num1247: number = 0; + @Prop prop_num1248: number = 0; + @Prop prop_num1249: number = 0; + @Prop prop_num1250: number = 0; + @Prop prop_num1251: number = 0; + @Prop prop_num1252: number = 0; + @Prop prop_num1253: number = 0; + @Prop prop_num1254: number = 0; + @Prop prop_num1255: number = 0; + @Prop prop_num1256: number = 0; + @Prop prop_num1257: number = 0; + @Prop prop_num1258: number = 0; + @Prop prop_num1259: number = 0; + @Prop prop_num1260: number = 0; + @Prop prop_num1261: number = 0; + @Prop prop_num1262: number = 0; + @Prop prop_num1263: number = 0; + @Prop prop_num1264: number = 0; + @Prop prop_num1265: number = 0; + @Prop prop_num1266: number = 0; + @Prop prop_num1267: number = 0; + @Prop prop_num1268: number = 0; + @Prop prop_num1269: number = 0; + @Prop prop_num1270: number = 0; + @Prop prop_num1271: number = 0; + @Prop prop_num1272: number = 0; + @Prop prop_num1273: number = 0; + @Prop prop_num1274: number = 0; + @Prop prop_num1275: number = 0; + @Prop prop_num1276: number = 0; + @Prop prop_num1277: number = 0; + @Prop prop_num1278: number = 0; + @Prop prop_num1279: number = 0; + @Prop prop_num1280: number = 0; + @Prop prop_num1281: number = 0; + @Prop prop_num1282: number = 0; + @Prop prop_num1283: number = 0; + @Prop prop_num1284: number = 0; + @Prop prop_num1285: number = 0; + @Prop prop_num1286: number = 0; + @Prop prop_num1287: number = 0; + @Prop prop_num1288: number = 0; + @Prop prop_num1289: number = 0; + @Prop prop_num1290: number = 0; + @Prop prop_num1291: number = 0; + @Prop prop_num1292: number = 0; + @Prop prop_num1293: number = 0; + @Prop prop_num1294: number = 0; + @Prop prop_num1295: number = 0; + @Prop prop_num1296: number = 0; + @Prop prop_num1297: number = 0; + @Prop prop_num1298: number = 0; + @Prop prop_num1299: number = 0; + @Prop prop_num1300: number = 0; + @Prop prop_num1301: number = 0; + @Prop prop_num1302: number = 0; + @Prop prop_num1303: number = 0; + @Prop prop_num1304: number = 0; + @Prop prop_num1305: number = 0; + @Prop prop_num1306: number = 0; + @Prop prop_num1307: number = 0; + @Prop prop_num1308: number = 0; + @Prop prop_num1309: number = 0; + @Prop prop_num1310: number = 0; + @Prop prop_num1311: number = 0; + @Prop prop_num1312: number = 0; + @Prop prop_num1313: number = 0; + @Prop prop_num1314: number = 0; + @Prop prop_num1315: number = 0; + @Prop prop_num1316: number = 0; + @Prop prop_num1317: number = 0; + @Prop prop_num1318: number = 0; + @Prop prop_num1319: number = 0; + @Prop prop_num1320: number = 0; + @Prop prop_num1321: number = 0; + @Prop prop_num1322: number = 0; + @Prop prop_num1323: number = 0; + @Prop prop_num1324: number = 0; + @Prop prop_num1325: number = 0; + @Prop prop_num1326: number = 0; + @Prop prop_num1327: number = 0; + @Prop prop_num1328: number = 0; + @Prop prop_num1329: number = 0; + @Prop prop_num1330: number = 0; + @Prop prop_num1331: number = 0; + @Prop prop_num1332: number = 0; + @Prop prop_num1333: number = 0; + @Prop prop_num1334: number = 0; + @Prop prop_num1335: number = 0; + @Prop prop_num1336: number = 0; + @Prop prop_num1337: number = 0; + @Prop prop_num1338: number = 0; + @Prop prop_num1339: number = 0; + @Prop prop_num1340: number = 0; + @Prop prop_num1341: number = 0; + @Prop prop_num1342: number = 0; + @Prop prop_num1343: number = 0; + @Prop prop_num1344: number = 0; + @Prop prop_num1345: number = 0; + @Prop prop_num1346: number = 0; + @Prop prop_num1347: number = 0; + @Prop prop_num1348: number = 0; + @Prop prop_num1349: number = 0; + @Prop prop_num1350: number = 0; + @Prop prop_num1351: number = 0; + @Prop prop_num1352: number = 0; + @Prop prop_num1353: number = 0; + @Prop prop_num1354: number = 0; + @Prop prop_num1355: number = 0; + @Prop prop_num1356: number = 0; + @Prop prop_num1357: number = 0; + @Prop prop_num1358: number = 0; + @Prop prop_num1359: number = 0; + @Prop prop_num1360: number = 0; + @Prop prop_num1361: number = 0; + @Prop prop_num1362: number = 0; + @Prop prop_num1363: number = 0; + @Prop prop_num1364: number = 0; + @Prop prop_num1365: number = 0; + @Prop prop_num1366: number = 0; + @Prop prop_num1367: number = 0; + @Prop prop_num1368: number = 0; + @Prop prop_num1369: number = 0; + @Prop prop_num1370: number = 0; + @Prop prop_num1371: number = 0; + @Prop prop_num1372: number = 0; + @Prop prop_num1373: number = 0; + @Prop prop_num1374: number = 0; + @Prop prop_num1375: number = 0; + @Prop prop_num1376: number = 0; + @Prop prop_num1377: number = 0; + @Prop prop_num1378: number = 0; + @Prop prop_num1379: number = 0; + @Prop prop_num1380: number = 0; + @Prop prop_num1381: number = 0; + @Prop prop_num1382: number = 0; + @Prop prop_num1383: number = 0; + @Prop prop_num1384: number = 0; + @Prop prop_num1385: number = 0; + @Prop prop_num1386: number = 0; + @Prop prop_num1387: number = 0; + @Prop prop_num1388: number = 0; + @Prop prop_num1389: number = 0; + @Prop prop_num1390: number = 0; + @Prop prop_num1391: number = 0; + @Prop prop_num1392: number = 0; + @Prop prop_num1393: number = 0; + @Prop prop_num1394: number = 0; + @Prop prop_num1395: number = 0; + @Prop prop_num1396: number = 0; + @Prop prop_num1397: number = 0; + @Prop prop_num1398: number = 0; + @Prop prop_num1399: number = 0; + @Prop prop_num1400: number = 0; + @Prop prop_num1401: number = 0; + @Prop prop_num1402: number = 0; + @Prop prop_num1403: number = 0; + @Prop prop_num1404: number = 0; + @Prop prop_num1405: number = 0; + @Prop prop_num1406: number = 0; + @Prop prop_num1407: number = 0; + @Prop prop_num1408: number = 0; + @Prop prop_num1409: number = 0; + @Prop prop_num1410: number = 0; + @Prop prop_num1411: number = 0; + @Prop prop_num1412: number = 0; + @Prop prop_num1413: number = 0; + @Prop prop_num1414: number = 0; + @Prop prop_num1415: number = 0; + @Prop prop_num1416: number = 0; + @Prop prop_num1417: number = 0; + @Prop prop_num1418: number = 0; + @Prop prop_num1419: number = 0; + @Prop prop_num1420: number = 0; + @Prop prop_num1421: number = 0; + @Prop prop_num1422: number = 0; + @Prop prop_num1423: number = 0; + @Prop prop_num1424: number = 0; + @Prop prop_num1425: number = 0; + @Prop prop_num1426: number = 0; + @Prop prop_num1427: number = 0; + @Prop prop_num1428: number = 0; + @Prop prop_num1429: number = 0; + @Prop prop_num1430: number = 0; + @Prop prop_num1431: number = 0; + @Prop prop_num1432: number = 0; + @Prop prop_num1433: number = 0; + @Prop prop_num1434: number = 0; + @Prop prop_num1435: number = 0; + @Prop prop_num1436: number = 0; + @Prop prop_num1437: number = 0; + @Prop prop_num1438: number = 0; + @Prop prop_num1439: number = 0; + @Prop prop_num1440: number = 0; + @Prop prop_num1441: number = 0; + @Prop prop_num1442: number = 0; + @Prop prop_num1443: number = 0; + @Prop prop_num1444: number = 0; + @Prop prop_num1445: number = 0; + @Prop prop_num1446: number = 0; + @Prop prop_num1447: number = 0; + @Prop prop_num1448: number = 0; + @Prop prop_num1449: number = 0; + @Prop prop_num1450: number = 0; + @Prop prop_num1451: number = 0; + @Prop prop_num1452: number = 0; + @Prop prop_num1453: number = 0; + @Prop prop_num1454: number = 0; + @Prop prop_num1455: number = 0; + @Prop prop_num1456: number = 0; + @Prop prop_num1457: number = 0; + @Prop prop_num1458: number = 0; + @Prop prop_num1459: number = 0; + @Prop prop_num1460: number = 0; + @Prop prop_num1461: number = 0; + @Prop prop_num1462: number = 0; + @Prop prop_num1463: number = 0; + @Prop prop_num1464: number = 0; + @Prop prop_num1465: number = 0; + @Prop prop_num1466: number = 0; + @Prop prop_num1467: number = 0; + @Prop prop_num1468: number = 0; + @Prop prop_num1469: number = 0; + @Prop prop_num1470: number = 0; + @Prop prop_num1471: number = 0; + @Prop prop_num1472: number = 0; + @Prop prop_num1473: number = 0; + @Prop prop_num1474: number = 0; + @Prop prop_num1475: number = 0; + @Prop prop_num1476: number = 0; + @Prop prop_num1477: number = 0; + @Prop prop_num1478: number = 0; + @Prop prop_num1479: number = 0; + @Prop prop_num1480: number = 0; + @Prop prop_num1481: number = 0; + @Prop prop_num1482: number = 0; + @Prop prop_num1483: number = 0; + @Prop prop_num1484: number = 0; + @Prop prop_num1485: number = 0; + @Prop prop_num1486: number = 0; + @Prop prop_num1487: number = 0; + @Prop prop_num1488: number = 0; + @Prop prop_num1489: number = 0; + @Prop prop_num1490: number = 0; + @Prop prop_num1491: number = 0; + @Prop prop_num1492: number = 0; + @Prop prop_num1493: number = 0; + @Prop prop_num1494: number = 0; + @Prop prop_num1495: number = 0; + @Prop prop_num1496: number = 0; + @Prop prop_num1497: number = 0; + @Prop prop_num1498: number = 0; + @Prop prop_num1499: number = 0; + @Prop prop_num1500: number = 0; + @Prop prop_num1501: number = 0; + @Prop prop_num1502: number = 0; + @Prop prop_num1503: number = 0; + @Prop prop_num1504: number = 0; + @Prop prop_num1505: number = 0; + @Prop prop_num1506: number = 0; + @Prop prop_num1507: number = 0; + @Prop prop_num1508: number = 0; + @Prop prop_num1509: number = 0; + @Prop prop_num1510: number = 0; + @Prop prop_num1511: number = 0; + @Prop prop_num1512: number = 0; + @Prop prop_num1513: number = 0; + @Prop prop_num1514: number = 0; + @Prop prop_num1515: number = 0; + @Prop prop_num1516: number = 0; + @Prop prop_num1517: number = 0; + @Prop prop_num1518: number = 0; + @Prop prop_num1519: number = 0; + @Prop prop_num1520: number = 0; + @Prop prop_num1521: number = 0; + @Prop prop_num1522: number = 0; + @Prop prop_num1523: number = 0; + @Prop prop_num1524: number = 0; + @Prop prop_num1525: number = 0; + @Prop prop_num1526: number = 0; + @Prop prop_num1527: number = 0; + @Prop prop_num1528: number = 0; + @Prop prop_num1529: number = 0; + @Prop prop_num1530: number = 0; + @Prop prop_num1531: number = 0; + @Prop prop_num1532: number = 0; + @Prop prop_num1533: number = 0; + @Prop prop_num1534: number = 0; + @Prop prop_num1535: number = 0; + @Prop prop_num1536: number = 0; + @Prop prop_num1537: number = 0; + @Prop prop_num1538: number = 0; + @Prop prop_num1539: number = 0; + @Prop prop_num1540: number = 0; + @Prop prop_num1541: number = 0; + @Prop prop_num1542: number = 0; + @Prop prop_num1543: number = 0; + @Prop prop_num1544: number = 0; + @Prop prop_num1545: number = 0; + @Prop prop_num1546: number = 0; + @Prop prop_num1547: number = 0; + @Prop prop_num1548: number = 0; + @Prop prop_num1549: number = 0; + @Prop prop_num1550: number = 0; + @Prop prop_num1551: number = 0; + @Prop prop_num1552: number = 0; + @Prop prop_num1553: number = 0; + @Prop prop_num1554: number = 0; + @Prop prop_num1555: number = 0; + @Prop prop_num1556: number = 0; + @Prop prop_num1557: number = 0; + @Prop prop_num1558: number = 0; + @Prop prop_num1559: number = 0; + @Prop prop_num1560: number = 0; + @Prop prop_num1561: number = 0; + @Prop prop_num1562: number = 0; + @Prop prop_num1563: number = 0; + @Prop prop_num1564: number = 0; + @Prop prop_num1565: number = 0; + @Prop prop_num1566: number = 0; + @Prop prop_num1567: number = 0; + @Prop prop_num1568: number = 0; + @Prop prop_num1569: number = 0; + @Prop prop_num1570: number = 0; + @Prop prop_num1571: number = 0; + @Prop prop_num1572: number = 0; + @Prop prop_num1573: number = 0; + @Prop prop_num1574: number = 0; + @Prop prop_num1575: number = 0; + @Prop prop_num1576: number = 0; + @Prop prop_num1577: number = 0; + @Prop prop_num1578: number = 0; + @Prop prop_num1579: number = 0; + @Prop prop_num1580: number = 0; + @Prop prop_num1581: number = 0; + @Prop prop_num1582: number = 0; + @Prop prop_num1583: number = 0; + @Prop prop_num1584: number = 0; + @Prop prop_num1585: number = 0; + @Prop prop_num1586: number = 0; + @Prop prop_num1587: number = 0; + @Prop prop_num1588: number = 0; + @Prop prop_num1589: number = 0; + @Prop prop_num1590: number = 0; + @Prop prop_num1591: number = 0; + @Prop prop_num1592: number = 0; + @Prop prop_num1593: number = 0; + @Prop prop_num1594: number = 0; + @Prop prop_num1595: number = 0; + @Prop prop_num1596: number = 0; + @Prop prop_num1597: number = 0; + @Prop prop_num1598: number = 0; + @Prop prop_num1599: number = 0; + @Prop prop_num1600: number = 0; + @Prop prop_num1601: number = 0; + @Prop prop_num1602: number = 0; + @Prop prop_num1603: number = 0; + @Prop prop_num1604: number = 0; + @Prop prop_num1605: number = 0; + @Prop prop_num1606: number = 0; + @Prop prop_num1607: number = 0; + @Prop prop_num1608: number = 0; + @Prop prop_num1609: number = 0; + @Prop prop_num1610: number = 0; + @Prop prop_num1611: number = 0; + @Prop prop_num1612: number = 0; + @Prop prop_num1613: number = 0; + @Prop prop_num1614: number = 0; + @Prop prop_num1615: number = 0; + @Prop prop_num1616: number = 0; + @Prop prop_num1617: number = 0; + @Prop prop_num1618: number = 0; + @Prop prop_num1619: number = 0; + @Prop prop_num1620: number = 0; + @Prop prop_num1621: number = 0; + @Prop prop_num1622: number = 0; + @Prop prop_num1623: number = 0; + @Prop prop_num1624: number = 0; + @Prop prop_num1625: number = 0; + @Prop prop_num1626: number = 0; + @Prop prop_num1627: number = 0; + @Prop prop_num1628: number = 0; + @Prop prop_num1629: number = 0; + @Prop prop_num1630: number = 0; + @Prop prop_num1631: number = 0; + @Prop prop_num1632: number = 0; + @Prop prop_num1633: number = 0; + @Prop prop_num1634: number = 0; + @Prop prop_num1635: number = 0; + @Prop prop_num1636: number = 0; + @Prop prop_num1637: number = 0; + @Prop prop_num1638: number = 0; + @Prop prop_num1639: number = 0; + @Prop prop_num1640: number = 0; + @Prop prop_num1641: number = 0; + @Prop prop_num1642: number = 0; + @Prop prop_num1643: number = 0; + @Prop prop_num1644: number = 0; + @Prop prop_num1645: number = 0; + @Prop prop_num1646: number = 0; + @Prop prop_num1647: number = 0; + @Prop prop_num1648: number = 0; + @Prop prop_num1649: number = 0; + @Prop prop_num1650: number = 0; + @Prop prop_num1651: number = 0; + @Prop prop_num1652: number = 0; + @Prop prop_num1653: number = 0; + @Prop prop_num1654: number = 0; + @Prop prop_num1655: number = 0; + @Prop prop_num1656: number = 0; + @Prop prop_num1657: number = 0; + @Prop prop_num1658: number = 0; + @Prop prop_num1659: number = 0; + @Prop prop_num1660: number = 0; + @Prop prop_num1661: number = 0; + @Prop prop_num1662: number = 0; + @Prop prop_num1663: number = 0; + @Prop prop_num1664: number = 0; + @Prop prop_num1665: number = 0; + @Prop prop_num1666: number = 0; + @Prop prop_num1667: number = 0; + @Prop prop_num1668: number = 0; + @Prop prop_num1669: number = 0; + @Prop prop_num1670: number = 0; + @Prop prop_num1671: number = 0; + @Prop prop_num1672: number = 0; + @Prop prop_num1673: number = 0; + @Prop prop_num1674: number = 0; + @Prop prop_num1675: number = 0; + @Prop prop_num1676: number = 0; + @Prop prop_num1677: number = 0; + @Prop prop_num1678: number = 0; + @Prop prop_num1679: number = 0; + @Prop prop_num1680: number = 0; + @Prop prop_num1681: number = 0; + @Prop prop_num1682: number = 0; + @Prop prop_num1683: number = 0; + @Prop prop_num1684: number = 0; + @Prop prop_num1685: number = 0; + @Prop prop_num1686: number = 0; + @Prop prop_num1687: number = 0; + @Prop prop_num1688: number = 0; + @Prop prop_num1689: number = 0; + @Prop prop_num1690: number = 0; + @Prop prop_num1691: number = 0; + @Prop prop_num1692: number = 0; + @Prop prop_num1693: number = 0; + @Prop prop_num1694: number = 0; + @Prop prop_num1695: number = 0; + @Prop prop_num1696: number = 0; + @Prop prop_num1697: number = 0; + @Prop prop_num1698: number = 0; + @Prop prop_num1699: number = 0; + @Prop prop_num1700: number = 0; + @Prop prop_num1701: number = 0; + @Prop prop_num1702: number = 0; + @Prop prop_num1703: number = 0; + @Prop prop_num1704: number = 0; + @Prop prop_num1705: number = 0; + @Prop prop_num1706: number = 0; + @Prop prop_num1707: number = 0; + @Prop prop_num1708: number = 0; + @Prop prop_num1709: number = 0; + @Prop prop_num1710: number = 0; + @Prop prop_num1711: number = 0; + @Prop prop_num1712: number = 0; + @Prop prop_num1713: number = 0; + @Prop prop_num1714: number = 0; + @Prop prop_num1715: number = 0; + @Prop prop_num1716: number = 0; + @Prop prop_num1717: number = 0; + @Prop prop_num1718: number = 0; + @Prop prop_num1719: number = 0; + @Prop prop_num1720: number = 0; + @Prop prop_num1721: number = 0; + @Prop prop_num1722: number = 0; + @Prop prop_num1723: number = 0; + @Prop prop_num1724: number = 0; + @Prop prop_num1725: number = 0; + @Prop prop_num1726: number = 0; + @Prop prop_num1727: number = 0; + @Prop prop_num1728: number = 0; + @Prop prop_num1729: number = 0; + @Prop prop_num1730: number = 0; + @Prop prop_num1731: number = 0; + @Prop prop_num1732: number = 0; + @Prop prop_num1733: number = 0; + @Prop prop_num1734: number = 0; + @Prop prop_num1735: number = 0; + @Prop prop_num1736: number = 0; + @Prop prop_num1737: number = 0; + @Prop prop_num1738: number = 0; + @Prop prop_num1739: number = 0; + @Prop prop_num1740: number = 0; + @Prop prop_num1741: number = 0; + @Prop prop_num1742: number = 0; + @Prop prop_num1743: number = 0; + @Prop prop_num1744: number = 0; + @Prop prop_num1745: number = 0; + @Prop prop_num1746: number = 0; + @Prop prop_num1747: number = 0; + @Prop prop_num1748: number = 0; + @Prop prop_num1749: number = 0; + @Prop prop_num1750: number = 0; + @Prop prop_num1751: number = 0; + @Prop prop_num1752: number = 0; + @Prop prop_num1753: number = 0; + @Prop prop_num1754: number = 0; + @Prop prop_num1755: number = 0; + @Prop prop_num1756: number = 0; + @Prop prop_num1757: number = 0; + @Prop prop_num1758: number = 0; + @Prop prop_num1759: number = 0; + @Prop prop_num1760: number = 0; + @Prop prop_num1761: number = 0; + @Prop prop_num1762: number = 0; + @Prop prop_num1763: number = 0; + @Prop prop_num1764: number = 0; + @Prop prop_num1765: number = 0; + @Prop prop_num1766: number = 0; + @Prop prop_num1767: number = 0; + @Prop prop_num1768: number = 0; + @Prop prop_num1769: number = 0; + @Prop prop_num1770: number = 0; + @Prop prop_num1771: number = 0; + @Prop prop_num1772: number = 0; + @Prop prop_num1773: number = 0; + @Prop prop_num1774: number = 0; + @Prop prop_num1775: number = 0; + @Prop prop_num1776: number = 0; + @Prop prop_num1777: number = 0; + @Prop prop_num1778: number = 0; + @Prop prop_num1779: number = 0; + @Prop prop_num1780: number = 0; + @Prop prop_num1781: number = 0; + @Prop prop_num1782: number = 0; + @Prop prop_num1783: number = 0; + @Prop prop_num1784: number = 0; + @Prop prop_num1785: number = 0; + @Prop prop_num1786: number = 0; + @Prop prop_num1787: number = 0; + @Prop prop_num1788: number = 0; + @Prop prop_num1789: number = 0; + @Prop prop_num1790: number = 0; + @Prop prop_num1791: number = 0; + @Prop prop_num1792: number = 0; + @Prop prop_num1793: number = 0; + @Prop prop_num1794: number = 0; + @Prop prop_num1795: number = 0; + @Prop prop_num1796: number = 0; + @Prop prop_num1797: number = 0; + @Prop prop_num1798: number = 0; + @Prop prop_num1799: number = 0; + @Prop prop_num1800: number = 0; + @Prop prop_num1801: number = 0; + @Prop prop_num1802: number = 0; + @Prop prop_num1803: number = 0; + @Prop prop_num1804: number = 0; + @Prop prop_num1805: number = 0; + @Prop prop_num1806: number = 0; + @Prop prop_num1807: number = 0; + @Prop prop_num1808: number = 0; + @Prop prop_num1809: number = 0; + @Prop prop_num1810: number = 0; + @Prop prop_num1811: number = 0; + @Prop prop_num1812: number = 0; + @Prop prop_num1813: number = 0; + @Prop prop_num1814: number = 0; + @Prop prop_num1815: number = 0; + @Prop prop_num1816: number = 0; + @Prop prop_num1817: number = 0; + + + build() { + Column() { + Button('Click Me') + .onClick((e: ClickEvent) => { + this.prop_num0++; + this.prop_num1++; + this.prop_num2++; + this.prop_num3++; + this.prop_num4++; + this.prop_num5++; + this.prop_num6++; + this.prop_num7++; + this.prop_num8++; + this.prop_num9++; + this.prop_num10++; + this.prop_num11++; + this.prop_num12++; + this.prop_num13++; + this.prop_num14++; + this.prop_num15++; + this.prop_num16++; + this.prop_num17++; + this.prop_num18++; + this.prop_num19++; + this.prop_num20++; + this.prop_num21++; + this.prop_num22++; + this.prop_num23++; + this.prop_num24++; + this.prop_num25++; + this.prop_num26++; + this.prop_num27++; + this.prop_num28++; + this.prop_num29++; + this.prop_num30++; + this.prop_num31++; + this.prop_num32++; + this.prop_num33++; + this.prop_num34++; + this.prop_num35++; + this.prop_num36++; + this.prop_num37++; + this.prop_num38++; + this.prop_num39++; + this.prop_num40++; + this.prop_num41++; + this.prop_num42++; + this.prop_num43++; + this.prop_num44++; + this.prop_num45++; + this.prop_num46++; + this.prop_num47++; + this.prop_num48++; + this.prop_num49++; + this.prop_num50++; + this.prop_num51++; + this.prop_num52++; + this.prop_num53++; + this.prop_num54++; + this.prop_num55++; + this.prop_num56++; + this.prop_num57++; + this.prop_num58++; + this.prop_num59++; + this.prop_num60++; + this.prop_num61++; + this.prop_num62++; + this.prop_num63++; + this.prop_num64++; + this.prop_num65++; + this.prop_num66++; + this.prop_num67++; + this.prop_num68++; + this.prop_num69++; + this.prop_num70++; + this.prop_num71++; + this.prop_num72++; + this.prop_num73++; + this.prop_num74++; + this.prop_num75++; + this.prop_num76++; + this.prop_num77++; + this.prop_num78++; + this.prop_num79++; + this.prop_num80++; + this.prop_num81++; + this.prop_num82++; + this.prop_num83++; + this.prop_num84++; + this.prop_num85++; + this.prop_num86++; + this.prop_num87++; + this.prop_num88++; + this.prop_num89++; + this.prop_num90++; + this.prop_num91++; + this.prop_num92++; + this.prop_num93++; + this.prop_num94++; + this.prop_num95++; + this.prop_num96++; + this.prop_num97++; + this.prop_num98++; + this.prop_num99++; + this.prop_num100++; + this.prop_num101++; + this.prop_num102++; + this.prop_num103++; + this.prop_num104++; + this.prop_num105++; + this.prop_num106++; + this.prop_num107++; + this.prop_num108++; + this.prop_num109++; + this.prop_num110++; + this.prop_num111++; + this.prop_num112++; + this.prop_num113++; + this.prop_num114++; + this.prop_num115++; + this.prop_num116++; + this.prop_num117++; + this.prop_num118++; + this.prop_num119++; + this.prop_num120++; + this.prop_num121++; + this.prop_num122++; + this.prop_num123++; + this.prop_num124++; + this.prop_num125++; + this.prop_num126++; + this.prop_num127++; + this.prop_num128++; + this.prop_num129++; + this.prop_num130++; + this.prop_num131++; + this.prop_num132++; + this.prop_num133++; + this.prop_num134++; + this.prop_num135++; + this.prop_num136++; + this.prop_num137++; + this.prop_num138++; + this.prop_num139++; + this.prop_num140++; + this.prop_num141++; + this.prop_num142++; + this.prop_num143++; + this.prop_num144++; + this.prop_num145++; + this.prop_num146++; + this.prop_num147++; + this.prop_num148++; + this.prop_num149++; + this.prop_num150++; + this.prop_num151++; + this.prop_num152++; + this.prop_num153++; + this.prop_num154++; + this.prop_num155++; + this.prop_num156++; + this.prop_num157++; + this.prop_num158++; + this.prop_num159++; + this.prop_num160++; + this.prop_num161++; + this.prop_num162++; + this.prop_num163++; + this.prop_num164++; + this.prop_num165++; + this.prop_num166++; + this.prop_num167++; + this.prop_num168++; + this.prop_num169++; + this.prop_num170++; + this.prop_num171++; + this.prop_num172++; + this.prop_num173++; + this.prop_num174++; + this.prop_num175++; + this.prop_num176++; + this.prop_num177++; + this.prop_num178++; + this.prop_num179++; + this.prop_num180++; + this.prop_num181++; + this.prop_num182++; + this.prop_num183++; + this.prop_num184++; + this.prop_num185++; + this.prop_num186++; + this.prop_num187++; + this.prop_num188++; + this.prop_num189++; + this.prop_num190++; + this.prop_num191++; + this.prop_num192++; + this.prop_num193++; + this.prop_num194++; + this.prop_num195++; + this.prop_num196++; + this.prop_num197++; + this.prop_num198++; + this.prop_num199++; + this.prop_num200++; + this.prop_num201++; + this.prop_num202++; + this.prop_num203++; + this.prop_num204++; + this.prop_num205++; + this.prop_num206++; + this.prop_num207++; + this.prop_num208++; + this.prop_num209++; + this.prop_num210++; + this.prop_num211++; + this.prop_num212++; + this.prop_num213++; + this.prop_num214++; + this.prop_num215++; + this.prop_num216++; + this.prop_num217++; + this.prop_num218++; + this.prop_num219++; + this.prop_num220++; + this.prop_num221++; + this.prop_num222++; + this.prop_num223++; + this.prop_num224++; + this.prop_num225++; + this.prop_num226++; + this.prop_num227++; + this.prop_num228++; + this.prop_num229++; + this.prop_num230++; + this.prop_num231++; + this.prop_num232++; + this.prop_num233++; + this.prop_num234++; + this.prop_num235++; + this.prop_num236++; + this.prop_num237++; + this.prop_num238++; + this.prop_num239++; + this.prop_num240++; + this.prop_num241++; + this.prop_num242++; + this.prop_num243++; + this.prop_num244++; + this.prop_num245++; + this.prop_num246++; + this.prop_num247++; + this.prop_num248++; + this.prop_num249++; + this.prop_num250++; + this.prop_num251++; + this.prop_num252++; + this.prop_num253++; + this.prop_num254++; + this.prop_num255++; + this.prop_num256++; + this.prop_num257++; + this.prop_num258++; + this.prop_num259++; + this.prop_num260++; + this.prop_num261++; + this.prop_num262++; + this.prop_num263++; + this.prop_num264++; + this.prop_num265++; + this.prop_num266++; + this.prop_num267++; + this.prop_num268++; + this.prop_num269++; + this.prop_num270++; + this.prop_num271++; + this.prop_num272++; + this.prop_num273++; + this.prop_num274++; + this.prop_num275++; + this.prop_num276++; + this.prop_num277++; + this.prop_num278++; + this.prop_num279++; + this.prop_num280++; + this.prop_num281++; + this.prop_num282++; + this.prop_num283++; + this.prop_num284++; + this.prop_num285++; + this.prop_num286++; + this.prop_num287++; + this.prop_num288++; + this.prop_num289++; + this.prop_num290++; + this.prop_num291++; + this.prop_num292++; + this.prop_num293++; + this.prop_num294++; + this.prop_num295++; + this.prop_num296++; + this.prop_num297++; + this.prop_num298++; + this.prop_num299++; + this.prop_num300++; + this.prop_num301++; + this.prop_num302++; + this.prop_num303++; + this.prop_num304++; + this.prop_num305++; + this.prop_num306++; + this.prop_num307++; + this.prop_num308++; + this.prop_num309++; + this.prop_num310++; + this.prop_num311++; + this.prop_num312++; + this.prop_num313++; + this.prop_num314++; + this.prop_num315++; + this.prop_num316++; + this.prop_num317++; + this.prop_num318++; + this.prop_num319++; + this.prop_num320++; + this.prop_num321++; + this.prop_num322++; + this.prop_num323++; + this.prop_num324++; + this.prop_num325++; + this.prop_num326++; + this.prop_num327++; + this.prop_num328++; + this.prop_num329++; + this.prop_num330++; + this.prop_num331++; + this.prop_num332++; + this.prop_num333++; + this.prop_num334++; + this.prop_num335++; + this.prop_num336++; + this.prop_num337++; + this.prop_num338++; + this.prop_num339++; + this.prop_num340++; + this.prop_num341++; + this.prop_num342++; + this.prop_num343++; + this.prop_num344++; + this.prop_num345++; + this.prop_num346++; + this.prop_num347++; + this.prop_num348++; + this.prop_num349++; + this.prop_num350++; + this.prop_num351++; + this.prop_num352++; + this.prop_num353++; + this.prop_num354++; + this.prop_num355++; + this.prop_num356++; + this.prop_num357++; + this.prop_num358++; + this.prop_num359++; + this.prop_num360++; + this.prop_num361++; + this.prop_num362++; + this.prop_num363++; + this.prop_num364++; + this.prop_num365++; + this.prop_num366++; + this.prop_num367++; + this.prop_num368++; + this.prop_num369++; + this.prop_num370++; + this.prop_num371++; + this.prop_num372++; + this.prop_num373++; + this.prop_num374++; + this.prop_num375++; + this.prop_num376++; + this.prop_num377++; + this.prop_num378++; + this.prop_num379++; + this.prop_num380++; + this.prop_num381++; + this.prop_num382++; + this.prop_num383++; + this.prop_num384++; + this.prop_num385++; + this.prop_num386++; + this.prop_num387++; + this.prop_num388++; + this.prop_num389++; + this.prop_num390++; + this.prop_num391++; + this.prop_num392++; + this.prop_num393++; + this.prop_num394++; + this.prop_num395++; + this.prop_num396++; + this.prop_num397++; + this.prop_num398++; + this.prop_num399++; + this.prop_num400++; + this.prop_num401++; + this.prop_num402++; + this.prop_num403++; + this.prop_num404++; + this.prop_num405++; + this.prop_num406++; + this.prop_num407++; + this.prop_num408++; + this.prop_num409++; + this.prop_num410++; + this.prop_num411++; + this.prop_num412++; + this.prop_num413++; + this.prop_num414++; + this.prop_num415++; + this.prop_num416++; + this.prop_num417++; + this.prop_num418++; + this.prop_num419++; + this.prop_num420++; + this.prop_num421++; + this.prop_num422++; + this.prop_num423++; + this.prop_num424++; + this.prop_num425++; + this.prop_num426++; + this.prop_num427++; + this.prop_num428++; + this.prop_num429++; + this.prop_num430++; + this.prop_num431++; + this.prop_num432++; + this.prop_num433++; + this.prop_num434++; + this.prop_num435++; + this.prop_num436++; + this.prop_num437++; + this.prop_num438++; + this.prop_num439++; + this.prop_num440++; + this.prop_num441++; + this.prop_num442++; + this.prop_num443++; + this.prop_num444++; + this.prop_num445++; + this.prop_num446++; + this.prop_num447++; + this.prop_num448++; + this.prop_num449++; + this.prop_num450++; + this.prop_num451++; + this.prop_num452++; + this.prop_num453++; + this.prop_num454++; + this.prop_num455++; + this.prop_num456++; + this.prop_num457++; + this.prop_num458++; + this.prop_num459++; + this.prop_num460++; + this.prop_num461++; + this.prop_num462++; + this.prop_num463++; + this.prop_num464++; + this.prop_num465++; + this.prop_num466++; + this.prop_num467++; + this.prop_num468++; + this.prop_num469++; + this.prop_num470++; + this.prop_num471++; + this.prop_num472++; + this.prop_num473++; + this.prop_num474++; + this.prop_num475++; + this.prop_num476++; + this.prop_num477++; + this.prop_num478++; + this.prop_num479++; + this.prop_num480++; + this.prop_num481++; + this.prop_num482++; + this.prop_num483++; + this.prop_num484++; + this.prop_num485++; + this.prop_num486++; + this.prop_num487++; + this.prop_num488++; + this.prop_num489++; + this.prop_num490++; + this.prop_num491++; + this.prop_num492++; + this.prop_num493++; + this.prop_num494++; + this.prop_num495++; + this.prop_num496++; + this.prop_num497++; + this.prop_num498++; + this.prop_num499++; + this.prop_num500++; + this.prop_num501++; + this.prop_num502++; + this.prop_num503++; + this.prop_num504++; + this.prop_num505++; + this.prop_num506++; + this.prop_num507++; + this.prop_num508++; + this.prop_num509++; + this.prop_num510++; + this.prop_num511++; + this.prop_num512++; + this.prop_num513++; + this.prop_num514++; + this.prop_num515++; + this.prop_num516++; + this.prop_num517++; + this.prop_num518++; + this.prop_num519++; + this.prop_num520++; + this.prop_num521++; + this.prop_num522++; + this.prop_num523++; + this.prop_num524++; + this.prop_num525++; + this.prop_num526++; + this.prop_num527++; + this.prop_num528++; + this.prop_num529++; + this.prop_num530++; + this.prop_num531++; + this.prop_num532++; + this.prop_num533++; + this.prop_num534++; + this.prop_num535++; + this.prop_num536++; + this.prop_num537++; + this.prop_num538++; + this.prop_num539++; + this.prop_num540++; + this.prop_num541++; + this.prop_num542++; + this.prop_num543++; + this.prop_num544++; + this.prop_num545++; + this.prop_num546++; + this.prop_num547++; + this.prop_num548++; + this.prop_num549++; + this.prop_num550++; + this.prop_num551++; + this.prop_num552++; + this.prop_num553++; + this.prop_num554++; + this.prop_num555++; + this.prop_num556++; + this.prop_num557++; + this.prop_num558++; + this.prop_num559++; + this.prop_num560++; + this.prop_num561++; + this.prop_num562++; + this.prop_num563++; + this.prop_num564++; + this.prop_num565++; + this.prop_num566++; + this.prop_num567++; + this.prop_num568++; + this.prop_num569++; + this.prop_num570++; + this.prop_num571++; + this.prop_num572++; + this.prop_num573++; + this.prop_num574++; + this.prop_num575++; + this.prop_num576++; + this.prop_num577++; + this.prop_num578++; + this.prop_num579++; + this.prop_num580++; + this.prop_num581++; + this.prop_num582++; + this.prop_num583++; + this.prop_num584++; + this.prop_num585++; + this.prop_num586++; + this.prop_num587++; + this.prop_num588++; + this.prop_num589++; + this.prop_num590++; + this.prop_num591++; + this.prop_num592++; + this.prop_num593++; + this.prop_num594++; + this.prop_num595++; + this.prop_num596++; + this.prop_num597++; + this.prop_num598++; + this.prop_num599++; + this.prop_num600++; + this.prop_num601++; + this.prop_num602++; + this.prop_num603++; + this.prop_num604++; + this.prop_num605++; + this.prop_num606++; + this.prop_num607++; + this.prop_num608++; + this.prop_num609++; + this.prop_num610++; + this.prop_num611++; + this.prop_num612++; + this.prop_num613++; + this.prop_num614++; + this.prop_num615++; + this.prop_num616++; + this.prop_num617++; + this.prop_num618++; + this.prop_num619++; + this.prop_num620++; + this.prop_num621++; + this.prop_num622++; + this.prop_num623++; + this.prop_num624++; + this.prop_num625++; + this.prop_num626++; + this.prop_num627++; + this.prop_num628++; + this.prop_num629++; + this.prop_num630++; + this.prop_num631++; + this.prop_num632++; + this.prop_num633++; + this.prop_num634++; + this.prop_num635++; + this.prop_num636++; + this.prop_num637++; + this.prop_num638++; + this.prop_num639++; + this.prop_num640++; + this.prop_num641++; + this.prop_num642++; + this.prop_num643++; + this.prop_num644++; + this.prop_num645++; + this.prop_num646++; + this.prop_num647++; + this.prop_num648++; + this.prop_num649++; + this.prop_num650++; + this.prop_num651++; + this.prop_num652++; + this.prop_num653++; + this.prop_num654++; + this.prop_num655++; + this.prop_num656++; + this.prop_num657++; + this.prop_num658++; + this.prop_num659++; + this.prop_num660++; + this.prop_num661++; + this.prop_num662++; + this.prop_num663++; + this.prop_num664++; + this.prop_num665++; + this.prop_num666++; + this.prop_num667++; + this.prop_num668++; + this.prop_num669++; + this.prop_num670++; + this.prop_num671++; + this.prop_num672++; + this.prop_num673++; + this.prop_num674++; + this.prop_num675++; + this.prop_num676++; + this.prop_num677++; + this.prop_num678++; + this.prop_num679++; + this.prop_num680++; + this.prop_num681++; + this.prop_num682++; + this.prop_num683++; + this.prop_num684++; + this.prop_num685++; + this.prop_num686++; + this.prop_num687++; + this.prop_num688++; + this.prop_num689++; + this.prop_num690++; + this.prop_num691++; + this.prop_num692++; + this.prop_num693++; + this.prop_num694++; + this.prop_num695++; + this.prop_num696++; + this.prop_num697++; + this.prop_num698++; + this.prop_num699++; + this.prop_num700++; + this.prop_num701++; + this.prop_num702++; + this.prop_num703++; + this.prop_num704++; + this.prop_num705++; + this.prop_num706++; + this.prop_num707++; + this.prop_num708++; + this.prop_num709++; + this.prop_num710++; + this.prop_num711++; + this.prop_num712++; + this.prop_num713++; + this.prop_num714++; + this.prop_num715++; + this.prop_num716++; + this.prop_num717++; + this.prop_num718++; + this.prop_num719++; + this.prop_num720++; + this.prop_num721++; + this.prop_num722++; + this.prop_num723++; + this.prop_num724++; + this.prop_num725++; + this.prop_num726++; + this.prop_num727++; + this.prop_num728++; + this.prop_num729++; + this.prop_num730++; + this.prop_num731++; + this.prop_num732++; + this.prop_num733++; + this.prop_num734++; + this.prop_num735++; + this.prop_num736++; + this.prop_num737++; + this.prop_num738++; + this.prop_num739++; + this.prop_num740++; + this.prop_num741++; + this.prop_num742++; + this.prop_num743++; + this.prop_num744++; + this.prop_num745++; + this.prop_num746++; + this.prop_num747++; + this.prop_num748++; + this.prop_num749++; + this.prop_num750++; + this.prop_num751++; + this.prop_num752++; + this.prop_num753++; + this.prop_num754++; + this.prop_num755++; + this.prop_num756++; + this.prop_num757++; + this.prop_num758++; + this.prop_num759++; + this.prop_num760++; + this.prop_num761++; + this.prop_num762++; + this.prop_num763++; + this.prop_num764++; + this.prop_num765++; + this.prop_num766++; + this.prop_num767++; + this.prop_num768++; + this.prop_num769++; + this.prop_num770++; + this.prop_num771++; + this.prop_num772++; + this.prop_num773++; + this.prop_num774++; + this.prop_num775++; + this.prop_num776++; + this.prop_num777++; + this.prop_num778++; + this.prop_num779++; + this.prop_num780++; + this.prop_num781++; + this.prop_num782++; + this.prop_num783++; + this.prop_num784++; + this.prop_num785++; + this.prop_num786++; + this.prop_num787++; + this.prop_num788++; + this.prop_num789++; + this.prop_num790++; + this.prop_num791++; + this.prop_num792++; + this.prop_num793++; + this.prop_num794++; + this.prop_num795++; + this.prop_num796++; + this.prop_num797++; + this.prop_num798++; + this.prop_num799++; + this.prop_num800++; + this.prop_num801++; + this.prop_num802++; + this.prop_num803++; + this.prop_num804++; + this.prop_num805++; + this.prop_num806++; + this.prop_num807++; + this.prop_num808++; + this.prop_num809++; + this.prop_num810++; + this.prop_num811++; + this.prop_num812++; + this.prop_num813++; + this.prop_num814++; + this.prop_num815++; + this.prop_num816++; + this.prop_num817++; + this.prop_num818++; + this.prop_num819++; + this.prop_num820++; + this.prop_num821++; + this.prop_num822++; + this.prop_num823++; + this.prop_num824++; + this.prop_num825++; + this.prop_num826++; + this.prop_num827++; + this.prop_num828++; + this.prop_num829++; + this.prop_num830++; + this.prop_num831++; + this.prop_num832++; + this.prop_num833++; + this.prop_num834++; + this.prop_num835++; + this.prop_num836++; + this.prop_num837++; + this.prop_num838++; + this.prop_num839++; + this.prop_num840++; + this.prop_num841++; + this.prop_num842++; + this.prop_num843++; + this.prop_num844++; + this.prop_num845++; + this.prop_num846++; + this.prop_num847++; + this.prop_num848++; + this.prop_num849++; + this.prop_num850++; + this.prop_num851++; + this.prop_num852++; + this.prop_num853++; + this.prop_num854++; + this.prop_num855++; + this.prop_num856++; + this.prop_num857++; + this.prop_num858++; + this.prop_num859++; + this.prop_num860++; + this.prop_num861++; + this.prop_num862++; + this.prop_num863++; + this.prop_num864++; + this.prop_num865++; + this.prop_num866++; + this.prop_num867++; + this.prop_num868++; + this.prop_num869++; + this.prop_num870++; + this.prop_num871++; + this.prop_num872++; + this.prop_num873++; + this.prop_num874++; + this.prop_num875++; + this.prop_num876++; + this.prop_num877++; + this.prop_num878++; + this.prop_num879++; + this.prop_num880++; + this.prop_num881++; + this.prop_num882++; + this.prop_num883++; + this.prop_num884++; + this.prop_num885++; + this.prop_num886++; + this.prop_num887++; + this.prop_num888++; + this.prop_num889++; + this.prop_num890++; + this.prop_num891++; + this.prop_num892++; + this.prop_num893++; + this.prop_num894++; + this.prop_num895++; + this.prop_num896++; + this.prop_num897++; + this.prop_num898++; + this.prop_num899++; + this.prop_num900++; + this.prop_num901++; + this.prop_num902++; + this.prop_num903++; + this.prop_num904++; + this.prop_num905++; + this.prop_num906++; + this.prop_num907++; + this.prop_num908++; + this.prop_num909++; + this.prop_num910++; + this.prop_num911++; + this.prop_num912++; + this.prop_num913++; + this.prop_num914++; + this.prop_num915++; + this.prop_num916++; + this.prop_num917++; + this.prop_num918++; + this.prop_num919++; + this.prop_num920++; + this.prop_num921++; + this.prop_num922++; + this.prop_num923++; + this.prop_num924++; + this.prop_num925++; + this.prop_num926++; + this.prop_num927++; + this.prop_num928++; + this.prop_num929++; + this.prop_num930++; + this.prop_num931++; + this.prop_num932++; + this.prop_num933++; + this.prop_num934++; + this.prop_num935++; + this.prop_num936++; + this.prop_num937++; + this.prop_num938++; + this.prop_num939++; + this.prop_num940++; + this.prop_num941++; + this.prop_num942++; + this.prop_num943++; + this.prop_num944++; + this.prop_num945++; + this.prop_num946++; + this.prop_num947++; + this.prop_num948++; + this.prop_num949++; + this.prop_num950++; + this.prop_num951++; + this.prop_num952++; + this.prop_num953++; + this.prop_num954++; + this.prop_num955++; + this.prop_num956++; + this.prop_num957++; + this.prop_num958++; + this.prop_num959++; + this.prop_num960++; + this.prop_num961++; + this.prop_num962++; + this.prop_num963++; + this.prop_num964++; + this.prop_num965++; + this.prop_num966++; + this.prop_num967++; + this.prop_num968++; + this.prop_num969++; + this.prop_num970++; + this.prop_num971++; + this.prop_num972++; + this.prop_num973++; + this.prop_num974++; + this.prop_num975++; + this.prop_num976++; + this.prop_num977++; + this.prop_num978++; + this.prop_num979++; + this.prop_num980++; + this.prop_num981++; + this.prop_num982++; + this.prop_num983++; + this.prop_num984++; + this.prop_num985++; + this.prop_num986++; + this.prop_num987++; + this.prop_num988++; + this.prop_num989++; + this.prop_num990++; + this.prop_num991++; + this.prop_num992++; + this.prop_num993++; + this.prop_num994++; + this.prop_num995++; + this.prop_num996++; + this.prop_num997++; + this.prop_num998++; + this.prop_num999++; + this.prop_num1000++; + this.prop_num1001++; + this.prop_num1002++; + this.prop_num1003++; + this.prop_num1004++; + this.prop_num1005++; + this.prop_num1006++; + this.prop_num1007++; + this.prop_num1008++; + this.prop_num1009++; + this.prop_num1010++; + this.prop_num1011++; + this.prop_num1012++; + this.prop_num1013++; + this.prop_num1014++; + this.prop_num1015++; + this.prop_num1016++; + this.prop_num1017++; + this.prop_num1018++; + this.prop_num1019++; + this.prop_num1020++; + this.prop_num1021++; + this.prop_num1022++; + this.prop_num1023++; + this.prop_num1024++; + this.prop_num1025++; + this.prop_num1026++; + this.prop_num1027++; + this.prop_num1028++; + this.prop_num1029++; + this.prop_num1030++; + this.prop_num1031++; + this.prop_num1032++; + this.prop_num1033++; + this.prop_num1034++; + this.prop_num1035++; + this.prop_num1036++; + this.prop_num1037++; + this.prop_num1038++; + this.prop_num1039++; + this.prop_num1040++; + this.prop_num1041++; + this.prop_num1042++; + this.prop_num1043++; + this.prop_num1044++; + this.prop_num1045++; + this.prop_num1046++; + this.prop_num1047++; + this.prop_num1048++; + this.prop_num1049++; + this.prop_num1050++; + this.prop_num1051++; + this.prop_num1052++; + this.prop_num1053++; + this.prop_num1054++; + this.prop_num1055++; + this.prop_num1056++; + this.prop_num1057++; + this.prop_num1058++; + this.prop_num1059++; + this.prop_num1060++; + this.prop_num1061++; + this.prop_num1062++; + this.prop_num1063++; + this.prop_num1064++; + this.prop_num1065++; + this.prop_num1066++; + this.prop_num1067++; + this.prop_num1068++; + this.prop_num1069++; + this.prop_num1070++; + this.prop_num1071++; + this.prop_num1072++; + this.prop_num1073++; + this.prop_num1074++; + this.prop_num1075++; + this.prop_num1076++; + this.prop_num1077++; + this.prop_num1078++; + this.prop_num1079++; + this.prop_num1080++; + this.prop_num1081++; + this.prop_num1082++; + this.prop_num1083++; + this.prop_num1084++; + this.prop_num1085++; + this.prop_num1086++; + this.prop_num1087++; + this.prop_num1088++; + this.prop_num1089++; + this.prop_num1090++; + this.prop_num1091++; + this.prop_num1092++; + this.prop_num1093++; + this.prop_num1094++; + this.prop_num1095++; + this.prop_num1096++; + this.prop_num1097++; + this.prop_num1098++; + this.prop_num1099++; + this.prop_num1100++; + this.prop_num1101++; + this.prop_num1102++; + this.prop_num1103++; + this.prop_num1104++; + this.prop_num1105++; + this.prop_num1106++; + this.prop_num1107++; + this.prop_num1108++; + this.prop_num1109++; + this.prop_num1110++; + this.prop_num1111++; + this.prop_num1112++; + this.prop_num1113++; + this.prop_num1114++; + this.prop_num1115++; + this.prop_num1116++; + this.prop_num1117++; + this.prop_num1118++; + this.prop_num1119++; + this.prop_num1120++; + this.prop_num1121++; + this.prop_num1122++; + this.prop_num1123++; + this.prop_num1124++; + this.prop_num1125++; + this.prop_num1126++; + this.prop_num1127++; + this.prop_num1128++; + this.prop_num1129++; + this.prop_num1130++; + this.prop_num1131++; + this.prop_num1132++; + this.prop_num1133++; + this.prop_num1134++; + this.prop_num1135++; + this.prop_num1136++; + this.prop_num1137++; + this.prop_num1138++; + this.prop_num1139++; + this.prop_num1140++; + this.prop_num1141++; + this.prop_num1142++; + this.prop_num1143++; + this.prop_num1144++; + this.prop_num1145++; + this.prop_num1146++; + this.prop_num1147++; + this.prop_num1148++; + this.prop_num1149++; + this.prop_num1150++; + this.prop_num1151++; + this.prop_num1152++; + this.prop_num1153++; + this.prop_num1154++; + this.prop_num1155++; + this.prop_num1156++; + this.prop_num1157++; + this.prop_num1158++; + this.prop_num1159++; + this.prop_num1160++; + this.prop_num1161++; + this.prop_num1162++; + this.prop_num1163++; + this.prop_num1164++; + this.prop_num1165++; + this.prop_num1166++; + this.prop_num1167++; + this.prop_num1168++; + this.prop_num1169++; + this.prop_num1170++; + this.prop_num1171++; + this.prop_num1172++; + this.prop_num1173++; + this.prop_num1174++; + this.prop_num1175++; + this.prop_num1176++; + this.prop_num1177++; + this.prop_num1178++; + this.prop_num1179++; + this.prop_num1180++; + this.prop_num1181++; + this.prop_num1182++; + this.prop_num1183++; + this.prop_num1184++; + this.prop_num1185++; + this.prop_num1186++; + this.prop_num1187++; + this.prop_num1188++; + this.prop_num1189++; + this.prop_num1190++; + this.prop_num1191++; + this.prop_num1192++; + this.prop_num1193++; + this.prop_num1194++; + this.prop_num1195++; + this.prop_num1196++; + this.prop_num1197++; + this.prop_num1198++; + this.prop_num1199++; + this.prop_num1200++; + this.prop_num1201++; + this.prop_num1202++; + this.prop_num1203++; + this.prop_num1204++; + this.prop_num1205++; + this.prop_num1206++; + this.prop_num1207++; + this.prop_num1208++; + this.prop_num1209++; + this.prop_num1210++; + this.prop_num1211++; + this.prop_num1212++; + this.prop_num1213++; + this.prop_num1214++; + this.prop_num1215++; + this.prop_num1216++; + this.prop_num1217++; + this.prop_num1218++; + this.prop_num1219++; + this.prop_num1220++; + this.prop_num1221++; + this.prop_num1222++; + this.prop_num1223++; + this.prop_num1224++; + this.prop_num1225++; + this.prop_num1226++; + this.prop_num1227++; + this.prop_num1228++; + this.prop_num1229++; + this.prop_num1230++; + this.prop_num1231++; + this.prop_num1232++; + this.prop_num1233++; + this.prop_num1234++; + this.prop_num1235++; + this.prop_num1236++; + this.prop_num1237++; + this.prop_num1238++; + this.prop_num1239++; + this.prop_num1240++; + this.prop_num1241++; + this.prop_num1242++; + this.prop_num1243++; + this.prop_num1244++; + this.prop_num1245++; + this.prop_num1246++; + this.prop_num1247++; + this.prop_num1248++; + this.prop_num1249++; + this.prop_num1250++; + this.prop_num1251++; + this.prop_num1252++; + this.prop_num1253++; + this.prop_num1254++; + this.prop_num1255++; + this.prop_num1256++; + this.prop_num1257++; + this.prop_num1258++; + this.prop_num1259++; + this.prop_num1260++; + this.prop_num1261++; + this.prop_num1262++; + this.prop_num1263++; + this.prop_num1264++; + this.prop_num1265++; + this.prop_num1266++; + this.prop_num1267++; + this.prop_num1268++; + this.prop_num1269++; + this.prop_num1270++; + this.prop_num1271++; + this.prop_num1272++; + this.prop_num1273++; + this.prop_num1274++; + this.prop_num1275++; + this.prop_num1276++; + this.prop_num1277++; + this.prop_num1278++; + this.prop_num1279++; + this.prop_num1280++; + this.prop_num1281++; + this.prop_num1282++; + this.prop_num1283++; + this.prop_num1284++; + this.prop_num1285++; + this.prop_num1286++; + this.prop_num1287++; + this.prop_num1288++; + this.prop_num1289++; + this.prop_num1290++; + this.prop_num1291++; + this.prop_num1292++; + this.prop_num1293++; + this.prop_num1294++; + this.prop_num1295++; + this.prop_num1296++; + this.prop_num1297++; + this.prop_num1298++; + this.prop_num1299++; + this.prop_num1300++; + this.prop_num1301++; + this.prop_num1302++; + this.prop_num1303++; + this.prop_num1304++; + this.prop_num1305++; + this.prop_num1306++; + this.prop_num1307++; + this.prop_num1308++; + this.prop_num1309++; + this.prop_num1310++; + this.prop_num1311++; + this.prop_num1312++; + this.prop_num1313++; + this.prop_num1314++; + this.prop_num1315++; + this.prop_num1316++; + this.prop_num1317++; + this.prop_num1318++; + this.prop_num1319++; + this.prop_num1320++; + this.prop_num1321++; + this.prop_num1322++; + this.prop_num1323++; + this.prop_num1324++; + this.prop_num1325++; + this.prop_num1326++; + this.prop_num1327++; + this.prop_num1328++; + this.prop_num1329++; + this.prop_num1330++; + this.prop_num1331++; + this.prop_num1332++; + this.prop_num1333++; + this.prop_num1334++; + this.prop_num1335++; + this.prop_num1336++; + this.prop_num1337++; + this.prop_num1338++; + this.prop_num1339++; + this.prop_num1340++; + this.prop_num1341++; + this.prop_num1342++; + this.prop_num1343++; + this.prop_num1344++; + this.prop_num1345++; + this.prop_num1346++; + this.prop_num1347++; + this.prop_num1348++; + this.prop_num1349++; + this.prop_num1350++; + this.prop_num1351++; + this.prop_num1352++; + this.prop_num1353++; + this.prop_num1354++; + this.prop_num1355++; + this.prop_num1356++; + this.prop_num1357++; + this.prop_num1358++; + this.prop_num1359++; + this.prop_num1360++; + this.prop_num1361++; + this.prop_num1362++; + this.prop_num1363++; + this.prop_num1364++; + this.prop_num1365++; + this.prop_num1366++; + this.prop_num1367++; + this.prop_num1368++; + this.prop_num1369++; + this.prop_num1370++; + this.prop_num1371++; + this.prop_num1372++; + this.prop_num1373++; + this.prop_num1374++; + this.prop_num1375++; + this.prop_num1376++; + this.prop_num1377++; + this.prop_num1378++; + this.prop_num1379++; + this.prop_num1380++; + this.prop_num1381++; + this.prop_num1382++; + this.prop_num1383++; + this.prop_num1384++; + this.prop_num1385++; + this.prop_num1386++; + this.prop_num1387++; + this.prop_num1388++; + this.prop_num1389++; + this.prop_num1390++; + this.prop_num1391++; + this.prop_num1392++; + this.prop_num1393++; + this.prop_num1394++; + this.prop_num1395++; + this.prop_num1396++; + this.prop_num1397++; + this.prop_num1398++; + this.prop_num1399++; + this.prop_num1400++; + this.prop_num1401++; + this.prop_num1402++; + this.prop_num1403++; + this.prop_num1404++; + this.prop_num1405++; + this.prop_num1406++; + this.prop_num1407++; + this.prop_num1408++; + this.prop_num1409++; + this.prop_num1410++; + this.prop_num1411++; + this.prop_num1412++; + this.prop_num1413++; + this.prop_num1414++; + this.prop_num1415++; + this.prop_num1416++; + this.prop_num1417++; + this.prop_num1418++; + this.prop_num1419++; + this.prop_num1420++; + this.prop_num1421++; + this.prop_num1422++; + this.prop_num1423++; + this.prop_num1424++; + this.prop_num1425++; + this.prop_num1426++; + this.prop_num1427++; + this.prop_num1428++; + this.prop_num1429++; + this.prop_num1430++; + this.prop_num1431++; + this.prop_num1432++; + this.prop_num1433++; + this.prop_num1434++; + this.prop_num1435++; + this.prop_num1436++; + this.prop_num1437++; + this.prop_num1438++; + this.prop_num1439++; + this.prop_num1440++; + this.prop_num1441++; + this.prop_num1442++; + this.prop_num1443++; + this.prop_num1444++; + this.prop_num1445++; + this.prop_num1446++; + this.prop_num1447++; + this.prop_num1448++; + this.prop_num1449++; + this.prop_num1450++; + this.prop_num1451++; + this.prop_num1452++; + this.prop_num1453++; + this.prop_num1454++; + this.prop_num1455++; + this.prop_num1456++; + this.prop_num1457++; + this.prop_num1458++; + this.prop_num1459++; + this.prop_num1460++; + this.prop_num1461++; + this.prop_num1462++; + this.prop_num1463++; + this.prop_num1464++; + this.prop_num1465++; + this.prop_num1466++; + this.prop_num1467++; + this.prop_num1468++; + this.prop_num1469++; + this.prop_num1470++; + this.prop_num1471++; + this.prop_num1472++; + this.prop_num1473++; + this.prop_num1474++; + this.prop_num1475++; + this.prop_num1476++; + this.prop_num1477++; + this.prop_num1478++; + this.prop_num1479++; + this.prop_num1480++; + this.prop_num1481++; + this.prop_num1482++; + this.prop_num1483++; + this.prop_num1484++; + this.prop_num1485++; + this.prop_num1486++; + this.prop_num1487++; + this.prop_num1488++; + this.prop_num1489++; + this.prop_num1490++; + this.prop_num1491++; + this.prop_num1492++; + this.prop_num1493++; + this.prop_num1494++; + this.prop_num1495++; + this.prop_num1496++; + this.prop_num1497++; + this.prop_num1498++; + this.prop_num1499++; + this.prop_num1500++; + this.prop_num1501++; + this.prop_num1502++; + this.prop_num1503++; + this.prop_num1504++; + this.prop_num1505++; + this.prop_num1506++; + this.prop_num1507++; + this.prop_num1508++; + this.prop_num1509++; + this.prop_num1510++; + this.prop_num1511++; + this.prop_num1512++; + this.prop_num1513++; + this.prop_num1514++; + this.prop_num1515++; + this.prop_num1516++; + this.prop_num1517++; + this.prop_num1518++; + this.prop_num1519++; + this.prop_num1520++; + this.prop_num1521++; + this.prop_num1522++; + this.prop_num1523++; + this.prop_num1524++; + this.prop_num1525++; + this.prop_num1526++; + this.prop_num1527++; + this.prop_num1528++; + this.prop_num1529++; + this.prop_num1530++; + this.prop_num1531++; + this.prop_num1532++; + this.prop_num1533++; + this.prop_num1534++; + this.prop_num1535++; + this.prop_num1536++; + this.prop_num1537++; + this.prop_num1538++; + this.prop_num1539++; + this.prop_num1540++; + this.prop_num1541++; + this.prop_num1542++; + this.prop_num1543++; + this.prop_num1544++; + this.prop_num1545++; + this.prop_num1546++; + this.prop_num1547++; + this.prop_num1548++; + this.prop_num1549++; + this.prop_num1550++; + this.prop_num1551++; + this.prop_num1552++; + this.prop_num1553++; + this.prop_num1554++; + this.prop_num1555++; + this.prop_num1556++; + this.prop_num1557++; + this.prop_num1558++; + this.prop_num1559++; + this.prop_num1560++; + this.prop_num1561++; + this.prop_num1562++; + this.prop_num1563++; + this.prop_num1564++; + this.prop_num1565++; + this.prop_num1566++; + this.prop_num1567++; + this.prop_num1568++; + this.prop_num1569++; + this.prop_num1570++; + this.prop_num1571++; + this.prop_num1572++; + this.prop_num1573++; + this.prop_num1574++; + this.prop_num1575++; + this.prop_num1576++; + this.prop_num1577++; + this.prop_num1578++; + this.prop_num1579++; + this.prop_num1580++; + this.prop_num1581++; + this.prop_num1582++; + this.prop_num1583++; + this.prop_num1584++; + this.prop_num1585++; + this.prop_num1586++; + this.prop_num1587++; + this.prop_num1588++; + this.prop_num1589++; + this.prop_num1590++; + this.prop_num1591++; + this.prop_num1592++; + this.prop_num1593++; + this.prop_num1594++; + this.prop_num1595++; + this.prop_num1596++; + this.prop_num1597++; + this.prop_num1598++; + this.prop_num1599++; + this.prop_num1600++; + this.prop_num1601++; + this.prop_num1602++; + this.prop_num1603++; + this.prop_num1604++; + this.prop_num1605++; + this.prop_num1606++; + this.prop_num1607++; + this.prop_num1608++; + this.prop_num1609++; + this.prop_num1610++; + this.prop_num1611++; + this.prop_num1612++; + this.prop_num1613++; + this.prop_num1614++; + this.prop_num1615++; + this.prop_num1616++; + this.prop_num1617++; + this.prop_num1618++; + this.prop_num1619++; + this.prop_num1620++; + this.prop_num1621++; + this.prop_num1622++; + this.prop_num1623++; + this.prop_num1624++; + this.prop_num1625++; + this.prop_num1626++; + this.prop_num1627++; + this.prop_num1628++; + this.prop_num1629++; + this.prop_num1630++; + this.prop_num1631++; + this.prop_num1632++; + this.prop_num1633++; + this.prop_num1634++; + this.prop_num1635++; + this.prop_num1636++; + this.prop_num1637++; + this.prop_num1638++; + this.prop_num1639++; + this.prop_num1640++; + this.prop_num1641++; + this.prop_num1642++; + this.prop_num1643++; + this.prop_num1644++; + this.prop_num1645++; + this.prop_num1646++; + this.prop_num1647++; + this.prop_num1648++; + this.prop_num1649++; + this.prop_num1650++; + this.prop_num1651++; + this.prop_num1652++; + this.prop_num1653++; + this.prop_num1654++; + this.prop_num1655++; + this.prop_num1656++; + this.prop_num1657++; + this.prop_num1658++; + this.prop_num1659++; + this.prop_num1660++; + this.prop_num1661++; + this.prop_num1662++; + this.prop_num1663++; + this.prop_num1664++; + this.prop_num1665++; + this.prop_num1666++; + this.prop_num1667++; + this.prop_num1668++; + this.prop_num1669++; + this.prop_num1670++; + this.prop_num1671++; + this.prop_num1672++; + this.prop_num1673++; + this.prop_num1674++; + this.prop_num1675++; + this.prop_num1676++; + this.prop_num1677++; + this.prop_num1678++; + this.prop_num1679++; + this.prop_num1680++; + this.prop_num1681++; + this.prop_num1682++; + this.prop_num1683++; + this.prop_num1684++; + this.prop_num1685++; + this.prop_num1686++; + this.prop_num1687++; + this.prop_num1688++; + this.prop_num1689++; + this.prop_num1690++; + this.prop_num1691++; + this.prop_num1692++; + this.prop_num1693++; + this.prop_num1694++; + this.prop_num1695++; + this.prop_num1696++; + this.prop_num1697++; + this.prop_num1698++; + this.prop_num1699++; + this.prop_num1700++; + this.prop_num1701++; + this.prop_num1702++; + this.prop_num1703++; + this.prop_num1704++; + this.prop_num1705++; + this.prop_num1706++; + this.prop_num1707++; + this.prop_num1708++; + this.prop_num1709++; + this.prop_num1710++; + this.prop_num1711++; + this.prop_num1712++; + this.prop_num1713++; + this.prop_num1714++; + this.prop_num1715++; + this.prop_num1716++; + this.prop_num1717++; + this.prop_num1718++; + this.prop_num1719++; + this.prop_num1720++; + this.prop_num1721++; + this.prop_num1722++; + this.prop_num1723++; + this.prop_num1724++; + this.prop_num1725++; + this.prop_num1726++; + this.prop_num1727++; + this.prop_num1728++; + this.prop_num1729++; + this.prop_num1730++; + this.prop_num1731++; + this.prop_num1732++; + this.prop_num1733++; + this.prop_num1734++; + this.prop_num1735++; + this.prop_num1736++; + this.prop_num1737++; + this.prop_num1738++; + this.prop_num1739++; + this.prop_num1740++; + this.prop_num1741++; + this.prop_num1742++; + this.prop_num1743++; + this.prop_num1744++; + this.prop_num1745++; + this.prop_num1746++; + this.prop_num1747++; + this.prop_num1748++; + this.prop_num1749++; + this.prop_num1750++; + this.prop_num1751++; + this.prop_num1752++; + this.prop_num1753++; + this.prop_num1754++; + this.prop_num1755++; + this.prop_num1756++; + this.prop_num1757++; + this.prop_num1758++; + this.prop_num1759++; + this.prop_num1760++; + this.prop_num1761++; + this.prop_num1762++; + this.prop_num1763++; + this.prop_num1764++; + this.prop_num1765++; + this.prop_num1766++; + this.prop_num1767++; + this.prop_num1768++; + this.prop_num1769++; + this.prop_num1770++; + this.prop_num1771++; + this.prop_num1772++; + this.prop_num1773++; + this.prop_num1774++; + this.prop_num1775++; + this.prop_num1776++; + this.prop_num1777++; + this.prop_num1778++; + this.prop_num1779++; + this.prop_num1780++; + this.prop_num1781++; + this.prop_num1782++; + this.prop_num1783++; + this.prop_num1784++; + this.prop_num1785++; + this.prop_num1786++; + this.prop_num1787++; + this.prop_num1788++; + this.prop_num1789++; + this.prop_num1790++; + this.prop_num1791++; + this.prop_num1792++; + this.prop_num1793++; + this.prop_num1794++; + this.prop_num1795++; + this.prop_num1796++; + this.prop_num1797++; + this.prop_num1798++; + this.prop_num1799++; + this.prop_num1800++; + this.prop_num1801++; + this.prop_num1802++; + this.prop_num1803++; + this.prop_num1804++; + this.prop_num1805++; + this.prop_num1806++; + this.prop_num1807++; + this.prop_num1808++; + this.prop_num1809++; + this.prop_num1810++; + this.prop_num1811++; + this.prop_num1812++; + this.prop_num1813++; + this.prop_num1814++; + this.prop_num1815++; + this.prop_num1816++; + this.prop_num1817++; + + }) + } + } +} + +@Component +struct LinkVariables { + @Link link_num0: number; + @Link link_num1: number; + @Link link_num2: number; + @Link link_num3: number; + @Link link_num4: number; + @Link link_num5: number; + @Link link_num6: number; + @Link link_num7: number; + @Link link_num8: number; + @Link link_num9: number; + @Link link_num10: number; + @Link link_num11: number; + @Link link_num12: number; + @Link link_num13: number; + @Link link_num14: number; + @Link link_num15: number; + @Link link_num16: number; + @Link link_num17: number; + @Link link_num18: number; + @Link link_num19: number; + @Link link_num20: number; + @Link link_num21: number; + @Link link_num22: number; + @Link link_num23: number; + @Link link_num24: number; + @Link link_num25: number; + @Link link_num26: number; + @Link link_num27: number; + @Link link_num28: number; + @Link link_num29: number; + @Link link_num30: number; + @Link link_num31: number; + @Link link_num32: number; + @Link link_num33: number; + @Link link_num34: number; + @Link link_num35: number; + @Link link_num36: number; + @Link link_num37: number; + @Link link_num38: number; + @Link link_num39: number; + @Link link_num40: number; + @Link link_num41: number; + @Link link_num42: number; + @Link link_num43: number; + @Link link_num44: number; + @Link link_num45: number; + @Link link_num46: number; + @Link link_num47: number; + @Link link_num48: number; + @Link link_num49: number; + @Link link_num50: number; + @Link link_num51: number; + @Link link_num52: number; + @Link link_num53: number; + @Link link_num54: number; + @Link link_num55: number; + @Link link_num56: number; + @Link link_num57: number; + @Link link_num58: number; + @Link link_num59: number; + @Link link_num60: number; + @Link link_num61: number; + @Link link_num62: number; + @Link link_num63: number; + @Link link_num64: number; + @Link link_num65: number; + @Link link_num66: number; + @Link link_num67: number; + @Link link_num68: number; + @Link link_num69: number; + @Link link_num70: number; + @Link link_num71: number; + @Link link_num72: number; + @Link link_num73: number; + @Link link_num74: number; + @Link link_num75: number; + @Link link_num76: number; + @Link link_num77: number; + @Link link_num78: number; + @Link link_num79: number; + @Link link_num80: number; + @Link link_num81: number; + @Link link_num82: number; + @Link link_num83: number; + @Link link_num84: number; + @Link link_num85: number; + @Link link_num86: number; + @Link link_num87: number; + @Link link_num88: number; + @Link link_num89: number; + @Link link_num90: number; + @Link link_num91: number; + @Link link_num92: number; + @Link link_num93: number; + @Link link_num94: number; + @Link link_num95: number; + @Link link_num96: number; + @Link link_num97: number; + @Link link_num98: number; + @Link link_num99: number; + @Link link_num100: number; + @Link link_num101: number; + @Link link_num102: number; + @Link link_num103: number; + @Link link_num104: number; + @Link link_num105: number; + @Link link_num106: number; + @Link link_num107: number; + @Link link_num108: number; + @Link link_num109: number; + @Link link_num110: number; + @Link link_num111: number; + @Link link_num112: number; + @Link link_num113: number; + @Link link_num114: number; + @Link link_num115: number; + @Link link_num116: number; + @Link link_num117: number; + @Link link_num118: number; + @Link link_num119: number; + @Link link_num120: number; + @Link link_num121: number; + @Link link_num122: number; + @Link link_num123: number; + @Link link_num124: number; + @Link link_num125: number; + @Link link_num126: number; + @Link link_num127: number; + @Link link_num128: number; + @Link link_num129: number; + @Link link_num130: number; + @Link link_num131: number; + @Link link_num132: number; + @Link link_num133: number; + @Link link_num134: number; + @Link link_num135: number; + @Link link_num136: number; + @Link link_num137: number; + @Link link_num138: number; + @Link link_num139: number; + @Link link_num140: number; + @Link link_num141: number; + @Link link_num142: number; + @Link link_num143: number; + @Link link_num144: number; + @Link link_num145: number; + @Link link_num146: number; + @Link link_num147: number; + @Link link_num148: number; + @Link link_num149: number; + @Link link_num150: number; + @Link link_num151: number; + @Link link_num152: number; + @Link link_num153: number; + @Link link_num154: number; + @Link link_num155: number; + @Link link_num156: number; + @Link link_num157: number; + @Link link_num158: number; + @Link link_num159: number; + @Link link_num160: number; + @Link link_num161: number; + @Link link_num162: number; + @Link link_num163: number; + @Link link_num164: number; + @Link link_num165: number; + @Link link_num166: number; + @Link link_num167: number; + @Link link_num168: number; + @Link link_num169: number; + @Link link_num170: number; + @Link link_num171: number; + @Link link_num172: number; + @Link link_num173: number; + @Link link_num174: number; + @Link link_num175: number; + @Link link_num176: number; + @Link link_num177: number; + @Link link_num178: number; + @Link link_num179: number; + @Link link_num180: number; + @Link link_num181: number; + @Link link_num182: number; + @Link link_num183: number; + @Link link_num184: number; + @Link link_num185: number; + @Link link_num186: number; + @Link link_num187: number; + @Link link_num188: number; + @Link link_num189: number; + @Link link_num190: number; + @Link link_num191: number; + @Link link_num192: number; + @Link link_num193: number; + @Link link_num194: number; + @Link link_num195: number; + @Link link_num196: number; + @Link link_num197: number; + @Link link_num198: number; + @Link link_num199: number; + @Link link_num200: number; + @Link link_num201: number; + @Link link_num202: number; + @Link link_num203: number; + @Link link_num204: number; + @Link link_num205: number; + @Link link_num206: number; + @Link link_num207: number; + @Link link_num208: number; + @Link link_num209: number; + @Link link_num210: number; + @Link link_num211: number; + @Link link_num212: number; + @Link link_num213: number; + @Link link_num214: number; + @Link link_num215: number; + @Link link_num216: number; + @Link link_num217: number; + @Link link_num218: number; + @Link link_num219: number; + @Link link_num220: number; + @Link link_num221: number; + @Link link_num222: number; + @Link link_num223: number; + @Link link_num224: number; + @Link link_num225: number; + @Link link_num226: number; + @Link link_num227: number; + @Link link_num228: number; + @Link link_num229: number; + @Link link_num230: number; + @Link link_num231: number; + @Link link_num232: number; + @Link link_num233: number; + @Link link_num234: number; + @Link link_num235: number; + @Link link_num236: number; + @Link link_num237: number; + @Link link_num238: number; + @Link link_num239: number; + @Link link_num240: number; + @Link link_num241: number; + @Link link_num242: number; + @Link link_num243: number; + @Link link_num244: number; + @Link link_num245: number; + @Link link_num246: number; + @Link link_num247: number; + @Link link_num248: number; + @Link link_num249: number; + @Link link_num250: number; + @Link link_num251: number; + @Link link_num252: number; + @Link link_num253: number; + @Link link_num254: number; + @Link link_num255: number; + @Link link_num256: number; + @Link link_num257: number; + @Link link_num258: number; + @Link link_num259: number; + @Link link_num260: number; + @Link link_num261: number; + @Link link_num262: number; + @Link link_num263: number; + @Link link_num264: number; + @Link link_num265: number; + @Link link_num266: number; + @Link link_num267: number; + @Link link_num268: number; + @Link link_num269: number; + @Link link_num270: number; + @Link link_num271: number; + @Link link_num272: number; + @Link link_num273: number; + @Link link_num274: number; + @Link link_num275: number; + @Link link_num276: number; + @Link link_num277: number; + @Link link_num278: number; + @Link link_num279: number; + @Link link_num280: number; + @Link link_num281: number; + @Link link_num282: number; + @Link link_num283: number; + @Link link_num284: number; + @Link link_num285: number; + @Link link_num286: number; + @Link link_num287: number; + @Link link_num288: number; + @Link link_num289: number; + @Link link_num290: number; + @Link link_num291: number; + @Link link_num292: number; + @Link link_num293: number; + @Link link_num294: number; + @Link link_num295: number; + @Link link_num296: number; + @Link link_num297: number; + @Link link_num298: number; + @Link link_num299: number; + @Link link_num300: number; + @Link link_num301: number; + @Link link_num302: number; + @Link link_num303: number; + @Link link_num304: number; + @Link link_num305: number; + @Link link_num306: number; + @Link link_num307: number; + @Link link_num308: number; + @Link link_num309: number; + @Link link_num310: number; + @Link link_num311: number; + @Link link_num312: number; + @Link link_num313: number; + @Link link_num314: number; + @Link link_num315: number; + @Link link_num316: number; + @Link link_num317: number; + @Link link_num318: number; + @Link link_num319: number; + @Link link_num320: number; + @Link link_num321: number; + @Link link_num322: number; + @Link link_num323: number; + @Link link_num324: number; + @Link link_num325: number; + @Link link_num326: number; + @Link link_num327: number; + @Link link_num328: number; + @Link link_num329: number; + @Link link_num330: number; + @Link link_num331: number; + @Link link_num332: number; + @Link link_num333: number; + @Link link_num334: number; + @Link link_num335: number; + @Link link_num336: number; + @Link link_num337: number; + @Link link_num338: number; + @Link link_num339: number; + @Link link_num340: number; + @Link link_num341: number; + @Link link_num342: number; + @Link link_num343: number; + @Link link_num344: number; + @Link link_num345: number; + @Link link_num346: number; + @Link link_num347: number; + @Link link_num348: number; + @Link link_num349: number; + @Link link_num350: number; + @Link link_num351: number; + @Link link_num352: number; + @Link link_num353: number; + @Link link_num354: number; + @Link link_num355: number; + @Link link_num356: number; + @Link link_num357: number; + @Link link_num358: number; + @Link link_num359: number; + @Link link_num360: number; + @Link link_num361: number; + @Link link_num362: number; + @Link link_num363: number; + @Link link_num364: number; + @Link link_num365: number; + @Link link_num366: number; + @Link link_num367: number; + @Link link_num368: number; + @Link link_num369: number; + @Link link_num370: number; + @Link link_num371: number; + @Link link_num372: number; + @Link link_num373: number; + @Link link_num374: number; + @Link link_num375: number; + @Link link_num376: number; + @Link link_num377: number; + @Link link_num378: number; + @Link link_num379: number; + @Link link_num380: number; + @Link link_num381: number; + @Link link_num382: number; + @Link link_num383: number; + @Link link_num384: number; + @Link link_num385: number; + @Link link_num386: number; + @Link link_num387: number; + @Link link_num388: number; + @Link link_num389: number; + @Link link_num390: number; + @Link link_num391: number; + @Link link_num392: number; + @Link link_num393: number; + @Link link_num394: number; + @Link link_num395: number; + @Link link_num396: number; + @Link link_num397: number; + @Link link_num398: number; + @Link link_num399: number; + @Link link_num400: number; + @Link link_num401: number; + @Link link_num402: number; + @Link link_num403: number; + @Link link_num404: number; + @Link link_num405: number; + @Link link_num406: number; + @Link link_num407: number; + @Link link_num408: number; + @Link link_num409: number; + @Link link_num410: number; + @Link link_num411: number; + @Link link_num412: number; + @Link link_num413: number; + @Link link_num414: number; + @Link link_num415: number; + @Link link_num416: number; + @Link link_num417: number; + @Link link_num418: number; + @Link link_num419: number; + @Link link_num420: number; + @Link link_num421: number; + @Link link_num422: number; + @Link link_num423: number; + @Link link_num424: number; + @Link link_num425: number; + @Link link_num426: number; + @Link link_num427: number; + @Link link_num428: number; + @Link link_num429: number; + @Link link_num430: number; + @Link link_num431: number; + @Link link_num432: number; + @Link link_num433: number; + @Link link_num434: number; + @Link link_num435: number; + @Link link_num436: number; + @Link link_num437: number; + @Link link_num438: number; + @Link link_num439: number; + @Link link_num440: number; + @Link link_num441: number; + @Link link_num442: number; + @Link link_num443: number; + @Link link_num444: number; + @Link link_num445: number; + @Link link_num446: number; + @Link link_num447: number; + @Link link_num448: number; + @Link link_num449: number; + @Link link_num450: number; + @Link link_num451: number; + @Link link_num452: number; + @Link link_num453: number; + @Link link_num454: number; + @Link link_num455: number; + @Link link_num456: number; + @Link link_num457: number; + @Link link_num458: number; + @Link link_num459: number; + @Link link_num460: number; + @Link link_num461: number; + @Link link_num462: number; + @Link link_num463: number; + @Link link_num464: number; + @Link link_num465: number; + @Link link_num466: number; + @Link link_num467: number; + @Link link_num468: number; + @Link link_num469: number; + @Link link_num470: number; + @Link link_num471: number; + @Link link_num472: number; + @Link link_num473: number; + @Link link_num474: number; + @Link link_num475: number; + @Link link_num476: number; + @Link link_num477: number; + @Link link_num478: number; + @Link link_num479: number; + @Link link_num480: number; + @Link link_num481: number; + @Link link_num482: number; + @Link link_num483: number; + @Link link_num484: number; + @Link link_num485: number; + @Link link_num486: number; + @Link link_num487: number; + @Link link_num488: number; + @Link link_num489: number; + @Link link_num490: number; + @Link link_num491: number; + @Link link_num492: number; + @Link link_num493: number; + @Link link_num494: number; + @Link link_num495: number; + @Link link_num496: number; + @Link link_num497: number; + @Link link_num498: number; + @Link link_num499: number; + @Link link_num500: number; + @Link link_num501: number; + @Link link_num502: number; + @Link link_num503: number; + @Link link_num504: number; + @Link link_num505: number; + @Link link_num506: number; + @Link link_num507: number; + @Link link_num508: number; + @Link link_num509: number; + @Link link_num510: number; + @Link link_num511: number; + @Link link_num512: number; + @Link link_num513: number; + @Link link_num514: number; + @Link link_num515: number; + @Link link_num516: number; + @Link link_num517: number; + @Link link_num518: number; + @Link link_num519: number; + @Link link_num520: number; + @Link link_num521: number; + @Link link_num522: number; + @Link link_num523: number; + @Link link_num524: number; + @Link link_num525: number; + @Link link_num526: number; + @Link link_num527: number; + @Link link_num528: number; + @Link link_num529: number; + @Link link_num530: number; + @Link link_num531: number; + @Link link_num532: number; + @Link link_num533: number; + @Link link_num534: number; + @Link link_num535: number; + @Link link_num536: number; + @Link link_num537: number; + @Link link_num538: number; + @Link link_num539: number; + @Link link_num540: number; + @Link link_num541: number; + @Link link_num542: number; + @Link link_num543: number; + @Link link_num544: number; + @Link link_num545: number; + @Link link_num546: number; + @Link link_num547: number; + @Link link_num548: number; + @Link link_num549: number; + @Link link_num550: number; + @Link link_num551: number; + @Link link_num552: number; + @Link link_num553: number; + @Link link_num554: number; + @Link link_num555: number; + @Link link_num556: number; + @Link link_num557: number; + @Link link_num558: number; + @Link link_num559: number; + @Link link_num560: number; + @Link link_num561: number; + @Link link_num562: number; + @Link link_num563: number; + @Link link_num564: number; + @Link link_num565: number; + @Link link_num566: number; + @Link link_num567: number; + @Link link_num568: number; + @Link link_num569: number; + @Link link_num570: number; + @Link link_num571: number; + @Link link_num572: number; + @Link link_num573: number; + @Link link_num574: number; + @Link link_num575: number; + @Link link_num576: number; + @Link link_num577: number; + @Link link_num578: number; + @Link link_num579: number; + @Link link_num580: number; + @Link link_num581: number; + @Link link_num582: number; + @Link link_num583: number; + @Link link_num584: number; + @Link link_num585: number; + @Link link_num586: number; + @Link link_num587: number; + @Link link_num588: number; + @Link link_num589: number; + @Link link_num590: number; + @Link link_num591: number; + @Link link_num592: number; + @Link link_num593: number; + @Link link_num594: number; + @Link link_num595: number; + @Link link_num596: number; + @Link link_num597: number; + @Link link_num598: number; + @Link link_num599: number; + @Link link_num600: number; + @Link link_num601: number; + @Link link_num602: number; + @Link link_num603: number; + @Link link_num604: number; + @Link link_num605: number; + @Link link_num606: number; + @Link link_num607: number; + @Link link_num608: number; + @Link link_num609: number; + @Link link_num610: number; + @Link link_num611: number; + @Link link_num612: number; + @Link link_num613: number; + @Link link_num614: number; + @Link link_num615: number; + @Link link_num616: number; + @Link link_num617: number; + @Link link_num618: number; + @Link link_num619: number; + @Link link_num620: number; + @Link link_num621: number; + @Link link_num622: number; + @Link link_num623: number; + @Link link_num624: number; + @Link link_num625: number; + @Link link_num626: number; + @Link link_num627: number; + @Link link_num628: number; + @Link link_num629: number; + @Link link_num630: number; + @Link link_num631: number; + @Link link_num632: number; + @Link link_num633: number; + @Link link_num634: number; + @Link link_num635: number; + @Link link_num636: number; + @Link link_num637: number; + @Link link_num638: number; + @Link link_num639: number; + @Link link_num640: number; + @Link link_num641: number; + @Link link_num642: number; + @Link link_num643: number; + @Link link_num644: number; + @Link link_num645: number; + @Link link_num646: number; + @Link link_num647: number; + @Link link_num648: number; + @Link link_num649: number; + @Link link_num650: number; + @Link link_num651: number; + @Link link_num652: number; + @Link link_num653: number; + @Link link_num654: number; + @Link link_num655: number; + @Link link_num656: number; + @Link link_num657: number; + @Link link_num658: number; + @Link link_num659: number; + @Link link_num660: number; + @Link link_num661: number; + @Link link_num662: number; + @Link link_num663: number; + @Link link_num664: number; + @Link link_num665: number; + @Link link_num666: number; + @Link link_num667: number; + @Link link_num668: number; + @Link link_num669: number; + @Link link_num670: number; + @Link link_num671: number; + @Link link_num672: number; + @Link link_num673: number; + @Link link_num674: number; + @Link link_num675: number; + @Link link_num676: number; + @Link link_num677: number; + @Link link_num678: number; + @Link link_num679: number; + @Link link_num680: number; + @Link link_num681: number; + @Link link_num682: number; + @Link link_num683: number; + @Link link_num684: number; + @Link link_num685: number; + @Link link_num686: number; + @Link link_num687: number; + @Link link_num688: number; + @Link link_num689: number; + @Link link_num690: number; + @Link link_num691: number; + @Link link_num692: number; + @Link link_num693: number; + @Link link_num694: number; + @Link link_num695: number; + @Link link_num696: number; + @Link link_num697: number; + @Link link_num698: number; + @Link link_num699: number; + @Link link_num700: number; + @Link link_num701: number; + @Link link_num702: number; + @Link link_num703: number; + @Link link_num704: number; + @Link link_num705: number; + @Link link_num706: number; + @Link link_num707: number; + @Link link_num708: number; + @Link link_num709: number; + @Link link_num710: number; + @Link link_num711: number; + @Link link_num712: number; + @Link link_num713: number; + @Link link_num714: number; + @Link link_num715: number; + @Link link_num716: number; + @Link link_num717: number; + @Link link_num718: number; + @Link link_num719: number; + @Link link_num720: number; + @Link link_num721: number; + @Link link_num722: number; + @Link link_num723: number; + @Link link_num724: number; + @Link link_num725: number; + @Link link_num726: number; + @Link link_num727: number; + @Link link_num728: number; + @Link link_num729: number; + @Link link_num730: number; + @Link link_num731: number; + @Link link_num732: number; + @Link link_num733: number; + @Link link_num734: number; + @Link link_num735: number; + @Link link_num736: number; + @Link link_num737: number; + @Link link_num738: number; + @Link link_num739: number; + @Link link_num740: number; + @Link link_num741: number; + @Link link_num742: number; + @Link link_num743: number; + @Link link_num744: number; + @Link link_num745: number; + @Link link_num746: number; + @Link link_num747: number; + @Link link_num748: number; + @Link link_num749: number; + @Link link_num750: number; + @Link link_num751: number; + @Link link_num752: number; + @Link link_num753: number; + @Link link_num754: number; + @Link link_num755: number; + @Link link_num756: number; + @Link link_num757: number; + @Link link_num758: number; + @Link link_num759: number; + @Link link_num760: number; + @Link link_num761: number; + @Link link_num762: number; + @Link link_num763: number; + @Link link_num764: number; + @Link link_num765: number; + @Link link_num766: number; + @Link link_num767: number; + @Link link_num768: number; + @Link link_num769: number; + @Link link_num770: number; + @Link link_num771: number; + @Link link_num772: number; + @Link link_num773: number; + @Link link_num774: number; + @Link link_num775: number; + @Link link_num776: number; + @Link link_num777: number; + @Link link_num778: number; + @Link link_num779: number; + @Link link_num780: number; + @Link link_num781: number; + @Link link_num782: number; + @Link link_num783: number; + @Link link_num784: number; + @Link link_num785: number; + @Link link_num786: number; + @Link link_num787: number; + @Link link_num788: number; + @Link link_num789: number; + @Link link_num790: number; + @Link link_num791: number; + @Link link_num792: number; + @Link link_num793: number; + @Link link_num794: number; + @Link link_num795: number; + @Link link_num796: number; + @Link link_num797: number; + @Link link_num798: number; + @Link link_num799: number; + @Link link_num800: number; + @Link link_num801: number; + @Link link_num802: number; + @Link link_num803: number; + @Link link_num804: number; + @Link link_num805: number; + @Link link_num806: number; + @Link link_num807: number; + @Link link_num808: number; + @Link link_num809: number; + @Link link_num810: number; + @Link link_num811: number; + @Link link_num812: number; + @Link link_num813: number; + @Link link_num814: number; + @Link link_num815: number; + @Link link_num816: number; + @Link link_num817: number; + @Link link_num818: number; + @Link link_num819: number; + @Link link_num820: number; + @Link link_num821: number; + @Link link_num822: number; + @Link link_num823: number; + @Link link_num824: number; + @Link link_num825: number; + @Link link_num826: number; + @Link link_num827: number; + @Link link_num828: number; + @Link link_num829: number; + @Link link_num830: number; + @Link link_num831: number; + @Link link_num832: number; + @Link link_num833: number; + @Link link_num834: number; + @Link link_num835: number; + @Link link_num836: number; + @Link link_num837: number; + @Link link_num838: number; + @Link link_num839: number; + @Link link_num840: number; + @Link link_num841: number; + @Link link_num842: number; + @Link link_num843: number; + @Link link_num844: number; + @Link link_num845: number; + @Link link_num846: number; + @Link link_num847: number; + @Link link_num848: number; + @Link link_num849: number; + @Link link_num850: number; + @Link link_num851: number; + @Link link_num852: number; + @Link link_num853: number; + @Link link_num854: number; + @Link link_num855: number; + @Link link_num856: number; + @Link link_num857: number; + @Link link_num858: number; + @Link link_num859: number; + @Link link_num860: number; + @Link link_num861: number; + @Link link_num862: number; + @Link link_num863: number; + @Link link_num864: number; + @Link link_num865: number; + @Link link_num866: number; + @Link link_num867: number; + @Link link_num868: number; + @Link link_num869: number; + @Link link_num870: number; + @Link link_num871: number; + @Link link_num872: number; + @Link link_num873: number; + @Link link_num874: number; + @Link link_num875: number; + @Link link_num876: number; + @Link link_num877: number; + @Link link_num878: number; + @Link link_num879: number; + @Link link_num880: number; + @Link link_num881: number; + @Link link_num882: number; + @Link link_num883: number; + @Link link_num884: number; + @Link link_num885: number; + @Link link_num886: number; + @Link link_num887: number; + @Link link_num888: number; + @Link link_num889: number; + @Link link_num890: number; + @Link link_num891: number; + @Link link_num892: number; + @Link link_num893: number; + @Link link_num894: number; + @Link link_num895: number; + @Link link_num896: number; + @Link link_num897: number; + @Link link_num898: number; + @Link link_num899: number; + @Link link_num900: number; + @Link link_num901: number; + @Link link_num902: number; + @Link link_num903: number; + @Link link_num904: number; + @Link link_num905: number; + @Link link_num906: number; + @Link link_num907: number; + @Link link_num908: number; + @Link link_num909: number; + @Link link_num910: number; + @Link link_num911: number; + @Link link_num912: number; + @Link link_num913: number; + @Link link_num914: number; + @Link link_num915: number; + @Link link_num916: number; + @Link link_num917: number; + @Link link_num918: number; + @Link link_num919: number; + @Link link_num920: number; + @Link link_num921: number; + @Link link_num922: number; + @Link link_num923: number; + @Link link_num924: number; + @Link link_num925: number; + @Link link_num926: number; + @Link link_num927: number; + @Link link_num928: number; + @Link link_num929: number; + @Link link_num930: number; + @Link link_num931: number; + @Link link_num932: number; + @Link link_num933: number; + @Link link_num934: number; + @Link link_num935: number; + @Link link_num936: number; + @Link link_num937: number; + @Link link_num938: number; + @Link link_num939: number; + @Link link_num940: number; + @Link link_num941: number; + @Link link_num942: number; + @Link link_num943: number; + @Link link_num944: number; + @Link link_num945: number; + @Link link_num946: number; + @Link link_num947: number; + @Link link_num948: number; + @Link link_num949: number; + @Link link_num950: number; + @Link link_num951: number; + @Link link_num952: number; + @Link link_num953: number; + @Link link_num954: number; + @Link link_num955: number; + @Link link_num956: number; + @Link link_num957: number; + @Link link_num958: number; + @Link link_num959: number; + @Link link_num960: number; + @Link link_num961: number; + @Link link_num962: number; + @Link link_num963: number; + @Link link_num964: number; + @Link link_num965: number; + @Link link_num966: number; + @Link link_num967: number; + @Link link_num968: number; + @Link link_num969: number; + @Link link_num970: number; + @Link link_num971: number; + @Link link_num972: number; + @Link link_num973: number; + @Link link_num974: number; + @Link link_num975: number; + @Link link_num976: number; + @Link link_num977: number; + @Link link_num978: number; + @Link link_num979: number; + @Link link_num980: number; + @Link link_num981: number; + @Link link_num982: number; + @Link link_num983: number; + @Link link_num984: number; + @Link link_num985: number; + @Link link_num986: number; + @Link link_num987: number; + @Link link_num988: number; + @Link link_num989: number; + @Link link_num990: number; + @Link link_num991: number; + @Link link_num992: number; + @Link link_num993: number; + @Link link_num994: number; + @Link link_num995: number; + @Link link_num996: number; + @Link link_num997: number; + @Link link_num998: number; + @Link link_num999: number; + @Link link_num1000: number; + @Link link_num1001: number; + @Link link_num1002: number; + @Link link_num1003: number; + @Link link_num1004: number; + @Link link_num1005: number; + @Link link_num1006: number; + @Link link_num1007: number; + @Link link_num1008: number; + @Link link_num1009: number; + @Link link_num1010: number; + @Link link_num1011: number; + @Link link_num1012: number; + @Link link_num1013: number; + @Link link_num1014: number; + @Link link_num1015: number; + @Link link_num1016: number; + @Link link_num1017: number; + @Link link_num1018: number; + @Link link_num1019: number; + @Link link_num1020: number; + @Link link_num1021: number; + @Link link_num1022: number; + @Link link_num1023: number; + @Link link_num1024: number; + @Link link_num1025: number; + @Link link_num1026: number; + @Link link_num1027: number; + @Link link_num1028: number; + @Link link_num1029: number; + @Link link_num1030: number; + @Link link_num1031: number; + @Link link_num1032: number; + @Link link_num1033: number; + @Link link_num1034: number; + @Link link_num1035: number; + @Link link_num1036: number; + @Link link_num1037: number; + @Link link_num1038: number; + @Link link_num1039: number; + @Link link_num1040: number; + @Link link_num1041: number; + @Link link_num1042: number; + @Link link_num1043: number; + @Link link_num1044: number; + @Link link_num1045: number; + @Link link_num1046: number; + @Link link_num1047: number; + @Link link_num1048: number; + @Link link_num1049: number; + @Link link_num1050: number; + @Link link_num1051: number; + @Link link_num1052: number; + @Link link_num1053: number; + @Link link_num1054: number; + @Link link_num1055: number; + @Link link_num1056: number; + @Link link_num1057: number; + @Link link_num1058: number; + @Link link_num1059: number; + @Link link_num1060: number; + @Link link_num1061: number; + @Link link_num1062: number; + @Link link_num1063: number; + @Link link_num1064: number; + @Link link_num1065: number; + @Link link_num1066: number; + @Link link_num1067: number; + @Link link_num1068: number; + @Link link_num1069: number; + @Link link_num1070: number; + @Link link_num1071: number; + @Link link_num1072: number; + @Link link_num1073: number; + @Link link_num1074: number; + @Link link_num1075: number; + @Link link_num1076: number; + @Link link_num1077: number; + @Link link_num1078: number; + @Link link_num1079: number; + @Link link_num1080: number; + @Link link_num1081: number; + @Link link_num1082: number; + @Link link_num1083: number; + @Link link_num1084: number; + @Link link_num1085: number; + @Link link_num1086: number; + @Link link_num1087: number; + @Link link_num1088: number; + @Link link_num1089: number; + @Link link_num1090: number; + @Link link_num1091: number; + @Link link_num1092: number; + @Link link_num1093: number; + @Link link_num1094: number; + @Link link_num1095: number; + @Link link_num1096: number; + @Link link_num1097: number; + @Link link_num1098: number; + @Link link_num1099: number; + @Link link_num1100: number; + @Link link_num1101: number; + @Link link_num1102: number; + @Link link_num1103: number; + @Link link_num1104: number; + @Link link_num1105: number; + @Link link_num1106: number; + @Link link_num1107: number; + @Link link_num1108: number; + @Link link_num1109: number; + @Link link_num1110: number; + @Link link_num1111: number; + @Link link_num1112: number; + @Link link_num1113: number; + @Link link_num1114: number; + @Link link_num1115: number; + @Link link_num1116: number; + @Link link_num1117: number; + @Link link_num1118: number; + @Link link_num1119: number; + @Link link_num1120: number; + @Link link_num1121: number; + @Link link_num1122: number; + @Link link_num1123: number; + @Link link_num1124: number; + @Link link_num1125: number; + @Link link_num1126: number; + @Link link_num1127: number; + @Link link_num1128: number; + @Link link_num1129: number; + @Link link_num1130: number; + @Link link_num1131: number; + @Link link_num1132: number; + @Link link_num1133: number; + @Link link_num1134: number; + @Link link_num1135: number; + @Link link_num1136: number; + @Link link_num1137: number; + @Link link_num1138: number; + @Link link_num1139: number; + @Link link_num1140: number; + @Link link_num1141: number; + @Link link_num1142: number; + @Link link_num1143: number; + @Link link_num1144: number; + @Link link_num1145: number; + @Link link_num1146: number; + @Link link_num1147: number; + @Link link_num1148: number; + @Link link_num1149: number; + @Link link_num1150: number; + @Link link_num1151: number; + @Link link_num1152: number; + @Link link_num1153: number; + @Link link_num1154: number; + @Link link_num1155: number; + @Link link_num1156: number; + @Link link_num1157: number; + @Link link_num1158: number; + @Link link_num1159: number; + @Link link_num1160: number; + @Link link_num1161: number; + @Link link_num1162: number; + @Link link_num1163: number; + @Link link_num1164: number; + @Link link_num1165: number; + @Link link_num1166: number; + @Link link_num1167: number; + @Link link_num1168: number; + @Link link_num1169: number; + @Link link_num1170: number; + @Link link_num1171: number; + @Link link_num1172: number; + @Link link_num1173: number; + @Link link_num1174: number; + @Link link_num1175: number; + @Link link_num1176: number; + @Link link_num1177: number; + @Link link_num1178: number; + @Link link_num1179: number; + @Link link_num1180: number; + @Link link_num1181: number; + @Link link_num1182: number; + @Link link_num1183: number; + @Link link_num1184: number; + @Link link_num1185: number; + @Link link_num1186: number; + @Link link_num1187: number; + @Link link_num1188: number; + @Link link_num1189: number; + @Link link_num1190: number; + @Link link_num1191: number; + @Link link_num1192: number; + @Link link_num1193: number; + @Link link_num1194: number; + @Link link_num1195: number; + @Link link_num1196: number; + @Link link_num1197: number; + @Link link_num1198: number; + @Link link_num1199: number; + @Link link_num1200: number; + @Link link_num1201: number; + @Link link_num1202: number; + @Link link_num1203: number; + @Link link_num1204: number; + @Link link_num1205: number; + @Link link_num1206: number; + @Link link_num1207: number; + @Link link_num1208: number; + @Link link_num1209: number; + @Link link_num1210: number; + @Link link_num1211: number; + @Link link_num1212: number; + @Link link_num1213: number; + @Link link_num1214: number; + @Link link_num1215: number; + @Link link_num1216: number; + @Link link_num1217: number; + @Link link_num1218: number; + @Link link_num1219: number; + @Link link_num1220: number; + @Link link_num1221: number; + @Link link_num1222: number; + @Link link_num1223: number; + @Link link_num1224: number; + @Link link_num1225: number; + @Link link_num1226: number; + @Link link_num1227: number; + @Link link_num1228: number; + @Link link_num1229: number; + @Link link_num1230: number; + @Link link_num1231: number; + @Link link_num1232: number; + @Link link_num1233: number; + @Link link_num1234: number; + @Link link_num1235: number; + @Link link_num1236: number; + @Link link_num1237: number; + @Link link_num1238: number; + @Link link_num1239: number; + @Link link_num1240: number; + @Link link_num1241: number; + @Link link_num1242: number; + @Link link_num1243: number; + @Link link_num1244: number; + @Link link_num1245: number; + @Link link_num1246: number; + @Link link_num1247: number; + @Link link_num1248: number; + @Link link_num1249: number; + @Link link_num1250: number; + @Link link_num1251: number; + @Link link_num1252: number; + @Link link_num1253: number; + @Link link_num1254: number; + @Link link_num1255: number; + @Link link_num1256: number; + @Link link_num1257: number; + @Link link_num1258: number; + @Link link_num1259: number; + @Link link_num1260: number; + @Link link_num1261: number; + @Link link_num1262: number; + @Link link_num1263: number; + @Link link_num1264: number; + @Link link_num1265: number; + @Link link_num1266: number; + @Link link_num1267: number; + @Link link_num1268: number; + @Link link_num1269: number; + @Link link_num1270: number; + @Link link_num1271: number; + @Link link_num1272: number; + @Link link_num1273: number; + @Link link_num1274: number; + @Link link_num1275: number; + @Link link_num1276: number; + @Link link_num1277: number; + @Link link_num1278: number; + @Link link_num1279: number; + @Link link_num1280: number; + @Link link_num1281: number; + @Link link_num1282: number; + @Link link_num1283: number; + @Link link_num1284: number; + @Link link_num1285: number; + @Link link_num1286: number; + @Link link_num1287: number; + @Link link_num1288: number; + @Link link_num1289: number; + @Link link_num1290: number; + @Link link_num1291: number; + @Link link_num1292: number; + @Link link_num1293: number; + @Link link_num1294: number; + @Link link_num1295: number; + @Link link_num1296: number; + @Link link_num1297: number; + @Link link_num1298: number; + @Link link_num1299: number; + @Link link_num1300: number; + @Link link_num1301: number; + @Link link_num1302: number; + @Link link_num1303: number; + @Link link_num1304: number; + @Link link_num1305: number; + @Link link_num1306: number; + @Link link_num1307: number; + @Link link_num1308: number; + @Link link_num1309: number; + @Link link_num1310: number; + @Link link_num1311: number; + @Link link_num1312: number; + @Link link_num1313: number; + @Link link_num1314: number; + @Link link_num1315: number; + @Link link_num1316: number; + @Link link_num1317: number; + @Link link_num1318: number; + @Link link_num1319: number; + @Link link_num1320: number; + @Link link_num1321: number; + @Link link_num1322: number; + @Link link_num1323: number; + @Link link_num1324: number; + @Link link_num1325: number; + @Link link_num1326: number; + @Link link_num1327: number; + @Link link_num1328: number; + @Link link_num1329: number; + @Link link_num1330: number; + @Link link_num1331: number; + @Link link_num1332: number; + @Link link_num1333: number; + @Link link_num1334: number; + @Link link_num1335: number; + @Link link_num1336: number; + @Link link_num1337: number; + @Link link_num1338: number; + @Link link_num1339: number; + @Link link_num1340: number; + @Link link_num1341: number; + @Link link_num1342: number; + @Link link_num1343: number; + @Link link_num1344: number; + @Link link_num1345: number; + @Link link_num1346: number; + @Link link_num1347: number; + @Link link_num1348: number; + @Link link_num1349: number; + @Link link_num1350: number; + @Link link_num1351: number; + @Link link_num1352: number; + @Link link_num1353: number; + @Link link_num1354: number; + @Link link_num1355: number; + @Link link_num1356: number; + @Link link_num1357: number; + @Link link_num1358: number; + @Link link_num1359: number; + @Link link_num1360: number; + @Link link_num1361: number; + @Link link_num1362: number; + @Link link_num1363: number; + @Link link_num1364: number; + @Link link_num1365: number; + @Link link_num1366: number; + @Link link_num1367: number; + @Link link_num1368: number; + @Link link_num1369: number; + @Link link_num1370: number; + @Link link_num1371: number; + @Link link_num1372: number; + @Link link_num1373: number; + @Link link_num1374: number; + @Link link_num1375: number; + @Link link_num1376: number; + @Link link_num1377: number; + @Link link_num1378: number; + @Link link_num1379: number; + @Link link_num1380: number; + @Link link_num1381: number; + @Link link_num1382: number; + @Link link_num1383: number; + @Link link_num1384: number; + @Link link_num1385: number; + @Link link_num1386: number; + @Link link_num1387: number; + @Link link_num1388: number; + @Link link_num1389: number; + @Link link_num1390: number; + @Link link_num1391: number; + @Link link_num1392: number; + @Link link_num1393: number; + @Link link_num1394: number; + @Link link_num1395: number; + @Link link_num1396: number; + @Link link_num1397: number; + @Link link_num1398: number; + @Link link_num1399: number; + @Link link_num1400: number; + @Link link_num1401: number; + @Link link_num1402: number; + @Link link_num1403: number; + @Link link_num1404: number; + @Link link_num1405: number; + @Link link_num1406: number; + @Link link_num1407: number; + @Link link_num1408: number; + @Link link_num1409: number; + @Link link_num1410: number; + @Link link_num1411: number; + @Link link_num1412: number; + @Link link_num1413: number; + @Link link_num1414: number; + @Link link_num1415: number; + @Link link_num1416: number; + @Link link_num1417: number; + @Link link_num1418: number; + @Link link_num1419: number; + @Link link_num1420: number; + @Link link_num1421: number; + @Link link_num1422: number; + @Link link_num1423: number; + @Link link_num1424: number; + @Link link_num1425: number; + @Link link_num1426: number; + @Link link_num1427: number; + @Link link_num1428: number; + @Link link_num1429: number; + @Link link_num1430: number; + @Link link_num1431: number; + @Link link_num1432: number; + @Link link_num1433: number; + @Link link_num1434: number; + @Link link_num1435: number; + @Link link_num1436: number; + @Link link_num1437: number; + @Link link_num1438: number; + @Link link_num1439: number; + @Link link_num1440: number; + @Link link_num1441: number; + @Link link_num1442: number; + @Link link_num1443: number; + @Link link_num1444: number; + @Link link_num1445: number; + @Link link_num1446: number; + @Link link_num1447: number; + @Link link_num1448: number; + @Link link_num1449: number; + @Link link_num1450: number; + @Link link_num1451: number; + @Link link_num1452: number; + @Link link_num1453: number; + @Link link_num1454: number; + @Link link_num1455: number; + @Link link_num1456: number; + @Link link_num1457: number; + @Link link_num1458: number; + @Link link_num1459: number; + @Link link_num1460: number; + @Link link_num1461: number; + @Link link_num1462: number; + @Link link_num1463: number; + @Link link_num1464: number; + @Link link_num1465: number; + @Link link_num1466: number; + @Link link_num1467: number; + @Link link_num1468: number; + @Link link_num1469: number; + @Link link_num1470: number; + @Link link_num1471: number; + @Link link_num1472: number; + @Link link_num1473: number; + @Link link_num1474: number; + @Link link_num1475: number; + @Link link_num1476: number; + @Link link_num1477: number; + @Link link_num1478: number; + @Link link_num1479: number; + @Link link_num1480: number; + @Link link_num1481: number; + @Link link_num1482: number; + @Link link_num1483: number; + @Link link_num1484: number; + @Link link_num1485: number; + @Link link_num1486: number; + @Link link_num1487: number; + @Link link_num1488: number; + @Link link_num1489: number; + @Link link_num1490: number; + @Link link_num1491: number; + @Link link_num1492: number; + @Link link_num1493: number; + @Link link_num1494: number; + @Link link_num1495: number; + @Link link_num1496: number; + @Link link_num1497: number; + @Link link_num1498: number; + @Link link_num1499: number; + @Link link_num1500: number; + @Link link_num1501: number; + @Link link_num1502: number; + @Link link_num1503: number; + @Link link_num1504: number; + @Link link_num1505: number; + @Link link_num1506: number; + @Link link_num1507: number; + @Link link_num1508: number; + @Link link_num1509: number; + @Link link_num1510: number; + @Link link_num1511: number; + @Link link_num1512: number; + @Link link_num1513: number; + @Link link_num1514: number; + @Link link_num1515: number; + @Link link_num1516: number; + @Link link_num1517: number; + @Link link_num1518: number; + @Link link_num1519: number; + @Link link_num1520: number; + @Link link_num1521: number; + @Link link_num1522: number; + @Link link_num1523: number; + @Link link_num1524: number; + @Link link_num1525: number; + @Link link_num1526: number; + @Link link_num1527: number; + @Link link_num1528: number; + @Link link_num1529: number; + @Link link_num1530: number; + @Link link_num1531: number; + @Link link_num1532: number; + @Link link_num1533: number; + @Link link_num1534: number; + @Link link_num1535: number; + @Link link_num1536: number; + @Link link_num1537: number; + @Link link_num1538: number; + @Link link_num1539: number; + @Link link_num1540: number; + @Link link_num1541: number; + @Link link_num1542: number; + @Link link_num1543: number; + @Link link_num1544: number; + @Link link_num1545: number; + @Link link_num1546: number; + @Link link_num1547: number; + @Link link_num1548: number; + @Link link_num1549: number; + @Link link_num1550: number; + @Link link_num1551: number; + @Link link_num1552: number; + @Link link_num1553: number; + @Link link_num1554: number; + @Link link_num1555: number; + @Link link_num1556: number; + @Link link_num1557: number; + @Link link_num1558: number; + @Link link_num1559: number; + @Link link_num1560: number; + @Link link_num1561: number; + @Link link_num1562: number; + @Link link_num1563: number; + @Link link_num1564: number; + @Link link_num1565: number; + @Link link_num1566: number; + @Link link_num1567: number; + @Link link_num1568: number; + @Link link_num1569: number; + @Link link_num1570: number; + @Link link_num1571: number; + @Link link_num1572: number; + @Link link_num1573: number; + @Link link_num1574: number; + @Link link_num1575: number; + @Link link_num1576: number; + @Link link_num1577: number; + @Link link_num1578: number; + @Link link_num1579: number; + @Link link_num1580: number; + @Link link_num1581: number; + @Link link_num1582: number; + @Link link_num1583: number; + @Link link_num1584: number; + @Link link_num1585: number; + @Link link_num1586: number; + @Link link_num1587: number; + @Link link_num1588: number; + @Link link_num1589: number; + @Link link_num1590: number; + @Link link_num1591: number; + @Link link_num1592: number; + @Link link_num1593: number; + @Link link_num1594: number; + @Link link_num1595: number; + @Link link_num1596: number; + @Link link_num1597: number; + @Link link_num1598: number; + @Link link_num1599: number; + @Link link_num1600: number; + @Link link_num1601: number; + @Link link_num1602: number; + @Link link_num1603: number; + @Link link_num1604: number; + @Link link_num1605: number; + @Link link_num1606: number; + @Link link_num1607: number; + @Link link_num1608: number; + @Link link_num1609: number; + @Link link_num1610: number; + @Link link_num1611: number; + @Link link_num1612: number; + @Link link_num1613: number; + @Link link_num1614: number; + @Link link_num1615: number; + @Link link_num1616: number; + @Link link_num1617: number; + @Link link_num1618: number; + @Link link_num1619: number; + @Link link_num1620: number; + @Link link_num1621: number; + @Link link_num1622: number; + @Link link_num1623: number; + @Link link_num1624: number; + @Link link_num1625: number; + @Link link_num1626: number; + @Link link_num1627: number; + @Link link_num1628: number; + @Link link_num1629: number; + @Link link_num1630: number; + @Link link_num1631: number; + @Link link_num1632: number; + @Link link_num1633: number; + @Link link_num1634: number; + @Link link_num1635: number; + @Link link_num1636: number; + @Link link_num1637: number; + @Link link_num1638: number; + @Link link_num1639: number; + @Link link_num1640: number; + @Link link_num1641: number; + @Link link_num1642: number; + @Link link_num1643: number; + @Link link_num1644: number; + @Link link_num1645: number; + @Link link_num1646: number; + @Link link_num1647: number; + @Link link_num1648: number; + @Link link_num1649: number; + @Link link_num1650: number; + @Link link_num1651: number; + @Link link_num1652: number; + @Link link_num1653: number; + @Link link_num1654: number; + @Link link_num1655: number; + @Link link_num1656: number; + @Link link_num1657: number; + @Link link_num1658: number; + @Link link_num1659: number; + @Link link_num1660: number; + @Link link_num1661: number; + @Link link_num1662: number; + @Link link_num1663: number; + @Link link_num1664: number; + @Link link_num1665: number; + @Link link_num1666: number; + @Link link_num1667: number; + @Link link_num1668: number; + @Link link_num1669: number; + @Link link_num1670: number; + @Link link_num1671: number; + @Link link_num1672: number; + @Link link_num1673: number; + @Link link_num1674: number; + @Link link_num1675: number; + @Link link_num1676: number; + @Link link_num1677: number; + @Link link_num1678: number; + @Link link_num1679: number; + @Link link_num1680: number; + @Link link_num1681: number; + @Link link_num1682: number; + @Link link_num1683: number; + @Link link_num1684: number; + @Link link_num1685: number; + @Link link_num1686: number; + @Link link_num1687: number; + @Link link_num1688: number; + @Link link_num1689: number; + @Link link_num1690: number; + @Link link_num1691: number; + @Link link_num1692: number; + @Link link_num1693: number; + @Link link_num1694: number; + @Link link_num1695: number; + @Link link_num1696: number; + @Link link_num1697: number; + @Link link_num1698: number; + @Link link_num1699: number; + @Link link_num1700: number; + @Link link_num1701: number; + @Link link_num1702: number; + @Link link_num1703: number; + @Link link_num1704: number; + @Link link_num1705: number; + @Link link_num1706: number; + @Link link_num1707: number; + @Link link_num1708: number; + @Link link_num1709: number; + @Link link_num1710: number; + @Link link_num1711: number; + @Link link_num1712: number; + @Link link_num1713: number; + @Link link_num1714: number; + @Link link_num1715: number; + @Link link_num1716: number; + @Link link_num1717: number; + @Link link_num1718: number; + @Link link_num1719: number; + @Link link_num1720: number; + @Link link_num1721: number; + @Link link_num1722: number; + @Link link_num1723: number; + @Link link_num1724: number; + @Link link_num1725: number; + @Link link_num1726: number; + @Link link_num1727: number; + @Link link_num1728: number; + @Link link_num1729: number; + @Link link_num1730: number; + @Link link_num1731: number; + @Link link_num1732: number; + @Link link_num1733: number; + @Link link_num1734: number; + @Link link_num1735: number; + @Link link_num1736: number; + @Link link_num1737: number; + @Link link_num1738: number; + @Link link_num1739: number; + @Link link_num1740: number; + @Link link_num1741: number; + @Link link_num1742: number; + @Link link_num1743: number; + @Link link_num1744: number; + @Link link_num1745: number; + @Link link_num1746: number; + @Link link_num1747: number; + @Link link_num1748: number; + @Link link_num1749: number; + @Link link_num1750: number; + @Link link_num1751: number; + @Link link_num1752: number; + @Link link_num1753: number; + @Link link_num1754: number; + @Link link_num1755: number; + @Link link_num1756: number; + @Link link_num1757: number; + @Link link_num1758: number; + @Link link_num1759: number; + @Link link_num1760: number; + @Link link_num1761: number; + @Link link_num1762: number; + @Link link_num1763: number; + @Link link_num1764: number; + @Link link_num1765: number; + @Link link_num1766: number; + @Link link_num1767: number; + @Link link_num1768: number; + @Link link_num1769: number; + @Link link_num1770: number; + @Link link_num1771: number; + @Link link_num1772: number; + @Link link_num1773: number; + @Link link_num1774: number; + @Link link_num1775: number; + @Link link_num1776: number; + @Link link_num1777: number; + @Link link_num1778: number; + @Link link_num1779: number; + @Link link_num1780: number; + @Link link_num1781: number; + @Link link_num1782: number; + @Link link_num1783: number; + @Link link_num1784: number; + @Link link_num1785: number; + @Link link_num1786: number; + @Link link_num1787: number; + @Link link_num1788: number; + @Link link_num1789: number; + @Link link_num1790: number; + @Link link_num1791: number; + @Link link_num1792: number; + @Link link_num1793: number; + @Link link_num1794: number; + @Link link_num1795: number; + @Link link_num1796: number; + @Link link_num1797: number; + @Link link_num1798: number; + @Link link_num1799: number; + @Link link_num1800: number; + @Link link_num1801: number; + @Link link_num1802: number; + @Link link_num1803: number; + @Link link_num1804: number; + @Link link_num1805: number; + @Link link_num1806: number; + @Link link_num1807: number; + @Link link_num1808: number; + @Link link_num1809: number; + @Link link_num1810: number; + @Link link_num1811: number; + @Link link_num1812: number; + @Link link_num1813: number; + @Link link_num1814: number; + @Link link_num1815: number; + @Link link_num1816: number; + @Link link_num1817: number; + + + //============================================================================= + + build() { + Column() { + Button('Click Me') + .onClick((e: ClickEvent) => { + this.link_num0++; + this.link_num1++; + this.link_num2++; + this.link_num3++; + this.link_num4++; + this.link_num5++; + this.link_num6++; + this.link_num7++; + this.link_num8++; + this.link_num9++; + this.link_num10++; + this.link_num11++; + this.link_num12++; + this.link_num13++; + this.link_num14++; + this.link_num15++; + this.link_num16++; + this.link_num17++; + this.link_num18++; + this.link_num19++; + this.link_num20++; + this.link_num21++; + this.link_num22++; + this.link_num23++; + this.link_num24++; + this.link_num25++; + this.link_num26++; + this.link_num27++; + this.link_num28++; + this.link_num29++; + this.link_num30++; + this.link_num31++; + this.link_num32++; + this.link_num33++; + this.link_num34++; + this.link_num35++; + this.link_num36++; + this.link_num37++; + this.link_num38++; + this.link_num39++; + this.link_num40++; + this.link_num41++; + this.link_num42++; + this.link_num43++; + this.link_num44++; + this.link_num45++; + this.link_num46++; + this.link_num47++; + this.link_num48++; + this.link_num49++; + this.link_num50++; + this.link_num51++; + this.link_num52++; + this.link_num53++; + this.link_num54++; + this.link_num55++; + this.link_num56++; + this.link_num57++; + this.link_num58++; + this.link_num59++; + this.link_num60++; + this.link_num61++; + this.link_num62++; + this.link_num63++; + this.link_num64++; + this.link_num65++; + this.link_num66++; + this.link_num67++; + this.link_num68++; + this.link_num69++; + this.link_num70++; + this.link_num71++; + this.link_num72++; + this.link_num73++; + this.link_num74++; + this.link_num75++; + this.link_num76++; + this.link_num77++; + this.link_num78++; + this.link_num79++; + this.link_num80++; + this.link_num81++; + this.link_num82++; + this.link_num83++; + this.link_num84++; + this.link_num85++; + this.link_num86++; + this.link_num87++; + this.link_num88++; + this.link_num89++; + this.link_num90++; + this.link_num91++; + this.link_num92++; + this.link_num93++; + this.link_num94++; + this.link_num95++; + this.link_num96++; + this.link_num97++; + this.link_num98++; + this.link_num99++; + this.link_num100++; + this.link_num101++; + this.link_num102++; + this.link_num103++; + this.link_num104++; + this.link_num105++; + this.link_num106++; + this.link_num107++; + this.link_num108++; + this.link_num109++; + this.link_num110++; + this.link_num111++; + this.link_num112++; + this.link_num113++; + this.link_num114++; + this.link_num115++; + this.link_num116++; + this.link_num117++; + this.link_num118++; + this.link_num119++; + this.link_num120++; + this.link_num121++; + this.link_num122++; + this.link_num123++; + this.link_num124++; + this.link_num125++; + this.link_num126++; + this.link_num127++; + this.link_num128++; + this.link_num129++; + this.link_num130++; + this.link_num131++; + this.link_num132++; + this.link_num133++; + this.link_num134++; + this.link_num135++; + this.link_num136++; + this.link_num137++; + this.link_num138++; + this.link_num139++; + this.link_num140++; + this.link_num141++; + this.link_num142++; + this.link_num143++; + this.link_num144++; + this.link_num145++; + this.link_num146++; + this.link_num147++; + this.link_num148++; + this.link_num149++; + this.link_num150++; + this.link_num151++; + this.link_num152++; + this.link_num153++; + this.link_num154++; + this.link_num155++; + this.link_num156++; + this.link_num157++; + this.link_num158++; + this.link_num159++; + this.link_num160++; + this.link_num161++; + this.link_num162++; + this.link_num163++; + this.link_num164++; + this.link_num165++; + this.link_num166++; + this.link_num167++; + this.link_num168++; + this.link_num169++; + this.link_num170++; + this.link_num171++; + this.link_num172++; + this.link_num173++; + this.link_num174++; + this.link_num175++; + this.link_num176++; + this.link_num177++; + this.link_num178++; + this.link_num179++; + this.link_num180++; + this.link_num181++; + this.link_num182++; + this.link_num183++; + this.link_num184++; + this.link_num185++; + this.link_num186++; + this.link_num187++; + this.link_num188++; + this.link_num189++; + this.link_num190++; + this.link_num191++; + this.link_num192++; + this.link_num193++; + this.link_num194++; + this.link_num195++; + this.link_num196++; + this.link_num197++; + this.link_num198++; + this.link_num199++; + this.link_num200++; + this.link_num201++; + this.link_num202++; + this.link_num203++; + this.link_num204++; + this.link_num205++; + this.link_num206++; + this.link_num207++; + this.link_num208++; + this.link_num209++; + this.link_num210++; + this.link_num211++; + this.link_num212++; + this.link_num213++; + this.link_num214++; + this.link_num215++; + this.link_num216++; + this.link_num217++; + this.link_num218++; + this.link_num219++; + this.link_num220++; + this.link_num221++; + this.link_num222++; + this.link_num223++; + this.link_num224++; + this.link_num225++; + this.link_num226++; + this.link_num227++; + this.link_num228++; + this.link_num229++; + this.link_num230++; + this.link_num231++; + this.link_num232++; + this.link_num233++; + this.link_num234++; + this.link_num235++; + this.link_num236++; + this.link_num237++; + this.link_num238++; + this.link_num239++; + this.link_num240++; + this.link_num241++; + this.link_num242++; + this.link_num243++; + this.link_num244++; + this.link_num245++; + this.link_num246++; + this.link_num247++; + this.link_num248++; + this.link_num249++; + this.link_num250++; + this.link_num251++; + this.link_num252++; + this.link_num253++; + this.link_num254++; + this.link_num255++; + this.link_num256++; + this.link_num257++; + this.link_num258++; + this.link_num259++; + this.link_num260++; + this.link_num261++; + this.link_num262++; + this.link_num263++; + this.link_num264++; + this.link_num265++; + this.link_num266++; + this.link_num267++; + this.link_num268++; + this.link_num269++; + this.link_num270++; + this.link_num271++; + this.link_num272++; + this.link_num273++; + this.link_num274++; + this.link_num275++; + this.link_num276++; + this.link_num277++; + this.link_num278++; + this.link_num279++; + this.link_num280++; + this.link_num281++; + this.link_num282++; + this.link_num283++; + this.link_num284++; + this.link_num285++; + this.link_num286++; + this.link_num287++; + this.link_num288++; + this.link_num289++; + this.link_num290++; + this.link_num291++; + this.link_num292++; + this.link_num293++; + this.link_num294++; + this.link_num295++; + this.link_num296++; + this.link_num297++; + this.link_num298++; + this.link_num299++; + this.link_num300++; + this.link_num301++; + this.link_num302++; + this.link_num303++; + this.link_num304++; + this.link_num305++; + this.link_num306++; + this.link_num307++; + this.link_num308++; + this.link_num309++; + this.link_num310++; + this.link_num311++; + this.link_num312++; + this.link_num313++; + this.link_num314++; + this.link_num315++; + this.link_num316++; + this.link_num317++; + this.link_num318++; + this.link_num319++; + this.link_num320++; + this.link_num321++; + this.link_num322++; + this.link_num323++; + this.link_num324++; + this.link_num325++; + this.link_num326++; + this.link_num327++; + this.link_num328++; + this.link_num329++; + this.link_num330++; + this.link_num331++; + this.link_num332++; + this.link_num333++; + this.link_num334++; + this.link_num335++; + this.link_num336++; + this.link_num337++; + this.link_num338++; + this.link_num339++; + this.link_num340++; + this.link_num341++; + this.link_num342++; + this.link_num343++; + this.link_num344++; + this.link_num345++; + this.link_num346++; + this.link_num347++; + this.link_num348++; + this.link_num349++; + this.link_num350++; + this.link_num351++; + this.link_num352++; + this.link_num353++; + this.link_num354++; + this.link_num355++; + this.link_num356++; + this.link_num357++; + this.link_num358++; + this.link_num359++; + this.link_num360++; + this.link_num361++; + this.link_num362++; + this.link_num363++; + this.link_num364++; + this.link_num365++; + this.link_num366++; + this.link_num367++; + this.link_num368++; + this.link_num369++; + this.link_num370++; + this.link_num371++; + this.link_num372++; + this.link_num373++; + this.link_num374++; + this.link_num375++; + this.link_num376++; + this.link_num377++; + this.link_num378++; + this.link_num379++; + this.link_num380++; + this.link_num381++; + this.link_num382++; + this.link_num383++; + this.link_num384++; + this.link_num385++; + this.link_num386++; + this.link_num387++; + this.link_num388++; + this.link_num389++; + this.link_num390++; + this.link_num391++; + this.link_num392++; + this.link_num393++; + this.link_num394++; + this.link_num395++; + this.link_num396++; + this.link_num397++; + this.link_num398++; + this.link_num399++; + this.link_num400++; + this.link_num401++; + this.link_num402++; + this.link_num403++; + this.link_num404++; + this.link_num405++; + this.link_num406++; + this.link_num407++; + this.link_num408++; + this.link_num409++; + this.link_num410++; + this.link_num411++; + this.link_num412++; + this.link_num413++; + this.link_num414++; + this.link_num415++; + this.link_num416++; + this.link_num417++; + this.link_num418++; + this.link_num419++; + this.link_num420++; + this.link_num421++; + this.link_num422++; + this.link_num423++; + this.link_num424++; + this.link_num425++; + this.link_num426++; + this.link_num427++; + this.link_num428++; + this.link_num429++; + this.link_num430++; + this.link_num431++; + this.link_num432++; + this.link_num433++; + this.link_num434++; + this.link_num435++; + this.link_num436++; + this.link_num437++; + this.link_num438++; + this.link_num439++; + this.link_num440++; + this.link_num441++; + this.link_num442++; + this.link_num443++; + this.link_num444++; + this.link_num445++; + this.link_num446++; + this.link_num447++; + this.link_num448++; + this.link_num449++; + this.link_num450++; + this.link_num451++; + this.link_num452++; + this.link_num453++; + this.link_num454++; + this.link_num455++; + this.link_num456++; + this.link_num457++; + this.link_num458++; + this.link_num459++; + this.link_num460++; + this.link_num461++; + this.link_num462++; + this.link_num463++; + this.link_num464++; + this.link_num465++; + this.link_num466++; + this.link_num467++; + this.link_num468++; + this.link_num469++; + this.link_num470++; + this.link_num471++; + this.link_num472++; + this.link_num473++; + this.link_num474++; + this.link_num475++; + this.link_num476++; + this.link_num477++; + this.link_num478++; + this.link_num479++; + this.link_num480++; + this.link_num481++; + this.link_num482++; + this.link_num483++; + this.link_num484++; + this.link_num485++; + this.link_num486++; + this.link_num487++; + this.link_num488++; + this.link_num489++; + this.link_num490++; + this.link_num491++; + this.link_num492++; + this.link_num493++; + this.link_num494++; + this.link_num495++; + this.link_num496++; + this.link_num497++; + this.link_num498++; + this.link_num499++; + this.link_num500++; + this.link_num501++; + this.link_num502++; + this.link_num503++; + this.link_num504++; + this.link_num505++; + this.link_num506++; + this.link_num507++; + this.link_num508++; + this.link_num509++; + this.link_num510++; + this.link_num511++; + this.link_num512++; + this.link_num513++; + this.link_num514++; + this.link_num515++; + this.link_num516++; + this.link_num517++; + this.link_num518++; + this.link_num519++; + this.link_num520++; + this.link_num521++; + this.link_num522++; + this.link_num523++; + this.link_num524++; + this.link_num525++; + this.link_num526++; + this.link_num527++; + this.link_num528++; + this.link_num529++; + this.link_num530++; + this.link_num531++; + this.link_num532++; + this.link_num533++; + this.link_num534++; + this.link_num535++; + this.link_num536++; + this.link_num537++; + this.link_num538++; + this.link_num539++; + this.link_num540++; + this.link_num541++; + this.link_num542++; + this.link_num543++; + this.link_num544++; + this.link_num545++; + this.link_num546++; + this.link_num547++; + this.link_num548++; + this.link_num549++; + this.link_num550++; + this.link_num551++; + this.link_num552++; + this.link_num553++; + this.link_num554++; + this.link_num555++; + this.link_num556++; + this.link_num557++; + this.link_num558++; + this.link_num559++; + this.link_num560++; + this.link_num561++; + this.link_num562++; + this.link_num563++; + this.link_num564++; + this.link_num565++; + this.link_num566++; + this.link_num567++; + this.link_num568++; + this.link_num569++; + this.link_num570++; + this.link_num571++; + this.link_num572++; + this.link_num573++; + this.link_num574++; + this.link_num575++; + this.link_num576++; + this.link_num577++; + this.link_num578++; + this.link_num579++; + this.link_num580++; + this.link_num581++; + this.link_num582++; + this.link_num583++; + this.link_num584++; + this.link_num585++; + this.link_num586++; + this.link_num587++; + this.link_num588++; + this.link_num589++; + this.link_num590++; + this.link_num591++; + this.link_num592++; + this.link_num593++; + this.link_num594++; + this.link_num595++; + this.link_num596++; + this.link_num597++; + this.link_num598++; + this.link_num599++; + this.link_num600++; + this.link_num601++; + this.link_num602++; + this.link_num603++; + this.link_num604++; + this.link_num605++; + this.link_num606++; + this.link_num607++; + this.link_num608++; + this.link_num609++; + this.link_num610++; + this.link_num611++; + this.link_num612++; + this.link_num613++; + this.link_num614++; + this.link_num615++; + this.link_num616++; + this.link_num617++; + this.link_num618++; + this.link_num619++; + this.link_num620++; + this.link_num621++; + this.link_num622++; + this.link_num623++; + this.link_num624++; + this.link_num625++; + this.link_num626++; + this.link_num627++; + this.link_num628++; + this.link_num629++; + this.link_num630++; + this.link_num631++; + this.link_num632++; + this.link_num633++; + this.link_num634++; + this.link_num635++; + this.link_num636++; + this.link_num637++; + this.link_num638++; + this.link_num639++; + this.link_num640++; + this.link_num641++; + this.link_num642++; + this.link_num643++; + this.link_num644++; + this.link_num645++; + this.link_num646++; + this.link_num647++; + this.link_num648++; + this.link_num649++; + this.link_num650++; + this.link_num651++; + this.link_num652++; + this.link_num653++; + this.link_num654++; + this.link_num655++; + this.link_num656++; + this.link_num657++; + this.link_num658++; + this.link_num659++; + this.link_num660++; + this.link_num661++; + this.link_num662++; + this.link_num663++; + this.link_num664++; + this.link_num665++; + this.link_num666++; + this.link_num667++; + this.link_num668++; + this.link_num669++; + this.link_num670++; + this.link_num671++; + this.link_num672++; + this.link_num673++; + this.link_num674++; + this.link_num675++; + this.link_num676++; + this.link_num677++; + this.link_num678++; + this.link_num679++; + this.link_num680++; + this.link_num681++; + this.link_num682++; + this.link_num683++; + this.link_num684++; + this.link_num685++; + this.link_num686++; + this.link_num687++; + this.link_num688++; + this.link_num689++; + this.link_num690++; + this.link_num691++; + this.link_num692++; + this.link_num693++; + this.link_num694++; + this.link_num695++; + this.link_num696++; + this.link_num697++; + this.link_num698++; + this.link_num699++; + this.link_num700++; + this.link_num701++; + this.link_num702++; + this.link_num703++; + this.link_num704++; + this.link_num705++; + this.link_num706++; + this.link_num707++; + this.link_num708++; + this.link_num709++; + this.link_num710++; + this.link_num711++; + this.link_num712++; + this.link_num713++; + this.link_num714++; + this.link_num715++; + this.link_num716++; + this.link_num717++; + this.link_num718++; + this.link_num719++; + this.link_num720++; + this.link_num721++; + this.link_num722++; + this.link_num723++; + this.link_num724++; + this.link_num725++; + this.link_num726++; + this.link_num727++; + this.link_num728++; + this.link_num729++; + this.link_num730++; + this.link_num731++; + this.link_num732++; + this.link_num733++; + this.link_num734++; + this.link_num735++; + this.link_num736++; + this.link_num737++; + this.link_num738++; + this.link_num739++; + this.link_num740++; + this.link_num741++; + this.link_num742++; + this.link_num743++; + this.link_num744++; + this.link_num745++; + this.link_num746++; + this.link_num747++; + this.link_num748++; + this.link_num749++; + this.link_num750++; + this.link_num751++; + this.link_num752++; + this.link_num753++; + this.link_num754++; + this.link_num755++; + this.link_num756++; + this.link_num757++; + this.link_num758++; + this.link_num759++; + this.link_num760++; + this.link_num761++; + this.link_num762++; + this.link_num763++; + this.link_num764++; + this.link_num765++; + this.link_num766++; + this.link_num767++; + this.link_num768++; + this.link_num769++; + this.link_num770++; + this.link_num771++; + this.link_num772++; + this.link_num773++; + this.link_num774++; + this.link_num775++; + this.link_num776++; + this.link_num777++; + this.link_num778++; + this.link_num779++; + this.link_num780++; + this.link_num781++; + this.link_num782++; + this.link_num783++; + this.link_num784++; + this.link_num785++; + this.link_num786++; + this.link_num787++; + this.link_num788++; + this.link_num789++; + this.link_num790++; + this.link_num791++; + this.link_num792++; + this.link_num793++; + this.link_num794++; + this.link_num795++; + this.link_num796++; + this.link_num797++; + this.link_num798++; + this.link_num799++; + this.link_num800++; + this.link_num801++; + this.link_num802++; + this.link_num803++; + this.link_num804++; + this.link_num805++; + this.link_num806++; + this.link_num807++; + this.link_num808++; + this.link_num809++; + this.link_num810++; + this.link_num811++; + this.link_num812++; + this.link_num813++; + this.link_num814++; + this.link_num815++; + this.link_num816++; + this.link_num817++; + this.link_num818++; + this.link_num819++; + this.link_num820++; + this.link_num821++; + this.link_num822++; + this.link_num823++; + this.link_num824++; + this.link_num825++; + this.link_num826++; + this.link_num827++; + this.link_num828++; + this.link_num829++; + this.link_num830++; + this.link_num831++; + this.link_num832++; + this.link_num833++; + this.link_num834++; + this.link_num835++; + this.link_num836++; + this.link_num837++; + this.link_num838++; + this.link_num839++; + this.link_num840++; + this.link_num841++; + this.link_num842++; + this.link_num843++; + this.link_num844++; + this.link_num845++; + this.link_num846++; + this.link_num847++; + this.link_num848++; + this.link_num849++; + this.link_num850++; + this.link_num851++; + this.link_num852++; + this.link_num853++; + this.link_num854++; + this.link_num855++; + this.link_num856++; + this.link_num857++; + this.link_num858++; + this.link_num859++; + this.link_num860++; + this.link_num861++; + this.link_num862++; + this.link_num863++; + this.link_num864++; + this.link_num865++; + this.link_num866++; + this.link_num867++; + this.link_num868++; + this.link_num869++; + this.link_num870++; + this.link_num871++; + this.link_num872++; + this.link_num873++; + this.link_num874++; + this.link_num875++; + this.link_num876++; + this.link_num877++; + this.link_num878++; + this.link_num879++; + this.link_num880++; + this.link_num881++; + this.link_num882++; + this.link_num883++; + this.link_num884++; + this.link_num885++; + this.link_num886++; + this.link_num887++; + this.link_num888++; + this.link_num889++; + this.link_num890++; + this.link_num891++; + this.link_num892++; + this.link_num893++; + this.link_num894++; + this.link_num895++; + this.link_num896++; + this.link_num897++; + this.link_num898++; + this.link_num899++; + this.link_num900++; + this.link_num901++; + this.link_num902++; + this.link_num903++; + this.link_num904++; + this.link_num905++; + this.link_num906++; + this.link_num907++; + this.link_num908++; + this.link_num909++; + this.link_num910++; + this.link_num911++; + this.link_num912++; + this.link_num913++; + this.link_num914++; + this.link_num915++; + this.link_num916++; + this.link_num917++; + this.link_num918++; + this.link_num919++; + this.link_num920++; + this.link_num921++; + this.link_num922++; + this.link_num923++; + this.link_num924++; + this.link_num925++; + this.link_num926++; + this.link_num927++; + this.link_num928++; + this.link_num929++; + this.link_num930++; + this.link_num931++; + this.link_num932++; + this.link_num933++; + this.link_num934++; + this.link_num935++; + this.link_num936++; + this.link_num937++; + this.link_num938++; + this.link_num939++; + this.link_num940++; + this.link_num941++; + this.link_num942++; + this.link_num943++; + this.link_num944++; + this.link_num945++; + this.link_num946++; + this.link_num947++; + this.link_num948++; + this.link_num949++; + this.link_num950++; + this.link_num951++; + this.link_num952++; + this.link_num953++; + this.link_num954++; + this.link_num955++; + this.link_num956++; + this.link_num957++; + this.link_num958++; + this.link_num959++; + this.link_num960++; + this.link_num961++; + this.link_num962++; + this.link_num963++; + this.link_num964++; + this.link_num965++; + this.link_num966++; + this.link_num967++; + this.link_num968++; + this.link_num969++; + this.link_num970++; + this.link_num971++; + this.link_num972++; + this.link_num973++; + this.link_num974++; + this.link_num975++; + this.link_num976++; + this.link_num977++; + this.link_num978++; + this.link_num979++; + this.link_num980++; + this.link_num981++; + this.link_num982++; + this.link_num983++; + this.link_num984++; + this.link_num985++; + this.link_num986++; + this.link_num987++; + this.link_num988++; + this.link_num989++; + this.link_num990++; + this.link_num991++; + this.link_num992++; + this.link_num993++; + this.link_num994++; + this.link_num995++; + this.link_num996++; + this.link_num997++; + this.link_num998++; + this.link_num999++; + this.link_num1000++; + this.link_num1001++; + this.link_num1002++; + this.link_num1003++; + this.link_num1004++; + this.link_num1005++; + this.link_num1006++; + this.link_num1007++; + this.link_num1008++; + this.link_num1009++; + this.link_num1010++; + this.link_num1011++; + this.link_num1012++; + this.link_num1013++; + this.link_num1014++; + this.link_num1015++; + this.link_num1016++; + this.link_num1017++; + this.link_num1018++; + this.link_num1019++; + this.link_num1020++; + this.link_num1021++; + this.link_num1022++; + this.link_num1023++; + this.link_num1024++; + this.link_num1025++; + this.link_num1026++; + this.link_num1027++; + this.link_num1028++; + this.link_num1029++; + this.link_num1030++; + this.link_num1031++; + this.link_num1032++; + this.link_num1033++; + this.link_num1034++; + this.link_num1035++; + this.link_num1036++; + this.link_num1037++; + this.link_num1038++; + this.link_num1039++; + this.link_num1040++; + this.link_num1041++; + this.link_num1042++; + this.link_num1043++; + this.link_num1044++; + this.link_num1045++; + this.link_num1046++; + this.link_num1047++; + this.link_num1048++; + this.link_num1049++; + this.link_num1050++; + this.link_num1051++; + this.link_num1052++; + this.link_num1053++; + this.link_num1054++; + this.link_num1055++; + this.link_num1056++; + this.link_num1057++; + this.link_num1058++; + this.link_num1059++; + this.link_num1060++; + this.link_num1061++; + this.link_num1062++; + this.link_num1063++; + this.link_num1064++; + this.link_num1065++; + this.link_num1066++; + this.link_num1067++; + this.link_num1068++; + this.link_num1069++; + this.link_num1070++; + this.link_num1071++; + this.link_num1072++; + this.link_num1073++; + this.link_num1074++; + this.link_num1075++; + this.link_num1076++; + this.link_num1077++; + this.link_num1078++; + this.link_num1079++; + this.link_num1080++; + this.link_num1081++; + this.link_num1082++; + this.link_num1083++; + this.link_num1084++; + this.link_num1085++; + this.link_num1086++; + this.link_num1087++; + this.link_num1088++; + this.link_num1089++; + this.link_num1090++; + this.link_num1091++; + this.link_num1092++; + this.link_num1093++; + this.link_num1094++; + this.link_num1095++; + this.link_num1096++; + this.link_num1097++; + this.link_num1098++; + this.link_num1099++; + this.link_num1100++; + this.link_num1101++; + this.link_num1102++; + this.link_num1103++; + this.link_num1104++; + this.link_num1105++; + this.link_num1106++; + this.link_num1107++; + this.link_num1108++; + this.link_num1109++; + this.link_num1110++; + this.link_num1111++; + this.link_num1112++; + this.link_num1113++; + this.link_num1114++; + this.link_num1115++; + this.link_num1116++; + this.link_num1117++; + this.link_num1118++; + this.link_num1119++; + this.link_num1120++; + this.link_num1121++; + this.link_num1122++; + this.link_num1123++; + this.link_num1124++; + this.link_num1125++; + this.link_num1126++; + this.link_num1127++; + this.link_num1128++; + this.link_num1129++; + this.link_num1130++; + this.link_num1131++; + this.link_num1132++; + this.link_num1133++; + this.link_num1134++; + this.link_num1135++; + this.link_num1136++; + this.link_num1137++; + this.link_num1138++; + this.link_num1139++; + this.link_num1140++; + this.link_num1141++; + this.link_num1142++; + this.link_num1143++; + this.link_num1144++; + this.link_num1145++; + this.link_num1146++; + this.link_num1147++; + this.link_num1148++; + this.link_num1149++; + this.link_num1150++; + this.link_num1151++; + this.link_num1152++; + this.link_num1153++; + this.link_num1154++; + this.link_num1155++; + this.link_num1156++; + this.link_num1157++; + this.link_num1158++; + this.link_num1159++; + this.link_num1160++; + this.link_num1161++; + this.link_num1162++; + this.link_num1163++; + this.link_num1164++; + this.link_num1165++; + this.link_num1166++; + this.link_num1167++; + this.link_num1168++; + this.link_num1169++; + this.link_num1170++; + this.link_num1171++; + this.link_num1172++; + this.link_num1173++; + this.link_num1174++; + this.link_num1175++; + this.link_num1176++; + this.link_num1177++; + this.link_num1178++; + this.link_num1179++; + this.link_num1180++; + this.link_num1181++; + this.link_num1182++; + this.link_num1183++; + this.link_num1184++; + this.link_num1185++; + this.link_num1186++; + this.link_num1187++; + this.link_num1188++; + this.link_num1189++; + this.link_num1190++; + this.link_num1191++; + this.link_num1192++; + this.link_num1193++; + this.link_num1194++; + this.link_num1195++; + this.link_num1196++; + this.link_num1197++; + this.link_num1198++; + this.link_num1199++; + this.link_num1200++; + this.link_num1201++; + this.link_num1202++; + this.link_num1203++; + this.link_num1204++; + this.link_num1205++; + this.link_num1206++; + this.link_num1207++; + this.link_num1208++; + this.link_num1209++; + this.link_num1210++; + this.link_num1211++; + this.link_num1212++; + this.link_num1213++; + this.link_num1214++; + this.link_num1215++; + this.link_num1216++; + this.link_num1217++; + this.link_num1218++; + this.link_num1219++; + this.link_num1220++; + this.link_num1221++; + this.link_num1222++; + this.link_num1223++; + this.link_num1224++; + this.link_num1225++; + this.link_num1226++; + this.link_num1227++; + this.link_num1228++; + this.link_num1229++; + this.link_num1230++; + this.link_num1231++; + this.link_num1232++; + this.link_num1233++; + this.link_num1234++; + this.link_num1235++; + this.link_num1236++; + this.link_num1237++; + this.link_num1238++; + this.link_num1239++; + this.link_num1240++; + this.link_num1241++; + this.link_num1242++; + this.link_num1243++; + this.link_num1244++; + this.link_num1245++; + this.link_num1246++; + this.link_num1247++; + this.link_num1248++; + this.link_num1249++; + this.link_num1250++; + this.link_num1251++; + this.link_num1252++; + this.link_num1253++; + this.link_num1254++; + this.link_num1255++; + this.link_num1256++; + this.link_num1257++; + this.link_num1258++; + this.link_num1259++; + this.link_num1260++; + this.link_num1261++; + this.link_num1262++; + this.link_num1263++; + this.link_num1264++; + this.link_num1265++; + this.link_num1266++; + this.link_num1267++; + this.link_num1268++; + this.link_num1269++; + this.link_num1270++; + this.link_num1271++; + this.link_num1272++; + this.link_num1273++; + this.link_num1274++; + this.link_num1275++; + this.link_num1276++; + this.link_num1277++; + this.link_num1278++; + this.link_num1279++; + this.link_num1280++; + this.link_num1281++; + this.link_num1282++; + this.link_num1283++; + this.link_num1284++; + this.link_num1285++; + this.link_num1286++; + this.link_num1287++; + this.link_num1288++; + this.link_num1289++; + this.link_num1290++; + this.link_num1291++; + this.link_num1292++; + this.link_num1293++; + this.link_num1294++; + this.link_num1295++; + this.link_num1296++; + this.link_num1297++; + this.link_num1298++; + this.link_num1299++; + this.link_num1300++; + this.link_num1301++; + this.link_num1302++; + this.link_num1303++; + this.link_num1304++; + this.link_num1305++; + this.link_num1306++; + this.link_num1307++; + this.link_num1308++; + this.link_num1309++; + this.link_num1310++; + this.link_num1311++; + this.link_num1312++; + this.link_num1313++; + this.link_num1314++; + this.link_num1315++; + this.link_num1316++; + this.link_num1317++; + this.link_num1318++; + this.link_num1319++; + this.link_num1320++; + this.link_num1321++; + this.link_num1322++; + this.link_num1323++; + this.link_num1324++; + this.link_num1325++; + this.link_num1326++; + this.link_num1327++; + this.link_num1328++; + this.link_num1329++; + this.link_num1330++; + this.link_num1331++; + this.link_num1332++; + this.link_num1333++; + this.link_num1334++; + this.link_num1335++; + this.link_num1336++; + this.link_num1337++; + this.link_num1338++; + this.link_num1339++; + this.link_num1340++; + this.link_num1341++; + this.link_num1342++; + this.link_num1343++; + this.link_num1344++; + this.link_num1345++; + this.link_num1346++; + this.link_num1347++; + this.link_num1348++; + this.link_num1349++; + this.link_num1350++; + this.link_num1351++; + this.link_num1352++; + this.link_num1353++; + this.link_num1354++; + this.link_num1355++; + this.link_num1356++; + this.link_num1357++; + this.link_num1358++; + this.link_num1359++; + this.link_num1360++; + this.link_num1361++; + this.link_num1362++; + this.link_num1363++; + this.link_num1364++; + this.link_num1365++; + this.link_num1366++; + this.link_num1367++; + this.link_num1368++; + this.link_num1369++; + this.link_num1370++; + this.link_num1371++; + this.link_num1372++; + this.link_num1373++; + this.link_num1374++; + this.link_num1375++; + this.link_num1376++; + this.link_num1377++; + this.link_num1378++; + this.link_num1379++; + this.link_num1380++; + this.link_num1381++; + this.link_num1382++; + this.link_num1383++; + this.link_num1384++; + this.link_num1385++; + this.link_num1386++; + this.link_num1387++; + this.link_num1388++; + this.link_num1389++; + this.link_num1390++; + this.link_num1391++; + this.link_num1392++; + this.link_num1393++; + this.link_num1394++; + this.link_num1395++; + this.link_num1396++; + this.link_num1397++; + this.link_num1398++; + this.link_num1399++; + this.link_num1400++; + this.link_num1401++; + this.link_num1402++; + this.link_num1403++; + this.link_num1404++; + this.link_num1405++; + this.link_num1406++; + this.link_num1407++; + this.link_num1408++; + this.link_num1409++; + this.link_num1410++; + this.link_num1411++; + this.link_num1412++; + this.link_num1413++; + this.link_num1414++; + this.link_num1415++; + this.link_num1416++; + this.link_num1417++; + this.link_num1418++; + this.link_num1419++; + this.link_num1420++; + this.link_num1421++; + this.link_num1422++; + this.link_num1423++; + this.link_num1424++; + this.link_num1425++; + this.link_num1426++; + this.link_num1427++; + this.link_num1428++; + this.link_num1429++; + this.link_num1430++; + this.link_num1431++; + this.link_num1432++; + this.link_num1433++; + this.link_num1434++; + this.link_num1435++; + this.link_num1436++; + this.link_num1437++; + this.link_num1438++; + this.link_num1439++; + this.link_num1440++; + this.link_num1441++; + this.link_num1442++; + this.link_num1443++; + this.link_num1444++; + this.link_num1445++; + this.link_num1446++; + this.link_num1447++; + this.link_num1448++; + this.link_num1449++; + this.link_num1450++; + this.link_num1451++; + this.link_num1452++; + this.link_num1453++; + this.link_num1454++; + this.link_num1455++; + this.link_num1456++; + this.link_num1457++; + this.link_num1458++; + this.link_num1459++; + this.link_num1460++; + this.link_num1461++; + this.link_num1462++; + this.link_num1463++; + this.link_num1464++; + this.link_num1465++; + this.link_num1466++; + this.link_num1467++; + this.link_num1468++; + this.link_num1469++; + this.link_num1470++; + this.link_num1471++; + this.link_num1472++; + this.link_num1473++; + this.link_num1474++; + this.link_num1475++; + this.link_num1476++; + this.link_num1477++; + this.link_num1478++; + this.link_num1479++; + this.link_num1480++; + this.link_num1481++; + this.link_num1482++; + this.link_num1483++; + this.link_num1484++; + this.link_num1485++; + this.link_num1486++; + this.link_num1487++; + this.link_num1488++; + this.link_num1489++; + this.link_num1490++; + this.link_num1491++; + this.link_num1492++; + this.link_num1493++; + this.link_num1494++; + this.link_num1495++; + this.link_num1496++; + this.link_num1497++; + this.link_num1498++; + this.link_num1499++; + this.link_num1500++; + this.link_num1501++; + this.link_num1502++; + this.link_num1503++; + this.link_num1504++; + this.link_num1505++; + this.link_num1506++; + this.link_num1507++; + this.link_num1508++; + this.link_num1509++; + this.link_num1510++; + this.link_num1511++; + this.link_num1512++; + this.link_num1513++; + this.link_num1514++; + this.link_num1515++; + this.link_num1516++; + this.link_num1517++; + this.link_num1518++; + this.link_num1519++; + this.link_num1520++; + this.link_num1521++; + this.link_num1522++; + this.link_num1523++; + this.link_num1524++; + this.link_num1525++; + this.link_num1526++; + this.link_num1527++; + this.link_num1528++; + this.link_num1529++; + this.link_num1530++; + this.link_num1531++; + this.link_num1532++; + this.link_num1533++; + this.link_num1534++; + this.link_num1535++; + this.link_num1536++; + this.link_num1537++; + this.link_num1538++; + this.link_num1539++; + this.link_num1540++; + this.link_num1541++; + this.link_num1542++; + this.link_num1543++; + this.link_num1544++; + this.link_num1545++; + this.link_num1546++; + this.link_num1547++; + this.link_num1548++; + this.link_num1549++; + this.link_num1550++; + this.link_num1551++; + this.link_num1552++; + this.link_num1553++; + this.link_num1554++; + this.link_num1555++; + this.link_num1556++; + this.link_num1557++; + this.link_num1558++; + this.link_num1559++; + this.link_num1560++; + this.link_num1561++; + this.link_num1562++; + this.link_num1563++; + this.link_num1564++; + this.link_num1565++; + this.link_num1566++; + this.link_num1567++; + this.link_num1568++; + this.link_num1569++; + this.link_num1570++; + this.link_num1571++; + this.link_num1572++; + this.link_num1573++; + this.link_num1574++; + this.link_num1575++; + this.link_num1576++; + this.link_num1577++; + this.link_num1578++; + this.link_num1579++; + this.link_num1580++; + this.link_num1581++; + this.link_num1582++; + this.link_num1583++; + this.link_num1584++; + this.link_num1585++; + this.link_num1586++; + this.link_num1587++; + this.link_num1588++; + this.link_num1589++; + this.link_num1590++; + this.link_num1591++; + this.link_num1592++; + this.link_num1593++; + this.link_num1594++; + this.link_num1595++; + this.link_num1596++; + this.link_num1597++; + this.link_num1598++; + this.link_num1599++; + this.link_num1600++; + this.link_num1601++; + this.link_num1602++; + this.link_num1603++; + this.link_num1604++; + this.link_num1605++; + this.link_num1606++; + this.link_num1607++; + this.link_num1608++; + this.link_num1609++; + this.link_num1610++; + this.link_num1611++; + this.link_num1612++; + this.link_num1613++; + this.link_num1614++; + this.link_num1615++; + this.link_num1616++; + this.link_num1617++; + this.link_num1618++; + this.link_num1619++; + this.link_num1620++; + this.link_num1621++; + this.link_num1622++; + this.link_num1623++; + this.link_num1624++; + this.link_num1625++; + this.link_num1626++; + this.link_num1627++; + this.link_num1628++; + this.link_num1629++; + this.link_num1630++; + this.link_num1631++; + this.link_num1632++; + this.link_num1633++; + this.link_num1634++; + this.link_num1635++; + this.link_num1636++; + this.link_num1637++; + this.link_num1638++; + this.link_num1639++; + this.link_num1640++; + this.link_num1641++; + this.link_num1642++; + this.link_num1643++; + this.link_num1644++; + this.link_num1645++; + this.link_num1646++; + this.link_num1647++; + this.link_num1648++; + this.link_num1649++; + this.link_num1650++; + this.link_num1651++; + this.link_num1652++; + this.link_num1653++; + this.link_num1654++; + this.link_num1655++; + this.link_num1656++; + this.link_num1657++; + this.link_num1658++; + this.link_num1659++; + this.link_num1660++; + this.link_num1661++; + this.link_num1662++; + this.link_num1663++; + this.link_num1664++; + this.link_num1665++; + this.link_num1666++; + this.link_num1667++; + this.link_num1668++; + this.link_num1669++; + this.link_num1670++; + this.link_num1671++; + this.link_num1672++; + this.link_num1673++; + this.link_num1674++; + this.link_num1675++; + this.link_num1676++; + this.link_num1677++; + this.link_num1678++; + this.link_num1679++; + this.link_num1680++; + this.link_num1681++; + this.link_num1682++; + this.link_num1683++; + this.link_num1684++; + this.link_num1685++; + this.link_num1686++; + this.link_num1687++; + this.link_num1688++; + this.link_num1689++; + this.link_num1690++; + this.link_num1691++; + this.link_num1692++; + this.link_num1693++; + this.link_num1694++; + this.link_num1695++; + this.link_num1696++; + this.link_num1697++; + this.link_num1698++; + this.link_num1699++; + this.link_num1700++; + this.link_num1701++; + this.link_num1702++; + this.link_num1703++; + this.link_num1704++; + this.link_num1705++; + this.link_num1706++; + this.link_num1707++; + this.link_num1708++; + this.link_num1709++; + this.link_num1710++; + this.link_num1711++; + this.link_num1712++; + this.link_num1713++; + this.link_num1714++; + this.link_num1715++; + this.link_num1716++; + this.link_num1717++; + this.link_num1718++; + this.link_num1719++; + this.link_num1720++; + this.link_num1721++; + this.link_num1722++; + this.link_num1723++; + this.link_num1724++; + this.link_num1725++; + this.link_num1726++; + this.link_num1727++; + this.link_num1728++; + this.link_num1729++; + this.link_num1730++; + this.link_num1731++; + this.link_num1732++; + this.link_num1733++; + this.link_num1734++; + this.link_num1735++; + this.link_num1736++; + this.link_num1737++; + this.link_num1738++; + this.link_num1739++; + this.link_num1740++; + this.link_num1741++; + this.link_num1742++; + this.link_num1743++; + this.link_num1744++; + this.link_num1745++; + this.link_num1746++; + this.link_num1747++; + this.link_num1748++; + this.link_num1749++; + this.link_num1750++; + this.link_num1751++; + this.link_num1752++; + this.link_num1753++; + this.link_num1754++; + this.link_num1755++; + this.link_num1756++; + this.link_num1757++; + this.link_num1758++; + this.link_num1759++; + this.link_num1760++; + this.link_num1761++; + this.link_num1762++; + this.link_num1763++; + this.link_num1764++; + this.link_num1765++; + this.link_num1766++; + this.link_num1767++; + this.link_num1768++; + this.link_num1769++; + this.link_num1770++; + this.link_num1771++; + this.link_num1772++; + this.link_num1773++; + this.link_num1774++; + this.link_num1775++; + this.link_num1776++; + this.link_num1777++; + this.link_num1778++; + this.link_num1779++; + this.link_num1780++; + this.link_num1781++; + this.link_num1782++; + this.link_num1783++; + this.link_num1784++; + this.link_num1785++; + this.link_num1786++; + this.link_num1787++; + this.link_num1788++; + this.link_num1789++; + this.link_num1790++; + this.link_num1791++; + this.link_num1792++; + this.link_num1793++; + this.link_num1794++; + this.link_num1795++; + this.link_num1796++; + this.link_num1797++; + this.link_num1798++; + this.link_num1799++; + this.link_num1800++; + this.link_num1801++; + this.link_num1802++; + this.link_num1803++; + this.link_num1804++; + this.link_num1805++; + this.link_num1806++; + this.link_num1807++; + this.link_num1808++; + this.link_num1809++; + this.link_num1810++; + this.link_num1811++; + this.link_num1812++; + this.link_num1813++; + this.link_num1814++; + this.link_num1815++; + this.link_num1816++; + this.link_num1817++; + + }) + } + } +} + +@Component +struct ConsumeVariables { + @Consume consume_num0: number; + @Consume consume_num1: number; + @Consume consume_num2: number; + @Consume consume_num3: number; + @Consume consume_num4: number; + @Consume consume_num5: number; + @Consume consume_num6: number; + @Consume consume_num7: number; + @Consume consume_num8: number; + @Consume consume_num9: number; + @Consume consume_num10: number; + @Consume consume_num11: number; + @Consume consume_num12: number; + @Consume consume_num13: number; + @Consume consume_num14: number; + @Consume consume_num15: number; + @Consume consume_num16: number; + @Consume consume_num17: number; + @Consume consume_num18: number; + @Consume consume_num19: number; + @Consume consume_num20: number; + @Consume consume_num21: number; + @Consume consume_num22: number; + @Consume consume_num23: number; + @Consume consume_num24: number; + @Consume consume_num25: number; + @Consume consume_num26: number; + @Consume consume_num27: number; + @Consume consume_num28: number; + @Consume consume_num29: number; + @Consume consume_num30: number; + @Consume consume_num31: number; + @Consume consume_num32: number; + @Consume consume_num33: number; + @Consume consume_num34: number; + @Consume consume_num35: number; + @Consume consume_num36: number; + @Consume consume_num37: number; + @Consume consume_num38: number; + @Consume consume_num39: number; + @Consume consume_num40: number; + @Consume consume_num41: number; + @Consume consume_num42: number; + @Consume consume_num43: number; + @Consume consume_num44: number; + @Consume consume_num45: number; + @Consume consume_num46: number; + @Consume consume_num47: number; + @Consume consume_num48: number; + @Consume consume_num49: number; + @Consume consume_num50: number; + @Consume consume_num51: number; + @Consume consume_num52: number; + @Consume consume_num53: number; + @Consume consume_num54: number; + @Consume consume_num55: number; + @Consume consume_num56: number; + @Consume consume_num57: number; + @Consume consume_num58: number; + @Consume consume_num59: number; + @Consume consume_num60: number; + @Consume consume_num61: number; + @Consume consume_num62: number; + @Consume consume_num63: number; + @Consume consume_num64: number; + @Consume consume_num65: number; + @Consume consume_num66: number; + @Consume consume_num67: number; + @Consume consume_num68: number; + @Consume consume_num69: number; + @Consume consume_num70: number; + @Consume consume_num71: number; + @Consume consume_num72: number; + @Consume consume_num73: number; + @Consume consume_num74: number; + @Consume consume_num75: number; + @Consume consume_num76: number; + @Consume consume_num77: number; + @Consume consume_num78: number; + @Consume consume_num79: number; + @Consume consume_num80: number; + @Consume consume_num81: number; + @Consume consume_num82: number; + @Consume consume_num83: number; + @Consume consume_num84: number; + @Consume consume_num85: number; + @Consume consume_num86: number; + @Consume consume_num87: number; + @Consume consume_num88: number; + @Consume consume_num89: number; + @Consume consume_num90: number; + @Consume consume_num91: number; + @Consume consume_num92: number; + @Consume consume_num93: number; + @Consume consume_num94: number; + @Consume consume_num95: number; + @Consume consume_num96: number; + @Consume consume_num97: number; + @Consume consume_num98: number; + @Consume consume_num99: number; + @Consume consume_num100: number; + @Consume consume_num101: number; + @Consume consume_num102: number; + @Consume consume_num103: number; + @Consume consume_num104: number; + @Consume consume_num105: number; + @Consume consume_num106: number; + @Consume consume_num107: number; + @Consume consume_num108: number; + @Consume consume_num109: number; + @Consume consume_num110: number; + @Consume consume_num111: number; + @Consume consume_num112: number; + @Consume consume_num113: number; + @Consume consume_num114: number; + @Consume consume_num115: number; + @Consume consume_num116: number; + @Consume consume_num117: number; + @Consume consume_num118: number; + @Consume consume_num119: number; + @Consume consume_num120: number; + @Consume consume_num121: number; + @Consume consume_num122: number; + @Consume consume_num123: number; + @Consume consume_num124: number; + @Consume consume_num125: number; + @Consume consume_num126: number; + @Consume consume_num127: number; + @Consume consume_num128: number; + @Consume consume_num129: number; + @Consume consume_num130: number; + @Consume consume_num131: number; + @Consume consume_num132: number; + @Consume consume_num133: number; + @Consume consume_num134: number; + @Consume consume_num135: number; + @Consume consume_num136: number; + @Consume consume_num137: number; + @Consume consume_num138: number; + @Consume consume_num139: number; + @Consume consume_num140: number; + @Consume consume_num141: number; + @Consume consume_num142: number; + @Consume consume_num143: number; + @Consume consume_num144: number; + @Consume consume_num145: number; + @Consume consume_num146: number; + @Consume consume_num147: number; + @Consume consume_num148: number; + @Consume consume_num149: number; + @Consume consume_num150: number; + @Consume consume_num151: number; + @Consume consume_num152: number; + @Consume consume_num153: number; + @Consume consume_num154: number; + @Consume consume_num155: number; + @Consume consume_num156: number; + @Consume consume_num157: number; + @Consume consume_num158: number; + @Consume consume_num159: number; + @Consume consume_num160: number; + @Consume consume_num161: number; + @Consume consume_num162: number; + @Consume consume_num163: number; + @Consume consume_num164: number; + @Consume consume_num165: number; + @Consume consume_num166: number; + @Consume consume_num167: number; + @Consume consume_num168: number; + @Consume consume_num169: number; + @Consume consume_num170: number; + @Consume consume_num171: number; + @Consume consume_num172: number; + @Consume consume_num173: number; + @Consume consume_num174: number; + @Consume consume_num175: number; + @Consume consume_num176: number; + @Consume consume_num177: number; + @Consume consume_num178: number; + @Consume consume_num179: number; + @Consume consume_num180: number; + @Consume consume_num181: number; + @Consume consume_num182: number; + @Consume consume_num183: number; + @Consume consume_num184: number; + @Consume consume_num185: number; + @Consume consume_num186: number; + @Consume consume_num187: number; + @Consume consume_num188: number; + @Consume consume_num189: number; + @Consume consume_num190: number; + @Consume consume_num191: number; + @Consume consume_num192: number; + @Consume consume_num193: number; + @Consume consume_num194: number; + @Consume consume_num195: number; + @Consume consume_num196: number; + @Consume consume_num197: number; + @Consume consume_num198: number; + @Consume consume_num199: number; + @Consume consume_num200: number; + @Consume consume_num201: number; + @Consume consume_num202: number; + @Consume consume_num203: number; + @Consume consume_num204: number; + @Consume consume_num205: number; + @Consume consume_num206: number; + @Consume consume_num207: number; + @Consume consume_num208: number; + @Consume consume_num209: number; + @Consume consume_num210: number; + @Consume consume_num211: number; + @Consume consume_num212: number; + @Consume consume_num213: number; + @Consume consume_num214: number; + @Consume consume_num215: number; + @Consume consume_num216: number; + @Consume consume_num217: number; + @Consume consume_num218: number; + @Consume consume_num219: number; + @Consume consume_num220: number; + @Consume consume_num221: number; + @Consume consume_num222: number; + @Consume consume_num223: number; + @Consume consume_num224: number; + @Consume consume_num225: number; + @Consume consume_num226: number; + @Consume consume_num227: number; + @Consume consume_num228: number; + @Consume consume_num229: number; + @Consume consume_num230: number; + @Consume consume_num231: number; + @Consume consume_num232: number; + @Consume consume_num233: number; + @Consume consume_num234: number; + @Consume consume_num235: number; + @Consume consume_num236: number; + @Consume consume_num237: number; + @Consume consume_num238: number; + @Consume consume_num239: number; + @Consume consume_num240: number; + @Consume consume_num241: number; + @Consume consume_num242: number; + @Consume consume_num243: number; + @Consume consume_num244: number; + @Consume consume_num245: number; + @Consume consume_num246: number; + @Consume consume_num247: number; + @Consume consume_num248: number; + @Consume consume_num249: number; + @Consume consume_num250: number; + @Consume consume_num251: number; + @Consume consume_num252: number; + @Consume consume_num253: number; + @Consume consume_num254: number; + @Consume consume_num255: number; + @Consume consume_num256: number; + @Consume consume_num257: number; + @Consume consume_num258: number; + @Consume consume_num259: number; + @Consume consume_num260: number; + @Consume consume_num261: number; + @Consume consume_num262: number; + @Consume consume_num263: number; + @Consume consume_num264: number; + @Consume consume_num265: number; + @Consume consume_num266: number; + @Consume consume_num267: number; + @Consume consume_num268: number; + @Consume consume_num269: number; + @Consume consume_num270: number; + @Consume consume_num271: number; + @Consume consume_num272: number; + @Consume consume_num273: number; + @Consume consume_num274: number; + @Consume consume_num275: number; + @Consume consume_num276: number; + @Consume consume_num277: number; + @Consume consume_num278: number; + @Consume consume_num279: number; + @Consume consume_num280: number; + @Consume consume_num281: number; + @Consume consume_num282: number; + @Consume consume_num283: number; + @Consume consume_num284: number; + @Consume consume_num285: number; + @Consume consume_num286: number; + @Consume consume_num287: number; + @Consume consume_num288: number; + @Consume consume_num289: number; + @Consume consume_num290: number; + @Consume consume_num291: number; + @Consume consume_num292: number; + @Consume consume_num293: number; + @Consume consume_num294: number; + @Consume consume_num295: number; + @Consume consume_num296: number; + @Consume consume_num297: number; + @Consume consume_num298: number; + @Consume consume_num299: number; + @Consume consume_num300: number; + @Consume consume_num301: number; + @Consume consume_num302: number; + @Consume consume_num303: number; + @Consume consume_num304: number; + @Consume consume_num305: number; + @Consume consume_num306: number; + @Consume consume_num307: number; + @Consume consume_num308: number; + @Consume consume_num309: number; + @Consume consume_num310: number; + @Consume consume_num311: number; + @Consume consume_num312: number; + @Consume consume_num313: number; + @Consume consume_num314: number; + @Consume consume_num315: number; + @Consume consume_num316: number; + @Consume consume_num317: number; + @Consume consume_num318: number; + @Consume consume_num319: number; + @Consume consume_num320: number; + @Consume consume_num321: number; + @Consume consume_num322: number; + @Consume consume_num323: number; + @Consume consume_num324: number; + @Consume consume_num325: number; + @Consume consume_num326: number; + @Consume consume_num327: number; + @Consume consume_num328: number; + @Consume consume_num329: number; + @Consume consume_num330: number; + @Consume consume_num331: number; + @Consume consume_num332: number; + @Consume consume_num333: number; + @Consume consume_num334: number; + @Consume consume_num335: number; + @Consume consume_num336: number; + @Consume consume_num337: number; + @Consume consume_num338: number; + @Consume consume_num339: number; + @Consume consume_num340: number; + @Consume consume_num341: number; + @Consume consume_num342: number; + @Consume consume_num343: number; + @Consume consume_num344: number; + @Consume consume_num345: number; + @Consume consume_num346: number; + @Consume consume_num347: number; + @Consume consume_num348: number; + @Consume consume_num349: number; + @Consume consume_num350: number; + @Consume consume_num351: number; + @Consume consume_num352: number; + @Consume consume_num353: number; + @Consume consume_num354: number; + @Consume consume_num355: number; + @Consume consume_num356: number; + @Consume consume_num357: number; + @Consume consume_num358: number; + @Consume consume_num359: number; + @Consume consume_num360: number; + @Consume consume_num361: number; + @Consume consume_num362: number; + @Consume consume_num363: number; + @Consume consume_num364: number; + @Consume consume_num365: number; + @Consume consume_num366: number; + @Consume consume_num367: number; + @Consume consume_num368: number; + @Consume consume_num369: number; + @Consume consume_num370: number; + @Consume consume_num371: number; + @Consume consume_num372: number; + @Consume consume_num373: number; + @Consume consume_num374: number; + @Consume consume_num375: number; + @Consume consume_num376: number; + @Consume consume_num377: number; + @Consume consume_num378: number; + @Consume consume_num379: number; + @Consume consume_num380: number; + @Consume consume_num381: number; + @Consume consume_num382: number; + @Consume consume_num383: number; + @Consume consume_num384: number; + @Consume consume_num385: number; + @Consume consume_num386: number; + @Consume consume_num387: number; + @Consume consume_num388: number; + @Consume consume_num389: number; + @Consume consume_num390: number; + @Consume consume_num391: number; + @Consume consume_num392: number; + @Consume consume_num393: number; + @Consume consume_num394: number; + @Consume consume_num395: number; + @Consume consume_num396: number; + @Consume consume_num397: number; + @Consume consume_num398: number; + @Consume consume_num399: number; + @Consume consume_num400: number; + @Consume consume_num401: number; + @Consume consume_num402: number; + @Consume consume_num403: number; + @Consume consume_num404: number; + @Consume consume_num405: number; + @Consume consume_num406: number; + @Consume consume_num407: number; + @Consume consume_num408: number; + @Consume consume_num409: number; + @Consume consume_num410: number; + @Consume consume_num411: number; + @Consume consume_num412: number; + @Consume consume_num413: number; + @Consume consume_num414: number; + @Consume consume_num415: number; + @Consume consume_num416: number; + @Consume consume_num417: number; + @Consume consume_num418: number; + @Consume consume_num419: number; + @Consume consume_num420: number; + @Consume consume_num421: number; + @Consume consume_num422: number; + @Consume consume_num423: number; + @Consume consume_num424: number; + @Consume consume_num425: number; + @Consume consume_num426: number; + @Consume consume_num427: number; + @Consume consume_num428: number; + @Consume consume_num429: number; + @Consume consume_num430: number; + @Consume consume_num431: number; + @Consume consume_num432: number; + @Consume consume_num433: number; + @Consume consume_num434: number; + @Consume consume_num435: number; + @Consume consume_num436: number; + @Consume consume_num437: number; + @Consume consume_num438: number; + @Consume consume_num439: number; + @Consume consume_num440: number; + @Consume consume_num441: number; + @Consume consume_num442: number; + @Consume consume_num443: number; + @Consume consume_num444: number; + @Consume consume_num445: number; + @Consume consume_num446: number; + @Consume consume_num447: number; + @Consume consume_num448: number; + @Consume consume_num449: number; + @Consume consume_num450: number; + @Consume consume_num451: number; + @Consume consume_num452: number; + @Consume consume_num453: number; + @Consume consume_num454: number; + @Consume consume_num455: number; + @Consume consume_num456: number; + @Consume consume_num457: number; + @Consume consume_num458: number; + @Consume consume_num459: number; + @Consume consume_num460: number; + @Consume consume_num461: number; + @Consume consume_num462: number; + @Consume consume_num463: number; + @Consume consume_num464: number; + @Consume consume_num465: number; + @Consume consume_num466: number; + @Consume consume_num467: number; + @Consume consume_num468: number; + @Consume consume_num469: number; + @Consume consume_num470: number; + @Consume consume_num471: number; + @Consume consume_num472: number; + @Consume consume_num473: number; + @Consume consume_num474: number; + @Consume consume_num475: number; + @Consume consume_num476: number; + @Consume consume_num477: number; + @Consume consume_num478: number; + @Consume consume_num479: number; + @Consume consume_num480: number; + @Consume consume_num481: number; + @Consume consume_num482: number; + @Consume consume_num483: number; + @Consume consume_num484: number; + @Consume consume_num485: number; + @Consume consume_num486: number; + @Consume consume_num487: number; + @Consume consume_num488: number; + @Consume consume_num489: number; + @Consume consume_num490: number; + @Consume consume_num491: number; + @Consume consume_num492: number; + @Consume consume_num493: number; + @Consume consume_num494: number; + @Consume consume_num495: number; + @Consume consume_num496: number; + @Consume consume_num497: number; + @Consume consume_num498: number; + @Consume consume_num499: number; + @Consume consume_num500: number; + @Consume consume_num501: number; + @Consume consume_num502: number; + @Consume consume_num503: number; + @Consume consume_num504: number; + @Consume consume_num505: number; + @Consume consume_num506: number; + @Consume consume_num507: number; + @Consume consume_num508: number; + @Consume consume_num509: number; + @Consume consume_num510: number; + @Consume consume_num511: number; + @Consume consume_num512: number; + @Consume consume_num513: number; + @Consume consume_num514: number; + @Consume consume_num515: number; + @Consume consume_num516: number; + @Consume consume_num517: number; + @Consume consume_num518: number; + @Consume consume_num519: number; + @Consume consume_num520: number; + @Consume consume_num521: number; + @Consume consume_num522: number; + @Consume consume_num523: number; + @Consume consume_num524: number; + @Consume consume_num525: number; + @Consume consume_num526: number; + @Consume consume_num527: number; + @Consume consume_num528: number; + @Consume consume_num529: number; + @Consume consume_num530: number; + @Consume consume_num531: number; + @Consume consume_num532: number; + @Consume consume_num533: number; + @Consume consume_num534: number; + @Consume consume_num535: number; + @Consume consume_num536: number; + @Consume consume_num537: number; + @Consume consume_num538: number; + @Consume consume_num539: number; + @Consume consume_num540: number; + @Consume consume_num541: number; + @Consume consume_num542: number; + @Consume consume_num543: number; + @Consume consume_num544: number; + @Consume consume_num545: number; + @Consume consume_num546: number; + @Consume consume_num547: number; + @Consume consume_num548: number; + @Consume consume_num549: number; + @Consume consume_num550: number; + @Consume consume_num551: number; + @Consume consume_num552: number; + @Consume consume_num553: number; + @Consume consume_num554: number; + @Consume consume_num555: number; + @Consume consume_num556: number; + @Consume consume_num557: number; + @Consume consume_num558: number; + @Consume consume_num559: number; + @Consume consume_num560: number; + @Consume consume_num561: number; + @Consume consume_num562: number; + @Consume consume_num563: number; + @Consume consume_num564: number; + @Consume consume_num565: number; + @Consume consume_num566: number; + @Consume consume_num567: number; + @Consume consume_num568: number; + @Consume consume_num569: number; + @Consume consume_num570: number; + @Consume consume_num571: number; + @Consume consume_num572: number; + @Consume consume_num573: number; + @Consume consume_num574: number; + @Consume consume_num575: number; + @Consume consume_num576: number; + @Consume consume_num577: number; + @Consume consume_num578: number; + @Consume consume_num579: number; + @Consume consume_num580: number; + @Consume consume_num581: number; + @Consume consume_num582: number; + @Consume consume_num583: number; + @Consume consume_num584: number; + @Consume consume_num585: number; + @Consume consume_num586: number; + @Consume consume_num587: number; + @Consume consume_num588: number; + @Consume consume_num589: number; + @Consume consume_num590: number; + @Consume consume_num591: number; + @Consume consume_num592: number; + @Consume consume_num593: number; + @Consume consume_num594: number; + @Consume consume_num595: number; + @Consume consume_num596: number; + @Consume consume_num597: number; + @Consume consume_num598: number; + @Consume consume_num599: number; + @Consume consume_num600: number; + @Consume consume_num601: number; + @Consume consume_num602: number; + @Consume consume_num603: number; + @Consume consume_num604: number; + @Consume consume_num605: number; + @Consume consume_num606: number; + @Consume consume_num607: number; + @Consume consume_num608: number; + @Consume consume_num609: number; + @Consume consume_num610: number; + @Consume consume_num611: number; + @Consume consume_num612: number; + @Consume consume_num613: number; + @Consume consume_num614: number; + @Consume consume_num615: number; + @Consume consume_num616: number; + @Consume consume_num617: number; + @Consume consume_num618: number; + @Consume consume_num619: number; + @Consume consume_num620: number; + @Consume consume_num621: number; + @Consume consume_num622: number; + @Consume consume_num623: number; + @Consume consume_num624: number; + @Consume consume_num625: number; + @Consume consume_num626: number; + @Consume consume_num627: number; + @Consume consume_num628: number; + @Consume consume_num629: number; + @Consume consume_num630: number; + @Consume consume_num631: number; + @Consume consume_num632: number; + @Consume consume_num633: number; + @Consume consume_num634: number; + @Consume consume_num635: number; + @Consume consume_num636: number; + @Consume consume_num637: number; + @Consume consume_num638: number; + @Consume consume_num639: number; + @Consume consume_num640: number; + @Consume consume_num641: number; + @Consume consume_num642: number; + @Consume consume_num643: number; + @Consume consume_num644: number; + @Consume consume_num645: number; + @Consume consume_num646: number; + @Consume consume_num647: number; + @Consume consume_num648: number; + @Consume consume_num649: number; + @Consume consume_num650: number; + @Consume consume_num651: number; + @Consume consume_num652: number; + @Consume consume_num653: number; + @Consume consume_num654: number; + @Consume consume_num655: number; + @Consume consume_num656: number; + @Consume consume_num657: number; + @Consume consume_num658: number; + @Consume consume_num659: number; + @Consume consume_num660: number; + @Consume consume_num661: number; + @Consume consume_num662: number; + @Consume consume_num663: number; + @Consume consume_num664: number; + @Consume consume_num665: number; + @Consume consume_num666: number; + @Consume consume_num667: number; + @Consume consume_num668: number; + @Consume consume_num669: number; + @Consume consume_num670: number; + @Consume consume_num671: number; + @Consume consume_num672: number; + @Consume consume_num673: number; + @Consume consume_num674: number; + @Consume consume_num675: number; + @Consume consume_num676: number; + @Consume consume_num677: number; + @Consume consume_num678: number; + @Consume consume_num679: number; + @Consume consume_num680: number; + @Consume consume_num681: number; + @Consume consume_num682: number; + @Consume consume_num683: number; + @Consume consume_num684: number; + @Consume consume_num685: number; + @Consume consume_num686: number; + @Consume consume_num687: number; + @Consume consume_num688: number; + @Consume consume_num689: number; + @Consume consume_num690: number; + @Consume consume_num691: number; + @Consume consume_num692: number; + @Consume consume_num693: number; + @Consume consume_num694: number; + @Consume consume_num695: number; + @Consume consume_num696: number; + @Consume consume_num697: number; + @Consume consume_num698: number; + @Consume consume_num699: number; + @Consume consume_num700: number; + @Consume consume_num701: number; + @Consume consume_num702: number; + @Consume consume_num703: number; + @Consume consume_num704: number; + @Consume consume_num705: number; + @Consume consume_num706: number; + @Consume consume_num707: number; + @Consume consume_num708: number; + @Consume consume_num709: number; + @Consume consume_num710: number; + @Consume consume_num711: number; + @Consume consume_num712: number; + @Consume consume_num713: number; + @Consume consume_num714: number; + @Consume consume_num715: number; + @Consume consume_num716: number; + @Consume consume_num717: number; + @Consume consume_num718: number; + @Consume consume_num719: number; + @Consume consume_num720: number; + @Consume consume_num721: number; + @Consume consume_num722: number; + @Consume consume_num723: number; + @Consume consume_num724: number; + @Consume consume_num725: number; + @Consume consume_num726: number; + @Consume consume_num727: number; + @Consume consume_num728: number; + @Consume consume_num729: number; + @Consume consume_num730: number; + @Consume consume_num731: number; + @Consume consume_num732: number; + @Consume consume_num733: number; + @Consume consume_num734: number; + @Consume consume_num735: number; + @Consume consume_num736: number; + @Consume consume_num737: number; + @Consume consume_num738: number; + @Consume consume_num739: number; + @Consume consume_num740: number; + @Consume consume_num741: number; + @Consume consume_num742: number; + @Consume consume_num743: number; + @Consume consume_num744: number; + @Consume consume_num745: number; + @Consume consume_num746: number; + @Consume consume_num747: number; + @Consume consume_num748: number; + @Consume consume_num749: number; + @Consume consume_num750: number; + @Consume consume_num751: number; + @Consume consume_num752: number; + @Consume consume_num753: number; + @Consume consume_num754: number; + @Consume consume_num755: number; + @Consume consume_num756: number; + @Consume consume_num757: number; + @Consume consume_num758: number; + @Consume consume_num759: number; + @Consume consume_num760: number; + @Consume consume_num761: number; + @Consume consume_num762: number; + @Consume consume_num763: number; + @Consume consume_num764: number; + @Consume consume_num765: number; + @Consume consume_num766: number; + @Consume consume_num767: number; + @Consume consume_num768: number; + @Consume consume_num769: number; + @Consume consume_num770: number; + @Consume consume_num771: number; + @Consume consume_num772: number; + @Consume consume_num773: number; + @Consume consume_num774: number; + @Consume consume_num775: number; + @Consume consume_num776: number; + @Consume consume_num777: number; + @Consume consume_num778: number; + @Consume consume_num779: number; + @Consume consume_num780: number; + @Consume consume_num781: number; + @Consume consume_num782: number; + @Consume consume_num783: number; + @Consume consume_num784: number; + @Consume consume_num785: number; + @Consume consume_num786: number; + @Consume consume_num787: number; + @Consume consume_num788: number; + @Consume consume_num789: number; + @Consume consume_num790: number; + @Consume consume_num791: number; + @Consume consume_num792: number; + @Consume consume_num793: number; + @Consume consume_num794: number; + @Consume consume_num795: number; + @Consume consume_num796: number; + @Consume consume_num797: number; + @Consume consume_num798: number; + @Consume consume_num799: number; + @Consume consume_num800: number; + @Consume consume_num801: number; + @Consume consume_num802: number; + @Consume consume_num803: number; + @Consume consume_num804: number; + @Consume consume_num805: number; + @Consume consume_num806: number; + @Consume consume_num807: number; + @Consume consume_num808: number; + @Consume consume_num809: number; + @Consume consume_num810: number; + @Consume consume_num811: number; + @Consume consume_num812: number; + @Consume consume_num813: number; + @Consume consume_num814: number; + @Consume consume_num815: number; + @Consume consume_num816: number; + @Consume consume_num817: number; + @Consume consume_num818: number; + @Consume consume_num819: number; + @Consume consume_num820: number; + @Consume consume_num821: number; + @Consume consume_num822: number; + @Consume consume_num823: number; + @Consume consume_num824: number; + @Consume consume_num825: number; + @Consume consume_num826: number; + @Consume consume_num827: number; + @Consume consume_num828: number; + @Consume consume_num829: number; + @Consume consume_num830: number; + @Consume consume_num831: number; + @Consume consume_num832: number; + @Consume consume_num833: number; + @Consume consume_num834: number; + @Consume consume_num835: number; + @Consume consume_num836: number; + @Consume consume_num837: number; + @Consume consume_num838: number; + @Consume consume_num839: number; + @Consume consume_num840: number; + @Consume consume_num841: number; + @Consume consume_num842: number; + @Consume consume_num843: number; + @Consume consume_num844: number; + @Consume consume_num845: number; + @Consume consume_num846: number; + @Consume consume_num847: number; + @Consume consume_num848: number; + @Consume consume_num849: number; + @Consume consume_num850: number; + @Consume consume_num851: number; + @Consume consume_num852: number; + @Consume consume_num853: number; + @Consume consume_num854: number; + @Consume consume_num855: number; + @Consume consume_num856: number; + @Consume consume_num857: number; + @Consume consume_num858: number; + @Consume consume_num859: number; + @Consume consume_num860: number; + @Consume consume_num861: number; + @Consume consume_num862: number; + @Consume consume_num863: number; + @Consume consume_num864: number; + @Consume consume_num865: number; + @Consume consume_num866: number; + @Consume consume_num867: number; + @Consume consume_num868: number; + @Consume consume_num869: number; + @Consume consume_num870: number; + @Consume consume_num871: number; + @Consume consume_num872: number; + @Consume consume_num873: number; + @Consume consume_num874: number; + @Consume consume_num875: number; + @Consume consume_num876: number; + @Consume consume_num877: number; + @Consume consume_num878: number; + @Consume consume_num879: number; + @Consume consume_num880: number; + @Consume consume_num881: number; + @Consume consume_num882: number; + @Consume consume_num883: number; + @Consume consume_num884: number; + @Consume consume_num885: number; + @Consume consume_num886: number; + @Consume consume_num887: number; + @Consume consume_num888: number; + @Consume consume_num889: number; + @Consume consume_num890: number; + @Consume consume_num891: number; + @Consume consume_num892: number; + @Consume consume_num893: number; + @Consume consume_num894: number; + @Consume consume_num895: number; + @Consume consume_num896: number; + @Consume consume_num897: number; + @Consume consume_num898: number; + @Consume consume_num899: number; + @Consume consume_num900: number; + @Consume consume_num901: number; + @Consume consume_num902: number; + @Consume consume_num903: number; + @Consume consume_num904: number; + @Consume consume_num905: number; + @Consume consume_num906: number; + @Consume consume_num907: number; + @Consume consume_num908: number; + @Consume consume_num909: number; + @Consume consume_num910: number; + @Consume consume_num911: number; + @Consume consume_num912: number; + @Consume consume_num913: number; + @Consume consume_num914: number; + @Consume consume_num915: number; + @Consume consume_num916: number; + @Consume consume_num917: number; + @Consume consume_num918: number; + @Consume consume_num919: number; + @Consume consume_num920: number; + @Consume consume_num921: number; + @Consume consume_num922: number; + @Consume consume_num923: number; + @Consume consume_num924: number; + @Consume consume_num925: number; + @Consume consume_num926: number; + @Consume consume_num927: number; + @Consume consume_num928: number; + @Consume consume_num929: number; + @Consume consume_num930: number; + @Consume consume_num931: number; + @Consume consume_num932: number; + @Consume consume_num933: number; + @Consume consume_num934: number; + @Consume consume_num935: number; + @Consume consume_num936: number; + @Consume consume_num937: number; + @Consume consume_num938: number; + @Consume consume_num939: number; + @Consume consume_num940: number; + @Consume consume_num941: number; + @Consume consume_num942: number; + @Consume consume_num943: number; + @Consume consume_num944: number; + @Consume consume_num945: number; + @Consume consume_num946: number; + @Consume consume_num947: number; + @Consume consume_num948: number; + @Consume consume_num949: number; + @Consume consume_num950: number; + @Consume consume_num951: number; + @Consume consume_num952: number; + @Consume consume_num953: number; + @Consume consume_num954: number; + @Consume consume_num955: number; + @Consume consume_num956: number; + @Consume consume_num957: number; + @Consume consume_num958: number; + @Consume consume_num959: number; + @Consume consume_num960: number; + @Consume consume_num961: number; + @Consume consume_num962: number; + @Consume consume_num963: number; + @Consume consume_num964: number; + @Consume consume_num965: number; + @Consume consume_num966: number; + @Consume consume_num967: number; + @Consume consume_num968: number; + @Consume consume_num969: number; + @Consume consume_num970: number; + @Consume consume_num971: number; + @Consume consume_num972: number; + @Consume consume_num973: number; + @Consume consume_num974: number; + @Consume consume_num975: number; + @Consume consume_num976: number; + @Consume consume_num977: number; + @Consume consume_num978: number; + @Consume consume_num979: number; + @Consume consume_num980: number; + @Consume consume_num981: number; + @Consume consume_num982: number; + @Consume consume_num983: number; + @Consume consume_num984: number; + @Consume consume_num985: number; + @Consume consume_num986: number; + @Consume consume_num987: number; + @Consume consume_num988: number; + @Consume consume_num989: number; + @Consume consume_num990: number; + @Consume consume_num991: number; + @Consume consume_num992: number; + @Consume consume_num993: number; + @Consume consume_num994: number; + @Consume consume_num995: number; + @Consume consume_num996: number; + @Consume consume_num997: number; + @Consume consume_num998: number; + @Consume consume_num999: number; + @Consume consume_num1000: number; + @Consume consume_num1001: number; + @Consume consume_num1002: number; + @Consume consume_num1003: number; + @Consume consume_num1004: number; + @Consume consume_num1005: number; + @Consume consume_num1006: number; + @Consume consume_num1007: number; + @Consume consume_num1008: number; + @Consume consume_num1009: number; + @Consume consume_num1010: number; + @Consume consume_num1011: number; + @Consume consume_num1012: number; + @Consume consume_num1013: number; + @Consume consume_num1014: number; + @Consume consume_num1015: number; + @Consume consume_num1016: number; + @Consume consume_num1017: number; + @Consume consume_num1018: number; + @Consume consume_num1019: number; + @Consume consume_num1020: number; + @Consume consume_num1021: number; + @Consume consume_num1022: number; + @Consume consume_num1023: number; + @Consume consume_num1024: number; + @Consume consume_num1025: number; + @Consume consume_num1026: number; + @Consume consume_num1027: number; + @Consume consume_num1028: number; + @Consume consume_num1029: number; + @Consume consume_num1030: number; + @Consume consume_num1031: number; + @Consume consume_num1032: number; + @Consume consume_num1033: number; + @Consume consume_num1034: number; + @Consume consume_num1035: number; + @Consume consume_num1036: number; + @Consume consume_num1037: number; + @Consume consume_num1038: number; + @Consume consume_num1039: number; + @Consume consume_num1040: number; + @Consume consume_num1041: number; + @Consume consume_num1042: number; + @Consume consume_num1043: number; + @Consume consume_num1044: number; + @Consume consume_num1045: number; + @Consume consume_num1046: number; + @Consume consume_num1047: number; + @Consume consume_num1048: number; + @Consume consume_num1049: number; + @Consume consume_num1050: number; + @Consume consume_num1051: number; + @Consume consume_num1052: number; + @Consume consume_num1053: number; + @Consume consume_num1054: number; + @Consume consume_num1055: number; + @Consume consume_num1056: number; + @Consume consume_num1057: number; + @Consume consume_num1058: number; + @Consume consume_num1059: number; + @Consume consume_num1060: number; + @Consume consume_num1061: number; + @Consume consume_num1062: number; + @Consume consume_num1063: number; + @Consume consume_num1064: number; + @Consume consume_num1065: number; + @Consume consume_num1066: number; + @Consume consume_num1067: number; + @Consume consume_num1068: number; + @Consume consume_num1069: number; + @Consume consume_num1070: number; + @Consume consume_num1071: number; + @Consume consume_num1072: number; + @Consume consume_num1073: number; + @Consume consume_num1074: number; + @Consume consume_num1075: number; + @Consume consume_num1076: number; + @Consume consume_num1077: number; + @Consume consume_num1078: number; + @Consume consume_num1079: number; + @Consume consume_num1080: number; + @Consume consume_num1081: number; + @Consume consume_num1082: number; + @Consume consume_num1083: number; + @Consume consume_num1084: number; + @Consume consume_num1085: number; + @Consume consume_num1086: number; + @Consume consume_num1087: number; + @Consume consume_num1088: number; + @Consume consume_num1089: number; + @Consume consume_num1090: number; + @Consume consume_num1091: number; + @Consume consume_num1092: number; + @Consume consume_num1093: number; + @Consume consume_num1094: number; + @Consume consume_num1095: number; + @Consume consume_num1096: number; + @Consume consume_num1097: number; + @Consume consume_num1098: number; + @Consume consume_num1099: number; + @Consume consume_num1100: number; + @Consume consume_num1101: number; + @Consume consume_num1102: number; + @Consume consume_num1103: number; + @Consume consume_num1104: number; + @Consume consume_num1105: number; + @Consume consume_num1106: number; + @Consume consume_num1107: number; + @Consume consume_num1108: number; + @Consume consume_num1109: number; + @Consume consume_num1110: number; + @Consume consume_num1111: number; + @Consume consume_num1112: number; + @Consume consume_num1113: number; + @Consume consume_num1114: number; + @Consume consume_num1115: number; + @Consume consume_num1116: number; + @Consume consume_num1117: number; + @Consume consume_num1118: number; + @Consume consume_num1119: number; + @Consume consume_num1120: number; + @Consume consume_num1121: number; + @Consume consume_num1122: number; + @Consume consume_num1123: number; + @Consume consume_num1124: number; + @Consume consume_num1125: number; + @Consume consume_num1126: number; + @Consume consume_num1127: number; + @Consume consume_num1128: number; + @Consume consume_num1129: number; + @Consume consume_num1130: number; + @Consume consume_num1131: number; + @Consume consume_num1132: number; + @Consume consume_num1133: number; + @Consume consume_num1134: number; + @Consume consume_num1135: number; + @Consume consume_num1136: number; + @Consume consume_num1137: number; + @Consume consume_num1138: number; + @Consume consume_num1139: number; + @Consume consume_num1140: number; + @Consume consume_num1141: number; + @Consume consume_num1142: number; + @Consume consume_num1143: number; + @Consume consume_num1144: number; + @Consume consume_num1145: number; + @Consume consume_num1146: number; + @Consume consume_num1147: number; + @Consume consume_num1148: number; + @Consume consume_num1149: number; + @Consume consume_num1150: number; + @Consume consume_num1151: number; + @Consume consume_num1152: number; + @Consume consume_num1153: number; + @Consume consume_num1154: number; + @Consume consume_num1155: number; + @Consume consume_num1156: number; + @Consume consume_num1157: number; + @Consume consume_num1158: number; + @Consume consume_num1159: number; + @Consume consume_num1160: number; + @Consume consume_num1161: number; + @Consume consume_num1162: number; + @Consume consume_num1163: number; + @Consume consume_num1164: number; + @Consume consume_num1165: number; + @Consume consume_num1166: number; + @Consume consume_num1167: number; + @Consume consume_num1168: number; + @Consume consume_num1169: number; + @Consume consume_num1170: number; + @Consume consume_num1171: number; + @Consume consume_num1172: number; + @Consume consume_num1173: number; + @Consume consume_num1174: number; + @Consume consume_num1175: number; + @Consume consume_num1176: number; + @Consume consume_num1177: number; + @Consume consume_num1178: number; + @Consume consume_num1179: number; + @Consume consume_num1180: number; + @Consume consume_num1181: number; + @Consume consume_num1182: number; + @Consume consume_num1183: number; + @Consume consume_num1184: number; + @Consume consume_num1185: number; + @Consume consume_num1186: number; + @Consume consume_num1187: number; + @Consume consume_num1188: number; + @Consume consume_num1189: number; + @Consume consume_num1190: number; + @Consume consume_num1191: number; + @Consume consume_num1192: number; + @Consume consume_num1193: number; + @Consume consume_num1194: number; + @Consume consume_num1195: number; + @Consume consume_num1196: number; + @Consume consume_num1197: number; + @Consume consume_num1198: number; + @Consume consume_num1199: number; + @Consume consume_num1200: number; + @Consume consume_num1201: number; + @Consume consume_num1202: number; + @Consume consume_num1203: number; + @Consume consume_num1204: number; + @Consume consume_num1205: number; + @Consume consume_num1206: number; + @Consume consume_num1207: number; + @Consume consume_num1208: number; + @Consume consume_num1209: number; + @Consume consume_num1210: number; + @Consume consume_num1211: number; + @Consume consume_num1212: number; + @Consume consume_num1213: number; + @Consume consume_num1214: number; + @Consume consume_num1215: number; + @Consume consume_num1216: number; + @Consume consume_num1217: number; + @Consume consume_num1218: number; + @Consume consume_num1219: number; + @Consume consume_num1220: number; + @Consume consume_num1221: number; + @Consume consume_num1222: number; + @Consume consume_num1223: number; + @Consume consume_num1224: number; + @Consume consume_num1225: number; + @Consume consume_num1226: number; + @Consume consume_num1227: number; + @Consume consume_num1228: number; + @Consume consume_num1229: number; + @Consume consume_num1230: number; + @Consume consume_num1231: number; + @Consume consume_num1232: number; + @Consume consume_num1233: number; + @Consume consume_num1234: number; + @Consume consume_num1235: number; + @Consume consume_num1236: number; + @Consume consume_num1237: number; + @Consume consume_num1238: number; + @Consume consume_num1239: number; + @Consume consume_num1240: number; + @Consume consume_num1241: number; + @Consume consume_num1242: number; + @Consume consume_num1243: number; + @Consume consume_num1244: number; + @Consume consume_num1245: number; + @Consume consume_num1246: number; + @Consume consume_num1247: number; + @Consume consume_num1248: number; + @Consume consume_num1249: number; + @Consume consume_num1250: number; + @Consume consume_num1251: number; + @Consume consume_num1252: number; + @Consume consume_num1253: number; + @Consume consume_num1254: number; + @Consume consume_num1255: number; + @Consume consume_num1256: number; + @Consume consume_num1257: number; + @Consume consume_num1258: number; + @Consume consume_num1259: number; + @Consume consume_num1260: number; + @Consume consume_num1261: number; + @Consume consume_num1262: number; + @Consume consume_num1263: number; + @Consume consume_num1264: number; + @Consume consume_num1265: number; + @Consume consume_num1266: number; + @Consume consume_num1267: number; + @Consume consume_num1268: number; + @Consume consume_num1269: number; + @Consume consume_num1270: number; + @Consume consume_num1271: number; + @Consume consume_num1272: number; + @Consume consume_num1273: number; + @Consume consume_num1274: number; + @Consume consume_num1275: number; + @Consume consume_num1276: number; + @Consume consume_num1277: number; + @Consume consume_num1278: number; + @Consume consume_num1279: number; + @Consume consume_num1280: number; + @Consume consume_num1281: number; + @Consume consume_num1282: number; + @Consume consume_num1283: number; + @Consume consume_num1284: number; + @Consume consume_num1285: number; + @Consume consume_num1286: number; + @Consume consume_num1287: number; + @Consume consume_num1288: number; + @Consume consume_num1289: number; + @Consume consume_num1290: number; + @Consume consume_num1291: number; + @Consume consume_num1292: number; + @Consume consume_num1293: number; + @Consume consume_num1294: number; + @Consume consume_num1295: number; + @Consume consume_num1296: number; + @Consume consume_num1297: number; + @Consume consume_num1298: number; + @Consume consume_num1299: number; + @Consume consume_num1300: number; + @Consume consume_num1301: number; + @Consume consume_num1302: number; + @Consume consume_num1303: number; + @Consume consume_num1304: number; + @Consume consume_num1305: number; + @Consume consume_num1306: number; + @Consume consume_num1307: number; + @Consume consume_num1308: number; + @Consume consume_num1309: number; + @Consume consume_num1310: number; + @Consume consume_num1311: number; + @Consume consume_num1312: number; + @Consume consume_num1313: number; + @Consume consume_num1314: number; + @Consume consume_num1315: number; + @Consume consume_num1316: number; + @Consume consume_num1317: number; + @Consume consume_num1318: number; + @Consume consume_num1319: number; + @Consume consume_num1320: number; + @Consume consume_num1321: number; + @Consume consume_num1322: number; + @Consume consume_num1323: number; + @Consume consume_num1324: number; + @Consume consume_num1325: number; + @Consume consume_num1326: number; + @Consume consume_num1327: number; + @Consume consume_num1328: number; + @Consume consume_num1329: number; + @Consume consume_num1330: number; + @Consume consume_num1331: number; + @Consume consume_num1332: number; + @Consume consume_num1333: number; + @Consume consume_num1334: number; + @Consume consume_num1335: number; + @Consume consume_num1336: number; + @Consume consume_num1337: number; + @Consume consume_num1338: number; + @Consume consume_num1339: number; + @Consume consume_num1340: number; + @Consume consume_num1341: number; + @Consume consume_num1342: number; + @Consume consume_num1343: number; + @Consume consume_num1344: number; + @Consume consume_num1345: number; + @Consume consume_num1346: number; + @Consume consume_num1347: number; + @Consume consume_num1348: number; + @Consume consume_num1349: number; + @Consume consume_num1350: number; + @Consume consume_num1351: number; + @Consume consume_num1352: number; + @Consume consume_num1353: number; + @Consume consume_num1354: number; + @Consume consume_num1355: number; + @Consume consume_num1356: number; + @Consume consume_num1357: number; + @Consume consume_num1358: number; + @Consume consume_num1359: number; + @Consume consume_num1360: number; + @Consume consume_num1361: number; + @Consume consume_num1362: number; + @Consume consume_num1363: number; + @Consume consume_num1364: number; + @Consume consume_num1365: number; + @Consume consume_num1366: number; + @Consume consume_num1367: number; + @Consume consume_num1368: number; + @Consume consume_num1369: number; + @Consume consume_num1370: number; + @Consume consume_num1371: number; + @Consume consume_num1372: number; + @Consume consume_num1373: number; + @Consume consume_num1374: number; + @Consume consume_num1375: number; + @Consume consume_num1376: number; + @Consume consume_num1377: number; + @Consume consume_num1378: number; + @Consume consume_num1379: number; + @Consume consume_num1380: number; + @Consume consume_num1381: number; + @Consume consume_num1382: number; + @Consume consume_num1383: number; + @Consume consume_num1384: number; + @Consume consume_num1385: number; + @Consume consume_num1386: number; + @Consume consume_num1387: number; + @Consume consume_num1388: number; + @Consume consume_num1389: number; + @Consume consume_num1390: number; + @Consume consume_num1391: number; + @Consume consume_num1392: number; + @Consume consume_num1393: number; + @Consume consume_num1394: number; + @Consume consume_num1395: number; + @Consume consume_num1396: number; + @Consume consume_num1397: number; + @Consume consume_num1398: number; + @Consume consume_num1399: number; + @Consume consume_num1400: number; + @Consume consume_num1401: number; + @Consume consume_num1402: number; + @Consume consume_num1403: number; + @Consume consume_num1404: number; + @Consume consume_num1405: number; + @Consume consume_num1406: number; + @Consume consume_num1407: number; + @Consume consume_num1408: number; + @Consume consume_num1409: number; + @Consume consume_num1410: number; + @Consume consume_num1411: number; + @Consume consume_num1412: number; + @Consume consume_num1413: number; + @Consume consume_num1414: number; + @Consume consume_num1415: number; + @Consume consume_num1416: number; + @Consume consume_num1417: number; + @Consume consume_num1418: number; + @Consume consume_num1419: number; + @Consume consume_num1420: number; + @Consume consume_num1421: number; + @Consume consume_num1422: number; + @Consume consume_num1423: number; + @Consume consume_num1424: number; + @Consume consume_num1425: number; + @Consume consume_num1426: number; + @Consume consume_num1427: number; + @Consume consume_num1428: number; + @Consume consume_num1429: number; + @Consume consume_num1430: number; + @Consume consume_num1431: number; + @Consume consume_num1432: number; + @Consume consume_num1433: number; + @Consume consume_num1434: number; + @Consume consume_num1435: number; + @Consume consume_num1436: number; + @Consume consume_num1437: number; + @Consume consume_num1438: number; + @Consume consume_num1439: number; + @Consume consume_num1440: number; + @Consume consume_num1441: number; + @Consume consume_num1442: number; + @Consume consume_num1443: number; + @Consume consume_num1444: number; + @Consume consume_num1445: number; + @Consume consume_num1446: number; + @Consume consume_num1447: number; + @Consume consume_num1448: number; + @Consume consume_num1449: number; + @Consume consume_num1450: number; + @Consume consume_num1451: number; + @Consume consume_num1452: number; + @Consume consume_num1453: number; + @Consume consume_num1454: number; + @Consume consume_num1455: number; + @Consume consume_num1456: number; + @Consume consume_num1457: number; + @Consume consume_num1458: number; + @Consume consume_num1459: number; + @Consume consume_num1460: number; + @Consume consume_num1461: number; + @Consume consume_num1462: number; + @Consume consume_num1463: number; + @Consume consume_num1464: number; + @Consume consume_num1465: number; + @Consume consume_num1466: number; + @Consume consume_num1467: number; + @Consume consume_num1468: number; + @Consume consume_num1469: number; + @Consume consume_num1470: number; + @Consume consume_num1471: number; + @Consume consume_num1472: number; + @Consume consume_num1473: number; + @Consume consume_num1474: number; + @Consume consume_num1475: number; + @Consume consume_num1476: number; + @Consume consume_num1477: number; + @Consume consume_num1478: number; + @Consume consume_num1479: number; + @Consume consume_num1480: number; + @Consume consume_num1481: number; + @Consume consume_num1482: number; + @Consume consume_num1483: number; + @Consume consume_num1484: number; + @Consume consume_num1485: number; + @Consume consume_num1486: number; + @Consume consume_num1487: number; + @Consume consume_num1488: number; + @Consume consume_num1489: number; + @Consume consume_num1490: number; + @Consume consume_num1491: number; + @Consume consume_num1492: number; + @Consume consume_num1493: number; + @Consume consume_num1494: number; + @Consume consume_num1495: number; + @Consume consume_num1496: number; + @Consume consume_num1497: number; + @Consume consume_num1498: number; + @Consume consume_num1499: number; + @Consume consume_num1500: number; + @Consume consume_num1501: number; + @Consume consume_num1502: number; + @Consume consume_num1503: number; + @Consume consume_num1504: number; + @Consume consume_num1505: number; + @Consume consume_num1506: number; + @Consume consume_num1507: number; + @Consume consume_num1508: number; + @Consume consume_num1509: number; + @Consume consume_num1510: number; + @Consume consume_num1511: number; + @Consume consume_num1512: number; + @Consume consume_num1513: number; + @Consume consume_num1514: number; + @Consume consume_num1515: number; + @Consume consume_num1516: number; + @Consume consume_num1517: number; + @Consume consume_num1518: number; + @Consume consume_num1519: number; + @Consume consume_num1520: number; + @Consume consume_num1521: number; + @Consume consume_num1522: number; + @Consume consume_num1523: number; + @Consume consume_num1524: number; + @Consume consume_num1525: number; + @Consume consume_num1526: number; + @Consume consume_num1527: number; + @Consume consume_num1528: number; + @Consume consume_num1529: number; + @Consume consume_num1530: number; + @Consume consume_num1531: number; + @Consume consume_num1532: number; + @Consume consume_num1533: number; + @Consume consume_num1534: number; + @Consume consume_num1535: number; + @Consume consume_num1536: number; + @Consume consume_num1537: number; + @Consume consume_num1538: number; + @Consume consume_num1539: number; + @Consume consume_num1540: number; + @Consume consume_num1541: number; + @Consume consume_num1542: number; + @Consume consume_num1543: number; + @Consume consume_num1544: number; + @Consume consume_num1545: number; + @Consume consume_num1546: number; + @Consume consume_num1547: number; + @Consume consume_num1548: number; + @Consume consume_num1549: number; + @Consume consume_num1550: number; + @Consume consume_num1551: number; + @Consume consume_num1552: number; + @Consume consume_num1553: number; + @Consume consume_num1554: number; + @Consume consume_num1555: number; + @Consume consume_num1556: number; + @Consume consume_num1557: number; + @Consume consume_num1558: number; + @Consume consume_num1559: number; + @Consume consume_num1560: number; + @Consume consume_num1561: number; + @Consume consume_num1562: number; + @Consume consume_num1563: number; + @Consume consume_num1564: number; + @Consume consume_num1565: number; + @Consume consume_num1566: number; + @Consume consume_num1567: number; + @Consume consume_num1568: number; + @Consume consume_num1569: number; + @Consume consume_num1570: number; + @Consume consume_num1571: number; + @Consume consume_num1572: number; + @Consume consume_num1573: number; + @Consume consume_num1574: number; + @Consume consume_num1575: number; + @Consume consume_num1576: number; + @Consume consume_num1577: number; + @Consume consume_num1578: number; + @Consume consume_num1579: number; + @Consume consume_num1580: number; + @Consume consume_num1581: number; + @Consume consume_num1582: number; + @Consume consume_num1583: number; + @Consume consume_num1584: number; + @Consume consume_num1585: number; + @Consume consume_num1586: number; + @Consume consume_num1587: number; + @Consume consume_num1588: number; + @Consume consume_num1589: number; + @Consume consume_num1590: number; + @Consume consume_num1591: number; + @Consume consume_num1592: number; + @Consume consume_num1593: number; + @Consume consume_num1594: number; + @Consume consume_num1595: number; + @Consume consume_num1596: number; + @Consume consume_num1597: number; + @Consume consume_num1598: number; + @Consume consume_num1599: number; + @Consume consume_num1600: number; + @Consume consume_num1601: number; + @Consume consume_num1602: number; + @Consume consume_num1603: number; + @Consume consume_num1604: number; + @Consume consume_num1605: number; + @Consume consume_num1606: number; + @Consume consume_num1607: number; + @Consume consume_num1608: number; + @Consume consume_num1609: number; + @Consume consume_num1610: number; + @Consume consume_num1611: number; + @Consume consume_num1612: number; + @Consume consume_num1613: number; + @Consume consume_num1614: number; + @Consume consume_num1615: number; + @Consume consume_num1616: number; + @Consume consume_num1617: number; + @Consume consume_num1618: number; + @Consume consume_num1619: number; + @Consume consume_num1620: number; + @Consume consume_num1621: number; + @Consume consume_num1622: number; + @Consume consume_num1623: number; + @Consume consume_num1624: number; + @Consume consume_num1625: number; + @Consume consume_num1626: number; + @Consume consume_num1627: number; + @Consume consume_num1628: number; + @Consume consume_num1629: number; + @Consume consume_num1630: number; + @Consume consume_num1631: number; + @Consume consume_num1632: number; + @Consume consume_num1633: number; + @Consume consume_num1634: number; + @Consume consume_num1635: number; + @Consume consume_num1636: number; + @Consume consume_num1637: number; + @Consume consume_num1638: number; + @Consume consume_num1639: number; + @Consume consume_num1640: number; + @Consume consume_num1641: number; + @Consume consume_num1642: number; + @Consume consume_num1643: number; + @Consume consume_num1644: number; + @Consume consume_num1645: number; + @Consume consume_num1646: number; + @Consume consume_num1647: number; + @Consume consume_num1648: number; + @Consume consume_num1649: number; + @Consume consume_num1650: number; + @Consume consume_num1651: number; + @Consume consume_num1652: number; + @Consume consume_num1653: number; + @Consume consume_num1654: number; + @Consume consume_num1655: number; + @Consume consume_num1656: number; + @Consume consume_num1657: number; + @Consume consume_num1658: number; + @Consume consume_num1659: number; + @Consume consume_num1660: number; + @Consume consume_num1661: number; + @Consume consume_num1662: number; + @Consume consume_num1663: number; + @Consume consume_num1664: number; + @Consume consume_num1665: number; + @Consume consume_num1666: number; + @Consume consume_num1667: number; + @Consume consume_num1668: number; + @Consume consume_num1669: number; + @Consume consume_num1670: number; + @Consume consume_num1671: number; + @Consume consume_num1672: number; + @Consume consume_num1673: number; + @Consume consume_num1674: number; + @Consume consume_num1675: number; + @Consume consume_num1676: number; + @Consume consume_num1677: number; + @Consume consume_num1678: number; + @Consume consume_num1679: number; + @Consume consume_num1680: number; + @Consume consume_num1681: number; + @Consume consume_num1682: number; + @Consume consume_num1683: number; + @Consume consume_num1684: number; + @Consume consume_num1685: number; + @Consume consume_num1686: number; + @Consume consume_num1687: number; + @Consume consume_num1688: number; + @Consume consume_num1689: number; + @Consume consume_num1690: number; + @Consume consume_num1691: number; + @Consume consume_num1692: number; + @Consume consume_num1693: number; + @Consume consume_num1694: number; + @Consume consume_num1695: number; + @Consume consume_num1696: number; + @Consume consume_num1697: number; + @Consume consume_num1698: number; + @Consume consume_num1699: number; + @Consume consume_num1700: number; + @Consume consume_num1701: number; + @Consume consume_num1702: number; + @Consume consume_num1703: number; + @Consume consume_num1704: number; + @Consume consume_num1705: number; + @Consume consume_num1706: number; + @Consume consume_num1707: number; + @Consume consume_num1708: number; + @Consume consume_num1709: number; + @Consume consume_num1710: number; + @Consume consume_num1711: number; + @Consume consume_num1712: number; + @Consume consume_num1713: number; + @Consume consume_num1714: number; + @Consume consume_num1715: number; + @Consume consume_num1716: number; + @Consume consume_num1717: number; + @Consume consume_num1718: number; + @Consume consume_num1719: number; + @Consume consume_num1720: number; + @Consume consume_num1721: number; + @Consume consume_num1722: number; + @Consume consume_num1723: number; + @Consume consume_num1724: number; + @Consume consume_num1725: number; + @Consume consume_num1726: number; + @Consume consume_num1727: number; + @Consume consume_num1728: number; + @Consume consume_num1729: number; + @Consume consume_num1730: number; + @Consume consume_num1731: number; + @Consume consume_num1732: number; + @Consume consume_num1733: number; + @Consume consume_num1734: number; + @Consume consume_num1735: number; + @Consume consume_num1736: number; + @Consume consume_num1737: number; + @Consume consume_num1738: number; + @Consume consume_num1739: number; + @Consume consume_num1740: number; + @Consume consume_num1741: number; + @Consume consume_num1742: number; + @Consume consume_num1743: number; + @Consume consume_num1744: number; + @Consume consume_num1745: number; + @Consume consume_num1746: number; + @Consume consume_num1747: number; + @Consume consume_num1748: number; + @Consume consume_num1749: number; + @Consume consume_num1750: number; + @Consume consume_num1751: number; + @Consume consume_num1752: number; + @Consume consume_num1753: number; + @Consume consume_num1754: number; + @Consume consume_num1755: number; + @Consume consume_num1756: number; + @Consume consume_num1757: number; + @Consume consume_num1758: number; + @Consume consume_num1759: number; + @Consume consume_num1760: number; + @Consume consume_num1761: number; + @Consume consume_num1762: number; + @Consume consume_num1763: number; + @Consume consume_num1764: number; + @Consume consume_num1765: number; + @Consume consume_num1766: number; + @Consume consume_num1767: number; + @Consume consume_num1768: number; + @Consume consume_num1769: number; + @Consume consume_num1770: number; + @Consume consume_num1771: number; + @Consume consume_num1772: number; + @Consume consume_num1773: number; + @Consume consume_num1774: number; + @Consume consume_num1775: number; + @Consume consume_num1776: number; + @Consume consume_num1777: number; + @Consume consume_num1778: number; + @Consume consume_num1779: number; + @Consume consume_num1780: number; + @Consume consume_num1781: number; + @Consume consume_num1782: number; + @Consume consume_num1783: number; + @Consume consume_num1784: number; + @Consume consume_num1785: number; + @Consume consume_num1786: number; + @Consume consume_num1787: number; + @Consume consume_num1788: number; + @Consume consume_num1789: number; + @Consume consume_num1790: number; + @Consume consume_num1791: number; + @Consume consume_num1792: number; + @Consume consume_num1793: number; + @Consume consume_num1794: number; + @Consume consume_num1795: number; + @Consume consume_num1796: number; + @Consume consume_num1797: number; + @Consume consume_num1798: number; + @Consume consume_num1799: number; + @Consume consume_num1800: number; + @Consume consume_num1801: number; + @Consume consume_num1802: number; + @Consume consume_num1803: number; + @Consume consume_num1804: number; + @Consume consume_num1805: number; + @Consume consume_num1806: number; + @Consume consume_num1807: number; + @Consume consume_num1808: number; + @Consume consume_num1809: number; + @Consume consume_num1810: number; + @Consume consume_num1811: number; + @Consume consume_num1812: number; + @Consume consume_num1813: number; + @Consume consume_num1814: number; + @Consume consume_num1815: number; + @Consume consume_num1816: number; + @Consume consume_num1817: number; + + + //============================================================================= + + build() { + Column() { + Button('Click Me') + .onClick((e: ClickEvent) => { + this.consume_num0++; + this.consume_num1++; + this.consume_num2++; + this.consume_num3++; + this.consume_num4++; + this.consume_num5++; + this.consume_num6++; + this.consume_num7++; + this.consume_num8++; + this.consume_num9++; + this.consume_num10++; + this.consume_num11++; + this.consume_num12++; + this.consume_num13++; + this.consume_num14++; + this.consume_num15++; + this.consume_num16++; + this.consume_num17++; + this.consume_num18++; + this.consume_num19++; + this.consume_num20++; + this.consume_num21++; + this.consume_num22++; + this.consume_num23++; + this.consume_num24++; + this.consume_num25++; + this.consume_num26++; + this.consume_num27++; + this.consume_num28++; + this.consume_num29++; + this.consume_num30++; + this.consume_num31++; + this.consume_num32++; + this.consume_num33++; + this.consume_num34++; + this.consume_num35++; + this.consume_num36++; + this.consume_num37++; + this.consume_num38++; + this.consume_num39++; + this.consume_num40++; + this.consume_num41++; + this.consume_num42++; + this.consume_num43++; + this.consume_num44++; + this.consume_num45++; + this.consume_num46++; + this.consume_num47++; + this.consume_num48++; + this.consume_num49++; + this.consume_num50++; + this.consume_num51++; + this.consume_num52++; + this.consume_num53++; + this.consume_num54++; + this.consume_num55++; + this.consume_num56++; + this.consume_num57++; + this.consume_num58++; + this.consume_num59++; + this.consume_num60++; + this.consume_num61++; + this.consume_num62++; + this.consume_num63++; + this.consume_num64++; + this.consume_num65++; + this.consume_num66++; + this.consume_num67++; + this.consume_num68++; + this.consume_num69++; + this.consume_num70++; + this.consume_num71++; + this.consume_num72++; + this.consume_num73++; + this.consume_num74++; + this.consume_num75++; + this.consume_num76++; + this.consume_num77++; + this.consume_num78++; + this.consume_num79++; + this.consume_num80++; + this.consume_num81++; + this.consume_num82++; + this.consume_num83++; + this.consume_num84++; + this.consume_num85++; + this.consume_num86++; + this.consume_num87++; + this.consume_num88++; + this.consume_num89++; + this.consume_num90++; + this.consume_num91++; + this.consume_num92++; + this.consume_num93++; + this.consume_num94++; + this.consume_num95++; + this.consume_num96++; + this.consume_num97++; + this.consume_num98++; + this.consume_num99++; + this.consume_num100++; + this.consume_num101++; + this.consume_num102++; + this.consume_num103++; + this.consume_num104++; + this.consume_num105++; + this.consume_num106++; + this.consume_num107++; + this.consume_num108++; + this.consume_num109++; + this.consume_num110++; + this.consume_num111++; + this.consume_num112++; + this.consume_num113++; + this.consume_num114++; + this.consume_num115++; + this.consume_num116++; + this.consume_num117++; + this.consume_num118++; + this.consume_num119++; + this.consume_num120++; + this.consume_num121++; + this.consume_num122++; + this.consume_num123++; + this.consume_num124++; + this.consume_num125++; + this.consume_num126++; + this.consume_num127++; + this.consume_num128++; + this.consume_num129++; + this.consume_num130++; + this.consume_num131++; + this.consume_num132++; + this.consume_num133++; + this.consume_num134++; + this.consume_num135++; + this.consume_num136++; + this.consume_num137++; + this.consume_num138++; + this.consume_num139++; + this.consume_num140++; + this.consume_num141++; + this.consume_num142++; + this.consume_num143++; + this.consume_num144++; + this.consume_num145++; + this.consume_num146++; + this.consume_num147++; + this.consume_num148++; + this.consume_num149++; + this.consume_num150++; + this.consume_num151++; + this.consume_num152++; + this.consume_num153++; + this.consume_num154++; + this.consume_num155++; + this.consume_num156++; + this.consume_num157++; + this.consume_num158++; + this.consume_num159++; + this.consume_num160++; + this.consume_num161++; + this.consume_num162++; + this.consume_num163++; + this.consume_num164++; + this.consume_num165++; + this.consume_num166++; + this.consume_num167++; + this.consume_num168++; + this.consume_num169++; + this.consume_num170++; + this.consume_num171++; + this.consume_num172++; + this.consume_num173++; + this.consume_num174++; + this.consume_num175++; + this.consume_num176++; + this.consume_num177++; + this.consume_num178++; + this.consume_num179++; + this.consume_num180++; + this.consume_num181++; + this.consume_num182++; + this.consume_num183++; + this.consume_num184++; + this.consume_num185++; + this.consume_num186++; + this.consume_num187++; + this.consume_num188++; + this.consume_num189++; + this.consume_num190++; + this.consume_num191++; + this.consume_num192++; + this.consume_num193++; + this.consume_num194++; + this.consume_num195++; + this.consume_num196++; + this.consume_num197++; + this.consume_num198++; + this.consume_num199++; + this.consume_num200++; + this.consume_num201++; + this.consume_num202++; + this.consume_num203++; + this.consume_num204++; + this.consume_num205++; + this.consume_num206++; + this.consume_num207++; + this.consume_num208++; + this.consume_num209++; + this.consume_num210++; + this.consume_num211++; + this.consume_num212++; + this.consume_num213++; + this.consume_num214++; + this.consume_num215++; + this.consume_num216++; + this.consume_num217++; + this.consume_num218++; + this.consume_num219++; + this.consume_num220++; + this.consume_num221++; + this.consume_num222++; + this.consume_num223++; + this.consume_num224++; + this.consume_num225++; + this.consume_num226++; + this.consume_num227++; + this.consume_num228++; + this.consume_num229++; + this.consume_num230++; + this.consume_num231++; + this.consume_num232++; + this.consume_num233++; + this.consume_num234++; + this.consume_num235++; + this.consume_num236++; + this.consume_num237++; + this.consume_num238++; + this.consume_num239++; + this.consume_num240++; + this.consume_num241++; + this.consume_num242++; + this.consume_num243++; + this.consume_num244++; + this.consume_num245++; + this.consume_num246++; + this.consume_num247++; + this.consume_num248++; + this.consume_num249++; + this.consume_num250++; + this.consume_num251++; + this.consume_num252++; + this.consume_num253++; + this.consume_num254++; + this.consume_num255++; + this.consume_num256++; + this.consume_num257++; + this.consume_num258++; + this.consume_num259++; + this.consume_num260++; + this.consume_num261++; + this.consume_num262++; + this.consume_num263++; + this.consume_num264++; + this.consume_num265++; + this.consume_num266++; + this.consume_num267++; + this.consume_num268++; + this.consume_num269++; + this.consume_num270++; + this.consume_num271++; + this.consume_num272++; + this.consume_num273++; + this.consume_num274++; + this.consume_num275++; + this.consume_num276++; + this.consume_num277++; + this.consume_num278++; + this.consume_num279++; + this.consume_num280++; + this.consume_num281++; + this.consume_num282++; + this.consume_num283++; + this.consume_num284++; + this.consume_num285++; + this.consume_num286++; + this.consume_num287++; + this.consume_num288++; + this.consume_num289++; + this.consume_num290++; + this.consume_num291++; + this.consume_num292++; + this.consume_num293++; + this.consume_num294++; + this.consume_num295++; + this.consume_num296++; + this.consume_num297++; + this.consume_num298++; + this.consume_num299++; + this.consume_num300++; + this.consume_num301++; + this.consume_num302++; + this.consume_num303++; + this.consume_num304++; + this.consume_num305++; + this.consume_num306++; + this.consume_num307++; + this.consume_num308++; + this.consume_num309++; + this.consume_num310++; + this.consume_num311++; + this.consume_num312++; + this.consume_num313++; + this.consume_num314++; + this.consume_num315++; + this.consume_num316++; + this.consume_num317++; + this.consume_num318++; + this.consume_num319++; + this.consume_num320++; + this.consume_num321++; + this.consume_num322++; + this.consume_num323++; + this.consume_num324++; + this.consume_num325++; + this.consume_num326++; + this.consume_num327++; + this.consume_num328++; + this.consume_num329++; + this.consume_num330++; + this.consume_num331++; + this.consume_num332++; + this.consume_num333++; + this.consume_num334++; + this.consume_num335++; + this.consume_num336++; + this.consume_num337++; + this.consume_num338++; + this.consume_num339++; + this.consume_num340++; + this.consume_num341++; + this.consume_num342++; + this.consume_num343++; + this.consume_num344++; + this.consume_num345++; + this.consume_num346++; + this.consume_num347++; + this.consume_num348++; + this.consume_num349++; + this.consume_num350++; + this.consume_num351++; + this.consume_num352++; + this.consume_num353++; + this.consume_num354++; + this.consume_num355++; + this.consume_num356++; + this.consume_num357++; + this.consume_num358++; + this.consume_num359++; + this.consume_num360++; + this.consume_num361++; + this.consume_num362++; + this.consume_num363++; + this.consume_num364++; + this.consume_num365++; + this.consume_num366++; + this.consume_num367++; + this.consume_num368++; + this.consume_num369++; + this.consume_num370++; + this.consume_num371++; + this.consume_num372++; + this.consume_num373++; + this.consume_num374++; + this.consume_num375++; + this.consume_num376++; + this.consume_num377++; + this.consume_num378++; + this.consume_num379++; + this.consume_num380++; + this.consume_num381++; + this.consume_num382++; + this.consume_num383++; + this.consume_num384++; + this.consume_num385++; + this.consume_num386++; + this.consume_num387++; + this.consume_num388++; + this.consume_num389++; + this.consume_num390++; + this.consume_num391++; + this.consume_num392++; + this.consume_num393++; + this.consume_num394++; + this.consume_num395++; + this.consume_num396++; + this.consume_num397++; + this.consume_num398++; + this.consume_num399++; + this.consume_num400++; + this.consume_num401++; + this.consume_num402++; + this.consume_num403++; + this.consume_num404++; + this.consume_num405++; + this.consume_num406++; + this.consume_num407++; + this.consume_num408++; + this.consume_num409++; + this.consume_num410++; + this.consume_num411++; + this.consume_num412++; + this.consume_num413++; + this.consume_num414++; + this.consume_num415++; + this.consume_num416++; + this.consume_num417++; + this.consume_num418++; + this.consume_num419++; + this.consume_num420++; + this.consume_num421++; + this.consume_num422++; + this.consume_num423++; + this.consume_num424++; + this.consume_num425++; + this.consume_num426++; + this.consume_num427++; + this.consume_num428++; + this.consume_num429++; + this.consume_num430++; + this.consume_num431++; + this.consume_num432++; + this.consume_num433++; + this.consume_num434++; + this.consume_num435++; + this.consume_num436++; + this.consume_num437++; + this.consume_num438++; + this.consume_num439++; + this.consume_num440++; + this.consume_num441++; + this.consume_num442++; + this.consume_num443++; + this.consume_num444++; + this.consume_num445++; + this.consume_num446++; + this.consume_num447++; + this.consume_num448++; + this.consume_num449++; + this.consume_num450++; + this.consume_num451++; + this.consume_num452++; + this.consume_num453++; + this.consume_num454++; + this.consume_num455++; + this.consume_num456++; + this.consume_num457++; + this.consume_num458++; + this.consume_num459++; + this.consume_num460++; + this.consume_num461++; + this.consume_num462++; + this.consume_num463++; + this.consume_num464++; + this.consume_num465++; + this.consume_num466++; + this.consume_num467++; + this.consume_num468++; + this.consume_num469++; + this.consume_num470++; + this.consume_num471++; + this.consume_num472++; + this.consume_num473++; + this.consume_num474++; + this.consume_num475++; + this.consume_num476++; + this.consume_num477++; + this.consume_num478++; + this.consume_num479++; + this.consume_num480++; + this.consume_num481++; + this.consume_num482++; + this.consume_num483++; + this.consume_num484++; + this.consume_num485++; + this.consume_num486++; + this.consume_num487++; + this.consume_num488++; + this.consume_num489++; + this.consume_num490++; + this.consume_num491++; + this.consume_num492++; + this.consume_num493++; + this.consume_num494++; + this.consume_num495++; + this.consume_num496++; + this.consume_num497++; + this.consume_num498++; + this.consume_num499++; + this.consume_num500++; + this.consume_num501++; + this.consume_num502++; + this.consume_num503++; + this.consume_num504++; + this.consume_num505++; + this.consume_num506++; + this.consume_num507++; + this.consume_num508++; + this.consume_num509++; + this.consume_num510++; + this.consume_num511++; + this.consume_num512++; + this.consume_num513++; + this.consume_num514++; + this.consume_num515++; + this.consume_num516++; + this.consume_num517++; + this.consume_num518++; + this.consume_num519++; + this.consume_num520++; + this.consume_num521++; + this.consume_num522++; + this.consume_num523++; + this.consume_num524++; + this.consume_num525++; + this.consume_num526++; + this.consume_num527++; + this.consume_num528++; + this.consume_num529++; + this.consume_num530++; + this.consume_num531++; + this.consume_num532++; + this.consume_num533++; + this.consume_num534++; + this.consume_num535++; + this.consume_num536++; + this.consume_num537++; + this.consume_num538++; + this.consume_num539++; + this.consume_num540++; + this.consume_num541++; + this.consume_num542++; + this.consume_num543++; + this.consume_num544++; + this.consume_num545++; + this.consume_num546++; + this.consume_num547++; + this.consume_num548++; + this.consume_num549++; + this.consume_num550++; + this.consume_num551++; + this.consume_num552++; + this.consume_num553++; + this.consume_num554++; + this.consume_num555++; + this.consume_num556++; + this.consume_num557++; + this.consume_num558++; + this.consume_num559++; + this.consume_num560++; + this.consume_num561++; + this.consume_num562++; + this.consume_num563++; + this.consume_num564++; + this.consume_num565++; + this.consume_num566++; + this.consume_num567++; + this.consume_num568++; + this.consume_num569++; + this.consume_num570++; + this.consume_num571++; + this.consume_num572++; + this.consume_num573++; + this.consume_num574++; + this.consume_num575++; + this.consume_num576++; + this.consume_num577++; + this.consume_num578++; + this.consume_num579++; + this.consume_num580++; + this.consume_num581++; + this.consume_num582++; + this.consume_num583++; + this.consume_num584++; + this.consume_num585++; + this.consume_num586++; + this.consume_num587++; + this.consume_num588++; + this.consume_num589++; + this.consume_num590++; + this.consume_num591++; + this.consume_num592++; + this.consume_num593++; + this.consume_num594++; + this.consume_num595++; + this.consume_num596++; + this.consume_num597++; + this.consume_num598++; + this.consume_num599++; + this.consume_num600++; + this.consume_num601++; + this.consume_num602++; + this.consume_num603++; + this.consume_num604++; + this.consume_num605++; + this.consume_num606++; + this.consume_num607++; + this.consume_num608++; + this.consume_num609++; + this.consume_num610++; + this.consume_num611++; + this.consume_num612++; + this.consume_num613++; + this.consume_num614++; + this.consume_num615++; + this.consume_num616++; + this.consume_num617++; + this.consume_num618++; + this.consume_num619++; + this.consume_num620++; + this.consume_num621++; + this.consume_num622++; + this.consume_num623++; + this.consume_num624++; + this.consume_num625++; + this.consume_num626++; + this.consume_num627++; + this.consume_num628++; + this.consume_num629++; + this.consume_num630++; + this.consume_num631++; + this.consume_num632++; + this.consume_num633++; + this.consume_num634++; + this.consume_num635++; + this.consume_num636++; + this.consume_num637++; + this.consume_num638++; + this.consume_num639++; + this.consume_num640++; + this.consume_num641++; + this.consume_num642++; + this.consume_num643++; + this.consume_num644++; + this.consume_num645++; + this.consume_num646++; + this.consume_num647++; + this.consume_num648++; + this.consume_num649++; + this.consume_num650++; + this.consume_num651++; + this.consume_num652++; + this.consume_num653++; + this.consume_num654++; + this.consume_num655++; + this.consume_num656++; + this.consume_num657++; + this.consume_num658++; + this.consume_num659++; + this.consume_num660++; + this.consume_num661++; + this.consume_num662++; + this.consume_num663++; + this.consume_num664++; + this.consume_num665++; + this.consume_num666++; + this.consume_num667++; + this.consume_num668++; + this.consume_num669++; + this.consume_num670++; + this.consume_num671++; + this.consume_num672++; + this.consume_num673++; + this.consume_num674++; + this.consume_num675++; + this.consume_num676++; + this.consume_num677++; + this.consume_num678++; + this.consume_num679++; + this.consume_num680++; + this.consume_num681++; + this.consume_num682++; + this.consume_num683++; + this.consume_num684++; + this.consume_num685++; + this.consume_num686++; + this.consume_num687++; + this.consume_num688++; + this.consume_num689++; + this.consume_num690++; + this.consume_num691++; + this.consume_num692++; + this.consume_num693++; + this.consume_num694++; + this.consume_num695++; + this.consume_num696++; + this.consume_num697++; + this.consume_num698++; + this.consume_num699++; + this.consume_num700++; + this.consume_num701++; + this.consume_num702++; + this.consume_num703++; + this.consume_num704++; + this.consume_num705++; + this.consume_num706++; + this.consume_num707++; + this.consume_num708++; + this.consume_num709++; + this.consume_num710++; + this.consume_num711++; + this.consume_num712++; + this.consume_num713++; + this.consume_num714++; + this.consume_num715++; + this.consume_num716++; + this.consume_num717++; + this.consume_num718++; + this.consume_num719++; + this.consume_num720++; + this.consume_num721++; + this.consume_num722++; + this.consume_num723++; + this.consume_num724++; + this.consume_num725++; + this.consume_num726++; + this.consume_num727++; + this.consume_num728++; + this.consume_num729++; + this.consume_num730++; + this.consume_num731++; + this.consume_num732++; + this.consume_num733++; + this.consume_num734++; + this.consume_num735++; + this.consume_num736++; + this.consume_num737++; + this.consume_num738++; + this.consume_num739++; + this.consume_num740++; + this.consume_num741++; + this.consume_num742++; + this.consume_num743++; + this.consume_num744++; + this.consume_num745++; + this.consume_num746++; + this.consume_num747++; + this.consume_num748++; + this.consume_num749++; + this.consume_num750++; + this.consume_num751++; + this.consume_num752++; + this.consume_num753++; + this.consume_num754++; + this.consume_num755++; + this.consume_num756++; + this.consume_num757++; + this.consume_num758++; + this.consume_num759++; + this.consume_num760++; + this.consume_num761++; + this.consume_num762++; + this.consume_num763++; + this.consume_num764++; + this.consume_num765++; + this.consume_num766++; + this.consume_num767++; + this.consume_num768++; + this.consume_num769++; + this.consume_num770++; + this.consume_num771++; + this.consume_num772++; + this.consume_num773++; + this.consume_num774++; + this.consume_num775++; + this.consume_num776++; + this.consume_num777++; + this.consume_num778++; + this.consume_num779++; + this.consume_num780++; + this.consume_num781++; + this.consume_num782++; + this.consume_num783++; + this.consume_num784++; + this.consume_num785++; + this.consume_num786++; + this.consume_num787++; + this.consume_num788++; + this.consume_num789++; + this.consume_num790++; + this.consume_num791++; + this.consume_num792++; + this.consume_num793++; + this.consume_num794++; + this.consume_num795++; + this.consume_num796++; + this.consume_num797++; + this.consume_num798++; + this.consume_num799++; + this.consume_num800++; + this.consume_num801++; + this.consume_num802++; + this.consume_num803++; + this.consume_num804++; + this.consume_num805++; + this.consume_num806++; + this.consume_num807++; + this.consume_num808++; + this.consume_num809++; + this.consume_num810++; + this.consume_num811++; + this.consume_num812++; + this.consume_num813++; + this.consume_num814++; + this.consume_num815++; + this.consume_num816++; + this.consume_num817++; + this.consume_num818++; + this.consume_num819++; + this.consume_num820++; + this.consume_num821++; + this.consume_num822++; + this.consume_num823++; + this.consume_num824++; + this.consume_num825++; + this.consume_num826++; + this.consume_num827++; + this.consume_num828++; + this.consume_num829++; + this.consume_num830++; + this.consume_num831++; + this.consume_num832++; + this.consume_num833++; + this.consume_num834++; + this.consume_num835++; + this.consume_num836++; + this.consume_num837++; + this.consume_num838++; + this.consume_num839++; + this.consume_num840++; + this.consume_num841++; + this.consume_num842++; + this.consume_num843++; + this.consume_num844++; + this.consume_num845++; + this.consume_num846++; + this.consume_num847++; + this.consume_num848++; + this.consume_num849++; + this.consume_num850++; + this.consume_num851++; + this.consume_num852++; + this.consume_num853++; + this.consume_num854++; + this.consume_num855++; + this.consume_num856++; + this.consume_num857++; + this.consume_num858++; + this.consume_num859++; + this.consume_num860++; + this.consume_num861++; + this.consume_num862++; + this.consume_num863++; + this.consume_num864++; + this.consume_num865++; + this.consume_num866++; + this.consume_num867++; + this.consume_num868++; + this.consume_num869++; + this.consume_num870++; + this.consume_num871++; + this.consume_num872++; + this.consume_num873++; + this.consume_num874++; + this.consume_num875++; + this.consume_num876++; + this.consume_num877++; + this.consume_num878++; + this.consume_num879++; + this.consume_num880++; + this.consume_num881++; + this.consume_num882++; + this.consume_num883++; + this.consume_num884++; + this.consume_num885++; + this.consume_num886++; + this.consume_num887++; + this.consume_num888++; + this.consume_num889++; + this.consume_num890++; + this.consume_num891++; + this.consume_num892++; + this.consume_num893++; + this.consume_num894++; + this.consume_num895++; + this.consume_num896++; + this.consume_num897++; + this.consume_num898++; + this.consume_num899++; + this.consume_num900++; + this.consume_num901++; + this.consume_num902++; + this.consume_num903++; + this.consume_num904++; + this.consume_num905++; + this.consume_num906++; + this.consume_num907++; + this.consume_num908++; + this.consume_num909++; + this.consume_num910++; + this.consume_num911++; + this.consume_num912++; + this.consume_num913++; + this.consume_num914++; + this.consume_num915++; + this.consume_num916++; + this.consume_num917++; + this.consume_num918++; + this.consume_num919++; + this.consume_num920++; + this.consume_num921++; + this.consume_num922++; + this.consume_num923++; + this.consume_num924++; + this.consume_num925++; + this.consume_num926++; + this.consume_num927++; + this.consume_num928++; + this.consume_num929++; + this.consume_num930++; + this.consume_num931++; + this.consume_num932++; + this.consume_num933++; + this.consume_num934++; + this.consume_num935++; + this.consume_num936++; + this.consume_num937++; + this.consume_num938++; + this.consume_num939++; + this.consume_num940++; + this.consume_num941++; + this.consume_num942++; + this.consume_num943++; + this.consume_num944++; + this.consume_num945++; + this.consume_num946++; + this.consume_num947++; + this.consume_num948++; + this.consume_num949++; + this.consume_num950++; + this.consume_num951++; + this.consume_num952++; + this.consume_num953++; + this.consume_num954++; + this.consume_num955++; + this.consume_num956++; + this.consume_num957++; + this.consume_num958++; + this.consume_num959++; + this.consume_num960++; + this.consume_num961++; + this.consume_num962++; + this.consume_num963++; + this.consume_num964++; + this.consume_num965++; + this.consume_num966++; + this.consume_num967++; + this.consume_num968++; + this.consume_num969++; + this.consume_num970++; + this.consume_num971++; + this.consume_num972++; + this.consume_num973++; + this.consume_num974++; + this.consume_num975++; + this.consume_num976++; + this.consume_num977++; + this.consume_num978++; + this.consume_num979++; + this.consume_num980++; + this.consume_num981++; + this.consume_num982++; + this.consume_num983++; + this.consume_num984++; + this.consume_num985++; + this.consume_num986++; + this.consume_num987++; + this.consume_num988++; + this.consume_num989++; + this.consume_num990++; + this.consume_num991++; + this.consume_num992++; + this.consume_num993++; + this.consume_num994++; + this.consume_num995++; + this.consume_num996++; + this.consume_num997++; + this.consume_num998++; + this.consume_num999++; + this.consume_num1000++; + this.consume_num1001++; + this.consume_num1002++; + this.consume_num1003++; + this.consume_num1004++; + this.consume_num1005++; + this.consume_num1006++; + this.consume_num1007++; + this.consume_num1008++; + this.consume_num1009++; + this.consume_num1010++; + this.consume_num1011++; + this.consume_num1012++; + this.consume_num1013++; + this.consume_num1014++; + this.consume_num1015++; + this.consume_num1016++; + this.consume_num1017++; + this.consume_num1018++; + this.consume_num1019++; + this.consume_num1020++; + this.consume_num1021++; + this.consume_num1022++; + this.consume_num1023++; + this.consume_num1024++; + this.consume_num1025++; + this.consume_num1026++; + this.consume_num1027++; + this.consume_num1028++; + this.consume_num1029++; + this.consume_num1030++; + this.consume_num1031++; + this.consume_num1032++; + this.consume_num1033++; + this.consume_num1034++; + this.consume_num1035++; + this.consume_num1036++; + this.consume_num1037++; + this.consume_num1038++; + this.consume_num1039++; + this.consume_num1040++; + this.consume_num1041++; + this.consume_num1042++; + this.consume_num1043++; + this.consume_num1044++; + this.consume_num1045++; + this.consume_num1046++; + this.consume_num1047++; + this.consume_num1048++; + this.consume_num1049++; + this.consume_num1050++; + this.consume_num1051++; + this.consume_num1052++; + this.consume_num1053++; + this.consume_num1054++; + this.consume_num1055++; + this.consume_num1056++; + this.consume_num1057++; + this.consume_num1058++; + this.consume_num1059++; + this.consume_num1060++; + this.consume_num1061++; + this.consume_num1062++; + this.consume_num1063++; + this.consume_num1064++; + this.consume_num1065++; + this.consume_num1066++; + this.consume_num1067++; + this.consume_num1068++; + this.consume_num1069++; + this.consume_num1070++; + this.consume_num1071++; + this.consume_num1072++; + this.consume_num1073++; + this.consume_num1074++; + this.consume_num1075++; + this.consume_num1076++; + this.consume_num1077++; + this.consume_num1078++; + this.consume_num1079++; + this.consume_num1080++; + this.consume_num1081++; + this.consume_num1082++; + this.consume_num1083++; + this.consume_num1084++; + this.consume_num1085++; + this.consume_num1086++; + this.consume_num1087++; + this.consume_num1088++; + this.consume_num1089++; + this.consume_num1090++; + this.consume_num1091++; + this.consume_num1092++; + this.consume_num1093++; + this.consume_num1094++; + this.consume_num1095++; + this.consume_num1096++; + this.consume_num1097++; + this.consume_num1098++; + this.consume_num1099++; + this.consume_num1100++; + this.consume_num1101++; + this.consume_num1102++; + this.consume_num1103++; + this.consume_num1104++; + this.consume_num1105++; + this.consume_num1106++; + this.consume_num1107++; + this.consume_num1108++; + this.consume_num1109++; + this.consume_num1110++; + this.consume_num1111++; + this.consume_num1112++; + this.consume_num1113++; + this.consume_num1114++; + this.consume_num1115++; + this.consume_num1116++; + this.consume_num1117++; + this.consume_num1118++; + this.consume_num1119++; + this.consume_num1120++; + this.consume_num1121++; + this.consume_num1122++; + this.consume_num1123++; + this.consume_num1124++; + this.consume_num1125++; + this.consume_num1126++; + this.consume_num1127++; + this.consume_num1128++; + this.consume_num1129++; + this.consume_num1130++; + this.consume_num1131++; + this.consume_num1132++; + this.consume_num1133++; + this.consume_num1134++; + this.consume_num1135++; + this.consume_num1136++; + this.consume_num1137++; + this.consume_num1138++; + this.consume_num1139++; + this.consume_num1140++; + this.consume_num1141++; + this.consume_num1142++; + this.consume_num1143++; + this.consume_num1144++; + this.consume_num1145++; + this.consume_num1146++; + this.consume_num1147++; + this.consume_num1148++; + this.consume_num1149++; + this.consume_num1150++; + this.consume_num1151++; + this.consume_num1152++; + this.consume_num1153++; + this.consume_num1154++; + this.consume_num1155++; + this.consume_num1156++; + this.consume_num1157++; + this.consume_num1158++; + this.consume_num1159++; + this.consume_num1160++; + this.consume_num1161++; + this.consume_num1162++; + this.consume_num1163++; + this.consume_num1164++; + this.consume_num1165++; + this.consume_num1166++; + this.consume_num1167++; + this.consume_num1168++; + this.consume_num1169++; + this.consume_num1170++; + this.consume_num1171++; + this.consume_num1172++; + this.consume_num1173++; + this.consume_num1174++; + this.consume_num1175++; + this.consume_num1176++; + this.consume_num1177++; + this.consume_num1178++; + this.consume_num1179++; + this.consume_num1180++; + this.consume_num1181++; + this.consume_num1182++; + this.consume_num1183++; + this.consume_num1184++; + this.consume_num1185++; + this.consume_num1186++; + this.consume_num1187++; + this.consume_num1188++; + this.consume_num1189++; + this.consume_num1190++; + this.consume_num1191++; + this.consume_num1192++; + this.consume_num1193++; + this.consume_num1194++; + this.consume_num1195++; + this.consume_num1196++; + this.consume_num1197++; + this.consume_num1198++; + this.consume_num1199++; + this.consume_num1200++; + this.consume_num1201++; + this.consume_num1202++; + this.consume_num1203++; + this.consume_num1204++; + this.consume_num1205++; + this.consume_num1206++; + this.consume_num1207++; + this.consume_num1208++; + this.consume_num1209++; + this.consume_num1210++; + this.consume_num1211++; + this.consume_num1212++; + this.consume_num1213++; + this.consume_num1214++; + this.consume_num1215++; + this.consume_num1216++; + this.consume_num1217++; + this.consume_num1218++; + this.consume_num1219++; + this.consume_num1220++; + this.consume_num1221++; + this.consume_num1222++; + this.consume_num1223++; + this.consume_num1224++; + this.consume_num1225++; + this.consume_num1226++; + this.consume_num1227++; + this.consume_num1228++; + this.consume_num1229++; + this.consume_num1230++; + this.consume_num1231++; + this.consume_num1232++; + this.consume_num1233++; + this.consume_num1234++; + this.consume_num1235++; + this.consume_num1236++; + this.consume_num1237++; + this.consume_num1238++; + this.consume_num1239++; + this.consume_num1240++; + this.consume_num1241++; + this.consume_num1242++; + this.consume_num1243++; + this.consume_num1244++; + this.consume_num1245++; + this.consume_num1246++; + this.consume_num1247++; + this.consume_num1248++; + this.consume_num1249++; + this.consume_num1250++; + this.consume_num1251++; + this.consume_num1252++; + this.consume_num1253++; + this.consume_num1254++; + this.consume_num1255++; + this.consume_num1256++; + this.consume_num1257++; + this.consume_num1258++; + this.consume_num1259++; + this.consume_num1260++; + this.consume_num1261++; + this.consume_num1262++; + this.consume_num1263++; + this.consume_num1264++; + this.consume_num1265++; + this.consume_num1266++; + this.consume_num1267++; + this.consume_num1268++; + this.consume_num1269++; + this.consume_num1270++; + this.consume_num1271++; + this.consume_num1272++; + this.consume_num1273++; + this.consume_num1274++; + this.consume_num1275++; + this.consume_num1276++; + this.consume_num1277++; + this.consume_num1278++; + this.consume_num1279++; + this.consume_num1280++; + this.consume_num1281++; + this.consume_num1282++; + this.consume_num1283++; + this.consume_num1284++; + this.consume_num1285++; + this.consume_num1286++; + this.consume_num1287++; + this.consume_num1288++; + this.consume_num1289++; + this.consume_num1290++; + this.consume_num1291++; + this.consume_num1292++; + this.consume_num1293++; + this.consume_num1294++; + this.consume_num1295++; + this.consume_num1296++; + this.consume_num1297++; + this.consume_num1298++; + this.consume_num1299++; + this.consume_num1300++; + this.consume_num1301++; + this.consume_num1302++; + this.consume_num1303++; + this.consume_num1304++; + this.consume_num1305++; + this.consume_num1306++; + this.consume_num1307++; + this.consume_num1308++; + this.consume_num1309++; + this.consume_num1310++; + this.consume_num1311++; + this.consume_num1312++; + this.consume_num1313++; + this.consume_num1314++; + this.consume_num1315++; + this.consume_num1316++; + this.consume_num1317++; + this.consume_num1318++; + this.consume_num1319++; + this.consume_num1320++; + this.consume_num1321++; + this.consume_num1322++; + this.consume_num1323++; + this.consume_num1324++; + this.consume_num1325++; + this.consume_num1326++; + this.consume_num1327++; + this.consume_num1328++; + this.consume_num1329++; + this.consume_num1330++; + this.consume_num1331++; + this.consume_num1332++; + this.consume_num1333++; + this.consume_num1334++; + this.consume_num1335++; + this.consume_num1336++; + this.consume_num1337++; + this.consume_num1338++; + this.consume_num1339++; + this.consume_num1340++; + this.consume_num1341++; + this.consume_num1342++; + this.consume_num1343++; + this.consume_num1344++; + this.consume_num1345++; + this.consume_num1346++; + this.consume_num1347++; + this.consume_num1348++; + this.consume_num1349++; + this.consume_num1350++; + this.consume_num1351++; + this.consume_num1352++; + this.consume_num1353++; + this.consume_num1354++; + this.consume_num1355++; + this.consume_num1356++; + this.consume_num1357++; + this.consume_num1358++; + this.consume_num1359++; + this.consume_num1360++; + this.consume_num1361++; + this.consume_num1362++; + this.consume_num1363++; + this.consume_num1364++; + this.consume_num1365++; + this.consume_num1366++; + this.consume_num1367++; + this.consume_num1368++; + this.consume_num1369++; + this.consume_num1370++; + this.consume_num1371++; + this.consume_num1372++; + this.consume_num1373++; + this.consume_num1374++; + this.consume_num1375++; + this.consume_num1376++; + this.consume_num1377++; + this.consume_num1378++; + this.consume_num1379++; + this.consume_num1380++; + this.consume_num1381++; + this.consume_num1382++; + this.consume_num1383++; + this.consume_num1384++; + this.consume_num1385++; + this.consume_num1386++; + this.consume_num1387++; + this.consume_num1388++; + this.consume_num1389++; + this.consume_num1390++; + this.consume_num1391++; + this.consume_num1392++; + this.consume_num1393++; + this.consume_num1394++; + this.consume_num1395++; + this.consume_num1396++; + this.consume_num1397++; + this.consume_num1398++; + this.consume_num1399++; + this.consume_num1400++; + this.consume_num1401++; + this.consume_num1402++; + this.consume_num1403++; + this.consume_num1404++; + this.consume_num1405++; + this.consume_num1406++; + this.consume_num1407++; + this.consume_num1408++; + this.consume_num1409++; + this.consume_num1410++; + this.consume_num1411++; + this.consume_num1412++; + this.consume_num1413++; + this.consume_num1414++; + this.consume_num1415++; + this.consume_num1416++; + this.consume_num1417++; + this.consume_num1418++; + this.consume_num1419++; + this.consume_num1420++; + this.consume_num1421++; + this.consume_num1422++; + this.consume_num1423++; + this.consume_num1424++; + this.consume_num1425++; + this.consume_num1426++; + this.consume_num1427++; + this.consume_num1428++; + this.consume_num1429++; + this.consume_num1430++; + this.consume_num1431++; + this.consume_num1432++; + this.consume_num1433++; + this.consume_num1434++; + this.consume_num1435++; + this.consume_num1436++; + this.consume_num1437++; + this.consume_num1438++; + this.consume_num1439++; + this.consume_num1440++; + this.consume_num1441++; + this.consume_num1442++; + this.consume_num1443++; + this.consume_num1444++; + this.consume_num1445++; + this.consume_num1446++; + this.consume_num1447++; + this.consume_num1448++; + this.consume_num1449++; + this.consume_num1450++; + this.consume_num1451++; + this.consume_num1452++; + this.consume_num1453++; + this.consume_num1454++; + this.consume_num1455++; + this.consume_num1456++; + this.consume_num1457++; + this.consume_num1458++; + this.consume_num1459++; + this.consume_num1460++; + this.consume_num1461++; + this.consume_num1462++; + this.consume_num1463++; + this.consume_num1464++; + this.consume_num1465++; + this.consume_num1466++; + this.consume_num1467++; + this.consume_num1468++; + this.consume_num1469++; + this.consume_num1470++; + this.consume_num1471++; + this.consume_num1472++; + this.consume_num1473++; + this.consume_num1474++; + this.consume_num1475++; + this.consume_num1476++; + this.consume_num1477++; + this.consume_num1478++; + this.consume_num1479++; + this.consume_num1480++; + this.consume_num1481++; + this.consume_num1482++; + this.consume_num1483++; + this.consume_num1484++; + this.consume_num1485++; + this.consume_num1486++; + this.consume_num1487++; + this.consume_num1488++; + this.consume_num1489++; + this.consume_num1490++; + this.consume_num1491++; + this.consume_num1492++; + this.consume_num1493++; + this.consume_num1494++; + this.consume_num1495++; + this.consume_num1496++; + this.consume_num1497++; + this.consume_num1498++; + this.consume_num1499++; + this.consume_num1500++; + this.consume_num1501++; + this.consume_num1502++; + this.consume_num1503++; + this.consume_num1504++; + this.consume_num1505++; + this.consume_num1506++; + this.consume_num1507++; + this.consume_num1508++; + this.consume_num1509++; + this.consume_num1510++; + this.consume_num1511++; + this.consume_num1512++; + this.consume_num1513++; + this.consume_num1514++; + this.consume_num1515++; + this.consume_num1516++; + this.consume_num1517++; + this.consume_num1518++; + this.consume_num1519++; + this.consume_num1520++; + this.consume_num1521++; + this.consume_num1522++; + this.consume_num1523++; + this.consume_num1524++; + this.consume_num1525++; + this.consume_num1526++; + this.consume_num1527++; + this.consume_num1528++; + this.consume_num1529++; + this.consume_num1530++; + this.consume_num1531++; + this.consume_num1532++; + this.consume_num1533++; + this.consume_num1534++; + this.consume_num1535++; + this.consume_num1536++; + this.consume_num1537++; + this.consume_num1538++; + this.consume_num1539++; + this.consume_num1540++; + this.consume_num1541++; + this.consume_num1542++; + this.consume_num1543++; + this.consume_num1544++; + this.consume_num1545++; + this.consume_num1546++; + this.consume_num1547++; + this.consume_num1548++; + this.consume_num1549++; + this.consume_num1550++; + this.consume_num1551++; + this.consume_num1552++; + this.consume_num1553++; + this.consume_num1554++; + this.consume_num1555++; + this.consume_num1556++; + this.consume_num1557++; + this.consume_num1558++; + this.consume_num1559++; + this.consume_num1560++; + this.consume_num1561++; + this.consume_num1562++; + this.consume_num1563++; + this.consume_num1564++; + this.consume_num1565++; + this.consume_num1566++; + this.consume_num1567++; + this.consume_num1568++; + this.consume_num1569++; + this.consume_num1570++; + this.consume_num1571++; + this.consume_num1572++; + this.consume_num1573++; + this.consume_num1574++; + this.consume_num1575++; + this.consume_num1576++; + this.consume_num1577++; + this.consume_num1578++; + this.consume_num1579++; + this.consume_num1580++; + this.consume_num1581++; + this.consume_num1582++; + this.consume_num1583++; + this.consume_num1584++; + this.consume_num1585++; + this.consume_num1586++; + this.consume_num1587++; + this.consume_num1588++; + this.consume_num1589++; + this.consume_num1590++; + this.consume_num1591++; + this.consume_num1592++; + this.consume_num1593++; + this.consume_num1594++; + this.consume_num1595++; + this.consume_num1596++; + this.consume_num1597++; + this.consume_num1598++; + this.consume_num1599++; + this.consume_num1600++; + this.consume_num1601++; + this.consume_num1602++; + this.consume_num1603++; + this.consume_num1604++; + this.consume_num1605++; + this.consume_num1606++; + this.consume_num1607++; + this.consume_num1608++; + this.consume_num1609++; + this.consume_num1610++; + this.consume_num1611++; + this.consume_num1612++; + this.consume_num1613++; + this.consume_num1614++; + this.consume_num1615++; + this.consume_num1616++; + this.consume_num1617++; + this.consume_num1618++; + this.consume_num1619++; + this.consume_num1620++; + this.consume_num1621++; + this.consume_num1622++; + this.consume_num1623++; + this.consume_num1624++; + this.consume_num1625++; + this.consume_num1626++; + this.consume_num1627++; + this.consume_num1628++; + this.consume_num1629++; + this.consume_num1630++; + this.consume_num1631++; + this.consume_num1632++; + this.consume_num1633++; + this.consume_num1634++; + this.consume_num1635++; + this.consume_num1636++; + this.consume_num1637++; + this.consume_num1638++; + this.consume_num1639++; + this.consume_num1640++; + this.consume_num1641++; + this.consume_num1642++; + this.consume_num1643++; + this.consume_num1644++; + this.consume_num1645++; + this.consume_num1646++; + this.consume_num1647++; + this.consume_num1648++; + this.consume_num1649++; + this.consume_num1650++; + this.consume_num1651++; + this.consume_num1652++; + this.consume_num1653++; + this.consume_num1654++; + this.consume_num1655++; + this.consume_num1656++; + this.consume_num1657++; + this.consume_num1658++; + this.consume_num1659++; + this.consume_num1660++; + this.consume_num1661++; + this.consume_num1662++; + this.consume_num1663++; + this.consume_num1664++; + this.consume_num1665++; + this.consume_num1666++; + this.consume_num1667++; + this.consume_num1668++; + this.consume_num1669++; + this.consume_num1670++; + this.consume_num1671++; + this.consume_num1672++; + this.consume_num1673++; + this.consume_num1674++; + this.consume_num1675++; + this.consume_num1676++; + this.consume_num1677++; + this.consume_num1678++; + this.consume_num1679++; + this.consume_num1680++; + this.consume_num1681++; + this.consume_num1682++; + this.consume_num1683++; + this.consume_num1684++; + this.consume_num1685++; + this.consume_num1686++; + this.consume_num1687++; + this.consume_num1688++; + this.consume_num1689++; + this.consume_num1690++; + this.consume_num1691++; + this.consume_num1692++; + this.consume_num1693++; + this.consume_num1694++; + this.consume_num1695++; + this.consume_num1696++; + this.consume_num1697++; + this.consume_num1698++; + this.consume_num1699++; + this.consume_num1700++; + this.consume_num1701++; + this.consume_num1702++; + this.consume_num1703++; + this.consume_num1704++; + this.consume_num1705++; + this.consume_num1706++; + this.consume_num1707++; + this.consume_num1708++; + this.consume_num1709++; + this.consume_num1710++; + this.consume_num1711++; + this.consume_num1712++; + this.consume_num1713++; + this.consume_num1714++; + this.consume_num1715++; + this.consume_num1716++; + this.consume_num1717++; + this.consume_num1718++; + this.consume_num1719++; + this.consume_num1720++; + this.consume_num1721++; + this.consume_num1722++; + this.consume_num1723++; + this.consume_num1724++; + this.consume_num1725++; + this.consume_num1726++; + this.consume_num1727++; + this.consume_num1728++; + this.consume_num1729++; + this.consume_num1730++; + this.consume_num1731++; + this.consume_num1732++; + this.consume_num1733++; + this.consume_num1734++; + this.consume_num1735++; + this.consume_num1736++; + this.consume_num1737++; + this.consume_num1738++; + this.consume_num1739++; + this.consume_num1740++; + this.consume_num1741++; + this.consume_num1742++; + this.consume_num1743++; + this.consume_num1744++; + this.consume_num1745++; + this.consume_num1746++; + this.consume_num1747++; + this.consume_num1748++; + this.consume_num1749++; + this.consume_num1750++; + this.consume_num1751++; + this.consume_num1752++; + this.consume_num1753++; + this.consume_num1754++; + this.consume_num1755++; + this.consume_num1756++; + this.consume_num1757++; + this.consume_num1758++; + this.consume_num1759++; + this.consume_num1760++; + this.consume_num1761++; + this.consume_num1762++; + this.consume_num1763++; + this.consume_num1764++; + this.consume_num1765++; + this.consume_num1766++; + this.consume_num1767++; + this.consume_num1768++; + this.consume_num1769++; + this.consume_num1770++; + this.consume_num1771++; + this.consume_num1772++; + this.consume_num1773++; + this.consume_num1774++; + this.consume_num1775++; + this.consume_num1776++; + this.consume_num1777++; + this.consume_num1778++; + this.consume_num1779++; + this.consume_num1780++; + this.consume_num1781++; + this.consume_num1782++; + this.consume_num1783++; + this.consume_num1784++; + this.consume_num1785++; + this.consume_num1786++; + this.consume_num1787++; + this.consume_num1788++; + this.consume_num1789++; + this.consume_num1790++; + this.consume_num1791++; + this.consume_num1792++; + this.consume_num1793++; + this.consume_num1794++; + this.consume_num1795++; + this.consume_num1796++; + this.consume_num1797++; + this.consume_num1798++; + this.consume_num1799++; + this.consume_num1800++; + this.consume_num1801++; + this.consume_num1802++; + this.consume_num1803++; + this.consume_num1804++; + this.consume_num1805++; + this.consume_num1806++; + this.consume_num1807++; + this.consume_num1808++; + this.consume_num1809++; + this.consume_num1810++; + this.consume_num1811++; + this.consume_num1812++; + this.consume_num1813++; + this.consume_num1814++; + this.consume_num1815++; + this.consume_num1816++; + this.consume_num1817++; + + }) + } + } +} -- Gitee From cc7ea3a40be6bd292249d517048fe001470c5f30 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 30 Jul 2025 14:32:28 +0300 Subject: [PATCH 02/10] Created an arktsconfig.json for perf agains api compilation Signed-off-by: Alexander Gorshenev --- arkoala-arkts/trivial/user/arktsconfig.json | 1656 +++++++++++++++++++ 1 file changed, 1656 insertions(+) create mode 100644 arkoala-arkts/trivial/user/arktsconfig.json diff --git a/arkoala-arkts/trivial/user/arktsconfig.json b/arkoala-arkts/trivial/user/arktsconfig.json new file mode 100644 index 000000000..8a1d659e1 --- /dev/null +++ b/arkoala-arkts/trivial/user/arktsconfig.json @@ -0,0 +1,1656 @@ +{ + "compilerOptions": { + "package": "entry", + "outDir": "build/ets/abc", + "baseUrl": ".", + "paths": { + + + + "arkui.component": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.component" + ], + + "@kit.ArkUI": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.ArkUI.d.ets" + ], + + + "@internal.full.global": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@internal/full/global" + ], + "@ohos.InputMethodSubtype": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.InputMethodSubtype" + ], + "@ohos.UiTest": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.UiTest" + ], + "@ohos.WorkSchedulerExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.WorkSchedulerExtensionAbility" + ], + "@ohos.ability.errorCode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.ability.errorCode" + ], + "@ohos.ability.screenLockFileManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.ability.screenLockFileManager" + ], + "@ohos.abilityAccessCtrl": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.abilityAccessCtrl" + ], + "@ohos.accessibility.config": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.accessibility.config" + ], + "@ohos.accessibility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.accessibility" + ], + "@ohos.account.appAccount": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.account.appAccount" + ], + "@ohos.account.distributedAccount": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.account.distributedAccount" + ], + "@ohos.account.osAccount": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.account.osAccount" + ], + "@ohos.animation.windowAnimationManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.animation.windowAnimationManager" + ], + "@ohos.animator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.animator" + ], + "@ohos.app.ability.Ability": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.Ability" + ], + "@ohos.app.ability.AbilityConstant": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.AbilityConstant" + ], + "@ohos.app.ability.AbilityStage": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.AbilityStage" + ], + "@ohos.app.ability.ApplicationStateChangeCallback": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.ApplicationStateChangeCallback" + ], + "@ohos.app.ability.AtomicServiceOptions": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.AtomicServiceOptions" + ], + "@ohos.app.ability.Configuration": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.Configuration" + ], + "@ohos.app.ability.ConfigurationConstant": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.ConfigurationConstant" + ], + "@ohos.app.ability.DriverExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.DriverExtensionAbility" + ], + "@ohos.app.ability.EnvironmentCallback": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.EnvironmentCallback" + ], + "@ohos.app.ability.ExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.ExtensionAbility" + ], + "@ohos.app.ability.InsightIntentContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.InsightIntentContext" + ], + "@ohos.app.ability.InsightIntentExecutor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.InsightIntentExecutor" + ], + "@ohos.app.ability.OpenLinkOptions": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.OpenLinkOptions" + ], + "@ohos.app.ability.PrintExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.PrintExtensionAbility" + ], + "@ohos.app.ability.ServiceExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.ServiceExtensionAbility" + ], + "@ohos.app.ability.StartOptions": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.StartOptions" + ], + "@ohos.app.ability.UIAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.UIAbility" + ], + "@ohos.app.ability.UIExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.UIExtensionAbility" + ], + "@ohos.app.ability.UIExtensionContentSession": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.UIExtensionContentSession" + ], + "@ohos.app.ability.UserAuthExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.UserAuthExtensionAbility" + ], + "@ohos.app.ability.Want": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.Want" + ], + "@ohos.app.ability.abilityDelegatorRegistry": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.abilityDelegatorRegistry" + ], + "@ohos.app.ability.abilityManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.abilityManager" + ], + "@ohos.app.ability.appManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.appManager" + ], + "@ohos.app.ability.appRecovery": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.appRecovery" + ], + "@ohos.app.ability.application": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.application" + ], + "@ohos.app.ability.common": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.common" + ], + "@ohos.app.ability.contextConstant": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.contextConstant" + ], + "@ohos.app.ability.dataUriUtils": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.dataUriUtils" + ], + "@ohos.app.ability.dialogRequest": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.dialogRequest" + ], + "@ohos.app.ability.insightIntent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.insightIntent" + ], + "@ohos.app.ability.insightIntentDriver": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.insightIntentDriver" + ], + "@ohos.app.ability.kioskManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.kioskManager" + ], + "@ohos.app.ability.wantAgent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.wantAgent" + ], + "@ohos.app.ability.wantConstant": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.ability.wantConstant" + ], + "@ohos.app.form.FormExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.form.FormExtensionAbility" + ], + "@ohos.app.form.formBindingData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.form.formBindingData" + ], + "@ohos.app.form.formInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.form.formInfo" + ], + "@ohos.app.form.formProvider": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.app.form.formProvider" + ], + "@ohos.application.BackupExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.BackupExtensionAbility" + ], + "@ohos.application.DataShareExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.DataShareExtensionAbility" + ], + "@ohos.application.StaticSubscriberExtensionAbility": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.StaticSubscriberExtensionAbility" + ], + "@ohos.application.StaticSubscriberExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.StaticSubscriberExtensionContext" + ], + "@ohos.application.formError": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.formError" + ], + "@ohos.application.testRunner": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.testRunner" + ], + "@ohos.application.uriPermissionManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.application.uriPermissionManager" + ], + "@ohos.arkui.UIContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.UIContext" + ], + "@ohos.arkui.advanced.SplitLayout": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.advanced.SplitLayout" + ], + "@ohos.arkui.advanced.SwipeRefresher": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.advanced.SwipeRefresher" + ], + "@ohos.arkui.component": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.component" + ], + "@ohos.arkui.componentSnapshot": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.componentSnapshot" + ], + "@ohos.arkui.componentUtils": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.componentUtils" + ], + "@ohos.arkui.dragController": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.dragController" + ], + "@ohos.arkui.drawableDescriptor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.drawableDescriptor" + ], + "@ohos.arkui.inspector": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.inspector" + ], + "@ohos.arkui.node": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.node" + ], + "@ohos.arkui.observer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.observer" + ], + "@ohos.arkui.performanceMonitor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.performanceMonitor" + ], + "@ohos.arkui.shape": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.shape" + ], + "@ohos.arkui.stateManagement": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.stateManagement" + ], + "@ohos.arkui.theme": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.theme" + ], + "@ohos.arkui.uiExtension": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.arkui.uiExtension" + ], + "@ohos.base": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.base" + ], + "@ohos.batteryInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.batteryInfo" + ], + "@ohos.batteryStatistics": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.batteryStatistics" + ], + "@ohos.bluetooth.a2dp": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.a2dp" + ], + "@ohos.bluetooth.access": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.access" + ], + "@ohos.bluetooth.baseProfile": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.baseProfile" + ], + "@ohos.bluetooth.ble": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.ble" + ], + "@ohos.bluetooth.connection": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.connection" + ], + "@ohos.bluetooth.constant": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.constant" + ], + "@ohos.bluetooth.hfp": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.hfp" + ], + "@ohos.bluetooth.hid": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bluetooth.hid" + ], + "@ohos.brightness": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.brightness" + ], + "@ohos.buffer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.buffer" + ], + "@ohos.bundle.appControl": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.appControl" + ], + "@ohos.bundle.bundleManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.bundleManager" + ], + "@ohos.bundle.bundleMonitor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.bundleMonitor" + ], + "@ohos.bundle.bundleResourceManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.bundleResourceManager" + ], + "@ohos.bundle.defaultAppManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.defaultAppManager" + ], + "@ohos.bundle.distributedBundleManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.distributedBundleManager" + ], + "@ohos.bundle.freeInstall": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.freeInstall" + ], + "@ohos.bundle.installer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.installer" + ], + "@ohos.bundle.launcherBundleManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.launcherBundleManager" + ], + "@ohos.bundle.overlay": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.overlay" + ], + "@ohos.bundle.shortcutManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.bundle.shortcutManager" + ], + "@ohos.charger": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.charger" + ], + "@ohos.commonEventManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.commonEventManager" + ], + "@ohos.configPolicy": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.configPolicy" + ], + "@ohos.curves": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.curves" + ], + "@ohos.customization.customConfig": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.customization.customConfig" + ], + "@ohos.data.DataShareResultSet": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.DataShareResultSet" + ], + "@ohos.data.ValuesBucket": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.ValuesBucket" + ], + "@ohos.data.dataShare": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.dataShare" + ], + "@ohos.data.dataSharePredicates": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.dataSharePredicates" + ], + "@ohos.data.preferences": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.preferences" + ], + "@ohos.data.relationalStore": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.relationalStore" + ], + "@ohos.data.unifiedDataChannel": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.unifiedDataChannel" + ], + "@ohos.data.uniformTypeDescriptor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.data.uniformTypeDescriptor" + ], + "@ohos.deviceInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.deviceInfo" + ], + "@ohos.deviceStatus.dragInteraction": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.deviceStatus.dragInteraction" + ], + "@ohos.display": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.display" + ], + "@ohos.distributedHardware.mechanicManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.distributedHardware.mechanicManager" + ], + "@ohos.driver.deviceManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.driver.deviceManager" + ], + "@ohos.effectKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.effectKit" + ], + "@ohos.enterprise.adminManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.enterprise.adminManager" + ], + "@ohos.enterprise.securityManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.enterprise.securityManager" + ], + "@ohos.events.emitter": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.events.emitter" + ], + "@ohos.file.cloudSync": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.cloudSync" + ], + "@ohos.file.cloudSyncManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.cloudSyncManager" + ], + "@ohos.file.environment": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.environment" + ], + "@ohos.file.fileuri": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.fileuri" + ], + "@ohos.file.fs": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.fs" + ], + "@ohos.file.hash": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.hash" + ], + "@ohos.file.photoAccessHelper": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.photoAccessHelper" + ], + "@ohos.file.securityLabel": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.securityLabel" + ], + "@ohos.file.statvfs": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.file.statvfs" + ], + "@ohos.fileshare": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.fileshare" + ], + "@ohos.font": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.font" + ], + "@ohos.fontManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.fontManager" + ], + "@ohos.geoLocationManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.geoLocationManager" + ], + "@ohos.graphics.colorSpaceManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.colorSpaceManager" + ], + "@ohos.graphics.common2D": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.common2D" + ], + "@ohos.graphics.displaySync": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.displaySync" + ], + "@ohos.graphics.drawing": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.drawing" + ], + "@ohos.graphics.hdrCapability": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.hdrCapability" + ], + "@ohos.graphics.scene": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.scene" + ], + "@ohos.graphics.text": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.text" + ], + "@ohos.graphics.uiEffect": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.graphics.uiEffect" + ], + "@ohos.hiSysEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hiSysEvent" + ], + "@ohos.hiTraceChain": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hiTraceChain" + ], + "@ohos.hiTraceMeter": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hiTraceMeter" + ], + "@ohos.hidebug": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hidebug" + ], + "@ohos.hilog": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hilog" + ], + "@ohos.hiviewdfx.hiAppEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.hiviewdfx.hiAppEvent" + ], + "@ohos.i18n": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.i18n" + ], + "@ohos.inputMethod.Panel": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.inputMethod.Panel" + ], + "@ohos.inputMethod": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.inputMethod" + ], + "@ohos.intl": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.intl" + ], + "@ohos.logLibrary": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.logLibrary" + ], + "@ohos.matrix4": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.matrix4" + ], + "@ohos.measure": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.measure" + ], + "@ohos.mediaquery": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.mediaquery" + ], + "@ohos.multimedia.audio": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.audio" + ], + "@ohos.multimedia.audioHaptic": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.audioHaptic" + ], + "@ohos.multimedia.camera": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.camera" + ], + "@ohos.multimedia.cameraPicker": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.cameraPicker" + ], + "@ohos.multimedia.drm": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.drm" + ], + "@ohos.multimedia.image": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.image" + ], + "@ohos.multimedia.media": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.media" + ], + "@ohos.multimedia.systemSoundManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimedia.systemSoundManager" + ], + "@ohos.multimodalInput.gestureEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.gestureEvent" + ], + "@ohos.multimodalInput.inputConsumer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.inputConsumer" + ], + "@ohos.multimodalInput.inputDevice": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.inputDevice" + ], + "@ohos.multimodalInput.inputEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.inputEvent" + ], + "@ohos.multimodalInput.intentionCode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.intentionCode" + ], + "@ohos.multimodalInput.keyCode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.keyCode" + ], + "@ohos.multimodalInput.keyEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.keyEvent" + ], + "@ohos.multimodalInput.mouseEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.mouseEvent" + ], + "@ohos.multimodalInput.pointer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.pointer" + ], + "@ohos.multimodalInput.shortKey": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.shortKey" + ], + "@ohos.multimodalInput.touchEvent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.multimodalInput.touchEvent" + ], + "@ohos.net.connection": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.connection" + ], + "@ohos.net.http": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.http" + ], + "@ohos.net.networkSecurity": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.networkSecurity" + ], + "@ohos.net.sharing": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.sharing" + ], + "@ohos.net.statistics": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.statistics" + ], + "@ohos.net.webSocket": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.net.webSocket" + ], + "@ohos.notificationManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.notificationManager" + ], + "@ohos.notificationSubscribe": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.notificationSubscribe" + ], + "@ohos.pasteboard": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.pasteboard" + ], + "@ohos.pluginComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.pluginComponent" + ], + "@ohos.power": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.power" + ], + "@ohos.print": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.print" + ], + "@ohos.privacyManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.privacyManager" + ], + "@ohos.prompt": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.prompt" + ], + "@ohos.promptAction": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.promptAction" + ], + "@ohos.reminderAgentManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.reminderAgentManager" + ], + "@ohos.request": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.request" + ], + "@ohos.resourceManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceManager" + ], + "@ohos.resourceschedule.backgroundProcessManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceschedule.backgroundProcessManager" + ], + "@ohos.resourceschedule.backgroundTaskManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceschedule.backgroundTaskManager" + ], + "@ohos.resourceschedule.systemload": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceschedule.systemload" + ], + "@ohos.resourceschedule.usageStatistics": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceschedule.usageStatistics" + ], + "@ohos.resourceschedule.workScheduler": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.resourceschedule.workScheduler" + ], + "@ohos.router": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.router" + ], + "@ohos.rpc": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.rpc" + ], + "@ohos.runningLock": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.runningLock" + ], + "@ohos.screen": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.screen" + ], + "@ohos.screenLock": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.screenLock" + ], + "@ohos.screenshot": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.screenshot" + ], + "@ohos.security.cert": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.security.cert" + ], + "@ohos.security.certManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.security.certManager" + ], + "@ohos.security.certManagerDialog": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.security.certManagerDialog" + ], + "@ohos.security.cryptoFramework": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.security.cryptoFramework" + ], + "@ohos.security.huks": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.security.huks" + ], + "@ohos.sensor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.sensor" + ], + "@ohos.settings": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.settings" + ], + "@ohos.systemCapability": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.systemCapability" + ], + "@ohos.systemDateTime": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.systemDateTime" + ], + "@ohos.systemParameterEnhance": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.systemParameterEnhance" + ], + "@ohos.telephony.data": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.telephony.data" + ], + "@ohos.telephony.esim": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.telephony.esim" + ], + "@ohos.telephony.observer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.telephony.observer" + ], + "@ohos.telephony.radio": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.telephony.radio" + ], + "@ohos.telephony.sim": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.telephony.sim" + ], + "@ohos.thermal": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.thermal" + ], + "@ohos.transfer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.transfer" + ], + "@ohos.uiExtensionHost": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.uiExtensionHost" + ], + "@ohos.update": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.update" + ], + "@ohos.uri": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.uri" + ], + "@ohos.url": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.url" + ], + "@ohos.usbManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.usbManager" + ], + "@ohos.usbManager.serial": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.usbManager.serial" + ], + "@ohos.userIAM.faceAuth": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.userIAM.faceAuth" + ], + "@ohos.userIAM.userAccessCtrl": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.userIAM.userAccessCtrl" + ], + "@ohos.userIAM.userAuth": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.userIAM.userAuth" + ], + "@ohos.util.ArrayList": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.ArrayList" + ], + "@ohos.util.Deque": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.Deque" + ], + "@ohos.util.HashMap": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.HashMap" + ], + "@ohos.util.HashSet": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.HashSet" + ], + "@ohos.util.LightWeightMap": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.LightWeightMap" + ], + "@ohos.util.LightWeightSet": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.LightWeightSet" + ], + "@ohos.util.LinkedList": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.LinkedList" + ], + "@ohos.util.List": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.List" + ], + "@ohos.util.PlainArray": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.PlainArray" + ], + "@ohos.util.Queue": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.Queue" + ], + "@ohos.util.Stack": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.Stack" + ], + "@ohos.util.TreeMap": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.TreeMap" + ], + "@ohos.util.TreeSet": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.TreeSet" + ], + "@ohos.util": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util" + ], + "@ohos.util.json": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.json" + ], + "@ohos.util.stream": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.util.stream" + ], + "@ohos.vibrator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.vibrator" + ], + "@ohos.web.netErrorList": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.web.netErrorList" + ], + "@ohos.web.webview": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.web.webview" + ], + "@ohos.wifi": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.wifi" + ], + "@ohos.wifiManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.wifiManager" + ], + "@ohos.window": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.window" + ], + "@ohos.xml": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.xml" + ], + "@ohos.zlib": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@ohos.zlib" + ], + "@system.app": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@system.app" + ], + "@system.mediaquery": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@system.mediaquery" + ], + "@system.prompt": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@system.prompt" + ], + "@system.router": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/@system.router" + ], + "ability.abilityResult": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/ability/abilityResult" + ], + "ability.connectOptions": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/ability/connectOptions" + ], + "application.AbilityDelegator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityDelegator" + ], + "application.AbilityMonitor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityMonitor" + ], + "application.AbilityRunningInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityRunningInfo" + ], + "application.AbilityStageContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityStageContext" + ], + "application.AbilityStageMonitor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityStageMonitor" + ], + "application.AbilityStartCallback": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityStartCallback" + ], + "application.AbilityStateData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AbilityStateData" + ], + "application.AppStateData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AppStateData" + ], + "application.ApplicationContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ApplicationContext" + ], + "application.ApplicationStateObserver": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ApplicationStateObserver" + ], + "application.AutoFillType": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/AutoFillType" + ], + "application.BaseContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/BaseContext" + ], + "application.Context": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/Context" + ], + "application.DriverExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/DriverExtensionContext" + ], + "application.EventHub": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/EventHub" + ], + "application.ExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ExtensionContext" + ], + "application.ExtensionRunningInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ExtensionRunningInfo" + ], + "application.FormExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/FormExtensionContext" + ], + "application.KioskStatus": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/KioskStatus" + ], + "application.MultiAppMode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/MultiAppMode" + ], + "application.ProcessData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ProcessData" + ], + "application.ProcessInformation": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ProcessInformation" + ], + "application.RunningAppClone": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/RunningAppClone" + ], + "application.RunningMultiAppInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/RunningMultiAppInfo" + ], + "application.RunningMultiInstanceInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/RunningMultiInstanceInfo" + ], + "application.ServiceExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/ServiceExtensionContext" + ], + "application.UIAbilityContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/UIAbilityContext" + ], + "application.UIExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/UIExtensionContext" + ], + "application.WorkSchedulerExtensionContext": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/WorkSchedulerExtensionContext" + ], + "application.abilityDelegatorArgs": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/abilityDelegatorArgs" + ], + "application.shellCmdResult": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/application/shellCmdResult" + ], + "arkui.AttributeUpdater": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/AttributeUpdater" + ], + "arkui.BuilderNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/BuilderNode" + ], + "arkui.ComponentContent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/ComponentContent" + ], + "arkui.Content": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/Content" + ], + "arkui.FrameNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/FrameNode" + ], + "arkui.Graphics": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/Graphics" + ], + "arkui.NodeContent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/NodeContent" + ], + "arkui.NodeController": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/NodeController" + ], + "arkui.RenderNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/RenderNode" + ], + "arkui.SymbolGlyphModifier": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/SymbolGlyphModifier" + ], + "arkui.TextModifier": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/TextModifier" + ], + "arkui.UserView": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/UserView" + ], + "arkui.component.actionSheet": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/actionSheet" + ], + "arkui.component.alertDialog": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/alertDialog" + ], + "arkui.component.alphabetIndexer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/alphabetIndexer" + ], + "arkui.component.animation": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/animation" + ], + "arkui.component.animator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/animator" + ], + "arkui.component.badge": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/badge" + ], + "arkui.component.blank": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/blank" + ], + "arkui.component.builder": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/builder" + ], + "arkui.component.button": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/button" + ], + "arkui.component.calendarPicker": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/calendarPicker" + ], + "arkui.component.canvas": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/canvas" + ], + "arkui.component.checkbox": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/checkbox" + ], + "arkui.component.checkboxgroup": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/checkboxgroup" + ], + "arkui.component.circle": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/circle" + ], + "arkui.component.column": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/column" + ], + "arkui.component.columnSplit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/columnSplit" + ], + "arkui.component.common": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/common" + ], + "arkui.component.containerSpan": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/containerSpan" + ], + "arkui.component.contentSlot": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/contentSlot" + ], + "arkui.component.counter": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/counter" + ], + "arkui.component.customComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/customComponent" + ], + "arkui.component.customDialogController": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/customDialogController" + ], + "arkui.component.dataPanel": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/dataPanel" + ], + "arkui.component.datePicker": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/datePicker" + ], + "arkui.component.divider": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/divider" + ], + "arkui.component.effectComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/effectComponent" + ], + "arkui.component.ellipse": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/ellipse" + ], + "arkui.component.embeddedComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/embeddedComponent" + ], + "arkui.component.enums": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/enums" + ], + "arkui.component.extendableComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/extendableComponent" + ], + "arkui.component.flex": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/flex" + ], + "arkui.component.flowItem": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/flowItem" + ], + "arkui.component.focus": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/focus" + ], + "arkui.component.folderStack": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/folderStack" + ], + "arkui.component.forEach": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/forEach" + ], + "arkui.component.formComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/formComponent" + ], + "arkui.component.formLink": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/formLink" + ], + "arkui.component.gauge": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/gauge" + ], + "arkui.component.gesture": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/gesture" + ], + "arkui.component.grid": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/grid" + ], + "arkui.component.gridCol": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/gridCol" + ], + "arkui.component.gridItem": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/gridItem" + ], + "arkui.component.gridRow": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/gridRow" + ], + "arkui.component.hyperlink": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/hyperlink" + ], + "arkui.component.image": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/image" + ], + "arkui.component.imageAnimator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/imageAnimator" + ], + "arkui.component.imageCommon": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/imageCommon" + ], + "arkui.component.imageSpan": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/imageSpan" + ], + "arkui.component.indicatorcomponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/indicatorcomponent" + ], + "arkui.component.inspector": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/inspector" + ], + "arkui.component.interop": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/interop" + ], + "arkui.component.lazyForEach": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/lazyForEach" + ], + "arkui.component.lazyGridLayout": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/lazyGridLayout" + ], + "arkui.component.line": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/line" + ], + "arkui.component.linearindicator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/linearindicator" + ], + "arkui.component.list": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/list" + ], + "arkui.component.listItem": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/listItem" + ], + "arkui.component.listItemGroup": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/listItemGroup" + ], + "arkui.component.loadingProgress": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/loadingProgress" + ], + "arkui.component.locationButton": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/locationButton" + ], + "arkui.component.marquee": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/marquee" + ], + "arkui.component.matrix2d": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/matrix2d" + ], + "arkui.component.mediaCachedImage": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/mediaCachedImage" + ], + "arkui.component.menu": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/menu" + ], + "arkui.component.menuItem": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/menuItem" + ], + "arkui.component.menuItemGroup": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/menuItemGroup" + ], + "arkui.component.navDestination": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/navDestination" + ], + "arkui.component.navigation": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/navigation" + ], + "arkui.component.nodeContainer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/nodeContainer" + ], + "arkui.component.pageTransition": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/pageTransition" + ], + "arkui.component.particle": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/particle" + ], + "arkui.component.pasteButton": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/pasteButton" + ], + "arkui.component.path": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/path" + ], + "arkui.component.patternLock": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/patternLock" + ], + "arkui.component.pluginComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/pluginComponent" + ], + "arkui.component.polygon": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/polygon" + ], + "arkui.component.polyline": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/polyline" + ], + "arkui.component.progress": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/progress" + ], + "arkui.component.qrcode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/qrcode" + ], + "arkui.component.radio": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/radio" + ], + "arkui.component.rating": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/rating" + ], + "arkui.component.rect": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/rect" + ], + "arkui.component.refresh": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/refresh" + ], + "arkui.component.relativeContainer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/relativeContainer" + ], + "arkui.component.remoteWindow": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/remoteWindow" + ], + "arkui.component.repeat": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/repeat" + ], + "arkui.component.resources": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/resources" + ], + "arkui.component.richEditor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/richEditor" + ], + "arkui.component.richText": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/richText" + ], + "arkui.component.rootScene": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/rootScene" + ], + "arkui.component.row": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/row" + ], + "arkui.component.rowSplit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/rowSplit" + ], + "arkui.component.saveButton": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/saveButton" + ], + "arkui.component.screen": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/screen" + ], + "arkui.component.scroll": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/scroll" + ], + "arkui.component.scrollBar": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/scrollBar" + ], + "arkui.component.search": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/search" + ], + "arkui.component.securityComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/securityComponent" + ], + "arkui.component.select": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/select" + ], + "arkui.component.shape": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/shape" + ], + "arkui.component.sidebar": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/sidebar" + ], + "arkui.component.slider": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/slider" + ], + "arkui.component.span": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/span" + ], + "arkui.component.stack": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/stack" + ], + "arkui.component.stateManagement": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/stateManagement" + ], + "arkui.component.stepper": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/stepper" + ], + "arkui.component.stepperItem": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/stepperItem" + ], + "arkui.component.styledString": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/styledString" + ], + "arkui.component.swiper": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/swiper" + ], + "arkui.component.symbolSpan": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/symbolSpan" + ], + "arkui.component.symbolglyph": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/symbolglyph" + ], + "arkui.component.tabContent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/tabContent" + ], + "arkui.component.tabs": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/tabs" + ], + "arkui.component.text": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/text" + ], + "arkui.component.textArea": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textArea" + ], + "arkui.component.textClock": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textClock" + ], + "arkui.component.textCommon": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textCommon" + ], + "arkui.component.textInput": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textInput" + ], + "arkui.component.textPicker": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textPicker" + ], + "arkui.component.textTimer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/textTimer" + ], + "arkui.component.timePicker": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/timePicker" + ], + "arkui.component.toggle": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/toggle" + ], + "arkui.component.uiExtensionComponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/uiExtensionComponent" + ], + "arkui.component.units": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/units" + ], + "arkui.component.video": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/video" + ], + "arkui.component.waterFlow": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/waterFlow" + ], + "arkui.component.web": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/web" + ], + "arkui.component.windowScene": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/windowScene" + ], + "arkui.component.withTheme": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/withTheme" + ], + "arkui.component.xcomponent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/component/xcomponent" + ], + "arkui.external.resource": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/external/resource" + ], + "@koalaui.runtime.annotations": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.annotations" + ], + "@koalaui.runtime.common": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.common" + ], + "@koalaui.runtime.internals": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.internals" + ], + "@koalaui.runtime.memo.bind": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.bind" + ], + "@koalaui.runtime.memo.changeListener": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.changeListener" + ], + "@koalaui.runtime.memo.contextLocal": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.contextLocal" + ], + "@koalaui.runtime.memo.entry": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.entry" + ], + "@koalaui.runtime.memo.node": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.node" + ], + "@koalaui.runtime.memo.remember": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.remember" + ], + "@koalaui.runtime.memo.repeat": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.repeat" + ], + "@koalaui.runtime.memo.testing": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.memo.testing" + ], + "@koalaui.runtime.states.Disposable": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.states.Disposable" + ], + "@koalaui.runtime.states.GlobalStateManager": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.states.GlobalStateManager" + ], + "@koalaui.runtime.states.State": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.states.State" + ], + "@koalaui.runtime.tree.IncrementalNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.tree.IncrementalNode" + ], + "@koalaui.runtime.tree.PrimeNumbers": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.tree.PrimeNumbers" + ], + "@koalaui.runtime.tree.ReadonlyTreeNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.tree.ReadonlyTreeNode" + ], + "@koalaui.runtime.tree.TreeNode": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.tree.TreeNode" + ], + "@koalaui.runtime.tree.TreePath": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/runtime-api/@koalaui.runtime.tree.TreePath" + ], + "arkui.stateManagement.decorator": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/decorator" + ], + "arkui.stateManagement.remember": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/remember" + ], + "arkui.stateManagement.runtime": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/runtime" + ], + "arkui.stateManagement.storage.appStorage": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/storage/appStorage" + ], + "arkui.stateManagement.storage.environment": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/storage/environment" + ], + "arkui.stateManagement.storage.localStorage": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/storage/localStorage" + ], + "arkui.stateManagement.storage.persistentStorage": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/storage/persistentStorage" + ], + "arkui.stateManagement.storage.storageProperty": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/storage/storageProperty" + ], + "arkui.stateManagement.utils": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/arkui/stateManagement/utils" + ], + "bundleManager.AbilityInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/AbilityInfo" + ], + "bundleManager.AppProvisionInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/AppProvisionInfo" + ], + "bundleManager.ApplicationInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/ApplicationInfo" + ], + "bundleManager.BundleInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/BundleInfo" + ], + "bundleManager.BundlePackInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/BundlePackInfo" + ], + "bundleManager.BundleResourceInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/BundleResourceInfo" + ], + "bundleManager.DispatchInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/DispatchInfo" + ], + "bundleManager.ElementName": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/ElementName" + ], + "bundleManager.ExtensionAbilityInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/ExtensionAbilityInfo" + ], + "bundleManager.HapModuleInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/HapModuleInfo" + ], + "bundleManager.LauncherAbilityInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/LauncherAbilityInfo" + ], + "bundleManager.LauncherAbilityResourceInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/LauncherAbilityResourceInfo" + ], + "bundleManager.Metadata": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/Metadata" + ], + "bundleManager.OverlayModuleInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/OverlayModuleInfo" + ], + "bundleManager.PermissionDef": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/PermissionDef" + ], + "bundleManager.PluginBundleInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/PluginBundleInfo" + ], + "bundleManager.RecoverableApplicationInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/RecoverableApplicationInfo" + ], + "bundleManager.RemoteAbilityInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/RemoteAbilityInfo" + ], + "bundleManager.SharedBundleInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/SharedBundleInfo" + ], + "bundleManager.ShortcutInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/ShortcutInfo" + ], + "bundleManager.Skill": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/bundleManager/Skill" + ], + "commonEvent.commonEventData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/commonEvent/commonEventData" + ], + "commonEvent.commonEventPublishData": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/commonEvent/commonEventPublishData" + ], + "commonEvent.commonEventSubscribeInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/commonEvent/commonEventSubscribeInfo" + ], + "commonEvent.commonEventSubscriber": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/commonEvent/commonEventSubscriber" + ], + "global.rawFileDescriptor": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/global/rawFileDescriptor" + ], + "global.resource": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/global/resource" + ], + "graphics3d.Scene": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/graphics3d/Scene" + ], + "graphics3d.SceneNodes": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/graphics3d/SceneNodes" + ], + "graphics3d.ScenePostProcessSettings": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/graphics3d/ScenePostProcessSettings" + ], + "graphics3d.SceneResources": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/graphics3d/SceneResources" + ], + "graphics3d.SceneTypes": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/graphics3d/SceneTypes" + ], + "multimedia.ringtonePlayer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/multimedia/ringtonePlayer" + ], + "multimedia.soundPool": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/multimedia/soundPool" + ], + "multimedia.systemTonePlayer": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/multimedia/systemTonePlayer" + ], + "notification.NotificationCommonDef": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/NotificationCommonDef" + ], + "notification.notificationActionButton": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationActionButton" + ], + "notification.notificationContent": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationContent" + ], + "notification.notificationFlags": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationFlags" + ], + "notification.notificationRequest": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationRequest" + ], + "notification.notificationSlot": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationSlot" + ], + "notification.notificationSorting": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationSorting" + ], + "notification.notificationSortingMap": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationSortingMap" + ], + "notification.notificationSubscribeInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationSubscribeInfo" + ], + "notification.notificationSubscriber": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationSubscriber" + ], + "notification.notificationTemplate": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationTemplate" + ], + "notification.notificationUserInput": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/notification/notificationUserInput" + ], + "permissions": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/permissions" + ], + "security.PermissionRequestResult": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/security/PermissionRequestResult" + ], + "wantAgent.triggerInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/wantAgent/triggerInfo" + ], + "wantAgent.wantAgentInfo": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/api/wantAgent/wantAgentInfo" + ], + "@arkts.collections": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/arkts/@arkts.collections" + ], + "@arkts.math.Decimal": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/arkts/@arkts.math.Decimal" + ], + "@kit.AbilityKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.AbilityKit" + ], + "@kit.ArkTS": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.ArkTS" + ], + "@kit.AudioKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.AudioKit" + ], + "@kit.BasicServicesKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.BasicServicesKit" + ], + "@kit.CoreFileKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.CoreFileKit" + ], + "@kit.CryptoArchitectureKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.CryptoArchitectureKit" + ], + "@kit.DeviceCertificateKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.DeviceCertificateKit" + ], + "@kit.ImageKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.ImageKit" + ], + "@kit.LocalizationKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.LocalizationKit" + ], + "@kit.LocationKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.LocationKit" + ], + "@kit.NetworkKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.NetworkKit" + ], + "@kit.PerformanceAnalysisKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.PerformanceAnalysisKit" + ], + "@kit.TestKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.TestKit" + ], + "@kit.UniversalKeystoreKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.UniversalKeystoreKit" + ], + "@kit.UserAuthenticationKit": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/kits/@kit.UserAuthenticationKit" + ], + "std": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/build-tools/ets2panda/lib/stdlib/std" + ], + "escompat": [ + "../../../ohos-sdk-linux/20/ets/ets1.2/build-tools/ets2panda/lib/stdlib/escompat" + ] + }, + + + "plugins": [ + { + "transform": "@koalaui/ui-plugins", + "state": "parsed", + "name": "ui" + }, + { + "transform": "@koalaui/memo-plugin", + "state": "parsed", + "name": "memo" + }, + { + "transform": "@koalaui/ui-plugins", + "state": "checked", + "name": "ui" + }, + { + "transform": "@koalaui/memo-plugin", + "state": "checked", + "name": "memo" + } + ] + + }, + + "include": [ + "./src/ets/**/*.ets" + ], + "exclude": [ + "./src/ets/**/page1.ets", + "./src/ets/**/page2.ets", + "./src/ets/**/page3.ets", + "./src/ets/**/entry.ets" + ] + +} -- Gitee From 5d18a441a54d1d0a6f06fa179ec2a2521c1fd755 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 31 Jul 2025 17:15:11 +0300 Subject: [PATCH 03/10] Set --group-by to 1 for ease of debug Signed-off-by: Alexander Gorshenev --- arkoala-arkts/trivial/user/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/trivial/user/package.json b/arkoala-arkts/trivial/user/package.json index 0dc5a72a3..ede32310e 100644 --- a/arkoala-arkts/trivial/user/package.json +++ b/arkoala-arkts/trivial/user/package.json @@ -12,7 +12,7 @@ "clean": "rimraf build generated unmemoized js_output abc lib app/user/build app/user/libs", "build:user": "npm run compile -C ../../../ui2abc/ui-plugins && npm run build", "build:dump": "node ../../../ui2abc/fast-arktsc --config ./ui2abcconfig.json --simultaneous --compiler-flags '--dump-plugin-ast' --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", - "build": "node ../../../ui2abc/fast-arktsc --simultaneous --group-by 100 --config ./ui2abcconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", + "build": "node ../../../ui2abc/fast-arktsc --simultaneous --group-by 1 --config ./arktsconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", "run": "npm run build:user && mkdir -p ../../build/userPandaFiles && cp ./build/user.abc ../../build/userPandaFiles/hello.abc && npm run build:loader:node -C ../.. && ACE_LIBRARY_PATH=../../build PANDA_HOME=../../../incremental/tools/panda/node_modules/@panda/sdk node ../../build/index.js panda-ani:class=@ohos.example.src.ets.entry.Entry 10", "copy": "mkdir -p ../build && cp -r build/user.abc ../build/", "pack": "npm run clt:download && cd app && DEVECO_SDK_HOME=../$npm_package_config_sdk_path ../$npm_package_config_hvigorw_path --no-daemon --mode module -p product=default -p module=user@default assembleHar", -- Gitee From 3c458d41885f3e4cfe43ecb63382a24688a8fd11 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 31 Jul 2025 17:02:48 +0300 Subject: [PATCH 04/10] Don't pass KOALA_WORKSPACE=1 unconditionally when compiling agians SDK Signed-off-by: Alexander Gorshenev --- incremental/tools/panda/arkts/ui2abc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/incremental/tools/panda/arkts/ui2abc b/incremental/tools/panda/arkts/ui2abc index 178dd72ad..e9c4652a4 100755 --- a/incremental/tools/panda/arkts/ui2abc +++ b/incremental/tools/panda/arkts/ui2abc @@ -14,5 +14,5 @@ # limitations under the License. SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"` -KOALA_WORKSPACE=1 PANDA_SDK_PATH=${PANDA_SDK_PATH:=$SCRIPT_DIR/../node_modules/@panda/sdk} node $SCRIPT_DIR/../../../../ui2abc/libarkts/lib/es2panda.js "$@" +PANDA_SDK_PATH=${PANDA_SDK_PATH:=$SCRIPT_DIR/../node_modules/@panda/sdk} node $SCRIPT_DIR/../../../../ui2abc/libarkts/lib/es2panda.js "$@" -- Gitee From c44f1df4882a24c6bddd82bba0eae6ef0ee5c4d9 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 30 Jul 2025 12:12:15 +0300 Subject: [PATCH 05/10] Replace SearchController property with searchController property Signed-off-by: Alexander Gorshenev --- .../trivial/user/src/ets/pages/1.2/file1.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file103.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file104.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file108.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file118.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file122.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file145.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file156.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file160.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file179.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file195.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file201.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file229.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file271.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file280.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file282.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file286.ets | 12 ++++++------ .../trivial/user/src/ets/pages/1.2/file287.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file297.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file299.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file302.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file313.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file317.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file340.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file35.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file350.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file354.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file373.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file390.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file395.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file423.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file466.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file474.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file476.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file480.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file481.ets | 12 ++++++------ .../trivial/user/src/ets/pages/1.2/file491.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file493.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file497.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file7.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file77.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file85.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file88.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file91.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file92.ets | 6 +++--- .../trivial/user/src/ets/pages/1.2/file93.ets | 6 +++--- 46 files changed, 144 insertions(+), 144 deletions(-) diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets index 1cd6d9629..1f3c3fa85 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets @@ -244,7 +244,7 @@ struct ActionEventCommoneventDragInput0190 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -292,7 +292,7 @@ struct ActionEventCommoneventDragInput0190 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -302,7 +302,7 @@ struct ActionEventCommoneventDragInput0190 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets index dea0f1cbf..af7e2494d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets @@ -160,7 +160,7 @@ struct ActionEventCommoneventDragInput0160 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -197,7 +197,7 @@ struct ActionEventCommoneventDragInput0160 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -214,7 +214,7 @@ struct ActionEventCommoneventDragInput0160 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets index 3c7c409da..3fb583505 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets @@ -363,7 +363,7 @@ struct ActionEventCommoneventDragInput0220 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -403,7 +403,7 @@ struct ActionEventCommoneventDragInput0220 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -413,7 +413,7 @@ struct ActionEventCommoneventDragInput0220 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets index 5d6fb3597..28cd64e8c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets @@ -177,7 +177,7 @@ struct ActionEventCommoneventDragInput0240 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 10 } as ColumnOptions) { Column({ space: 5 } as ColumnOptions) { @@ -217,7 +217,7 @@ struct ActionEventCommoneventDragInput0240 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -227,7 +227,7 @@ struct ActionEventCommoneventDragInput0240 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets index f6e83cb9a..a23065153 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets @@ -301,7 +301,7 @@ struct ActionEventCommoneventDragInput0080 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -329,7 +329,7 @@ struct ActionEventCommoneventDragInput0080 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -337,7 +337,7 @@ struct ActionEventCommoneventDragInput0080 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets index 4aa53090f..63fb93f51 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets @@ -277,7 +277,7 @@ struct ActionEventCommoneventDragInput0180 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -324,7 +324,7 @@ struct ActionEventCommoneventDragInput0180 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -334,7 +334,7 @@ struct ActionEventCommoneventDragInput0180 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets index 09400d761..c3ee1f021 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets @@ -395,7 +395,7 @@ struct ActionEventCommoneventDragInput0170 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -441,7 +441,7 @@ struct ActionEventCommoneventDragInput0170 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -451,7 +451,7 @@ struct ActionEventCommoneventDragInput0170 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets index 625148676..7adc957d7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets @@ -155,7 +155,7 @@ struct ActionEventCommoneventDragInput0260 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -183,7 +183,7 @@ struct ActionEventCommoneventDragInput0260 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -191,7 +191,7 @@ struct ActionEventCommoneventDragInput0260 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets index 93a5449f1..ecc2a1ba8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets @@ -120,7 +120,7 @@ struct ActionEventCommoneventDragInput0130 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -157,7 +157,7 @@ struct ActionEventCommoneventDragInput0130 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -174,7 +174,7 @@ struct ActionEventCommoneventDragInput0130 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets index f7c999b88..7d79108d2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets @@ -179,7 +179,7 @@ struct ActionEventCommoneventDragInput0210 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -219,7 +219,7 @@ struct ActionEventCommoneventDragInput0210 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -229,7 +229,7 @@ struct ActionEventCommoneventDragInput0210 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { }) diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets index 234b61032..432877a89 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets @@ -282,7 +282,7 @@ struct ActionEventCommoneventDragInput0190 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -330,7 +330,7 @@ struct ActionEventCommoneventDragInput0190 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -340,7 +340,7 @@ struct ActionEventCommoneventDragInput0190 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets index d896808fd..f0ec4df01 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets @@ -226,7 +226,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -253,7 +253,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -265,7 +265,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } } diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets index 07d882e45..18e64052f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets @@ -206,7 +206,7 @@ struct ActionEventCommoneventDragInput0150 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -247,7 +247,7 @@ struct ActionEventCommoneventDragInput0150 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -266,7 +266,7 @@ struct ActionEventCommoneventDragInput0150 { this.textList.push('onDrag'); }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets index 0b257c266..295c9a9b6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets @@ -360,7 +360,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -387,7 +387,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -399,7 +399,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets index 0a515ec27..2eccd4c04 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets @@ -67,7 +67,7 @@ struct ActionEventCommoneventDragInput0230 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -107,7 +107,7 @@ struct ActionEventCommoneventDragInput0230 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -117,7 +117,7 @@ struct ActionEventCommoneventDragInput0230 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets index 842363d22..4c45107f8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets @@ -223,7 +223,7 @@ struct ActionEventCommoneventDragInput0140 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -260,7 +260,7 @@ struct ActionEventCommoneventDragInput0140 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -277,7 +277,7 @@ struct ActionEventCommoneventDragInput0140 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets index aec531b84..a5d9dc2ad 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets @@ -101,7 +101,7 @@ struct ActionEventCommoneventDragInput0200 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -150,7 +150,7 @@ struct ActionEventCommoneventDragInput0200 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -160,7 +160,7 @@ struct ActionEventCommoneventDragInput0200 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { @@ -262,7 +262,7 @@ struct ActionEventCommoneventDragInput0250 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -290,7 +290,7 @@ struct ActionEventCommoneventDragInput0250 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -298,7 +298,7 @@ struct ActionEventCommoneventDragInput0250 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets index 0721078ff..0175d0cc1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets @@ -181,7 +181,7 @@ struct ActionEventCommoneventDragInput0080 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -209,7 +209,7 @@ struct ActionEventCommoneventDragInput0080 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -217,7 +217,7 @@ struct ActionEventCommoneventDragInput0080 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets index faa725501..864889946 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets @@ -251,7 +251,7 @@ struct ActionEventCommoneventDragInput0160 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -288,7 +288,7 @@ struct ActionEventCommoneventDragInput0160 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -305,7 +305,7 @@ struct ActionEventCommoneventDragInput0160 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets index 33fec0ddf..20704b6f9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets @@ -109,7 +109,7 @@ struct ActionEventCommoneventDragInput0220 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -149,7 +149,7 @@ struct ActionEventCommoneventDragInput0220 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -159,7 +159,7 @@ struct ActionEventCommoneventDragInput0220 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets index 57fe91e7f..bb95019c9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets @@ -277,7 +277,7 @@ struct ActionEventCommoneventDragInput0240 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 10 } as ColumnOptions) { Column({ space: 5 } as ColumnOptions) { @@ -317,7 +317,7 @@ struct ActionEventCommoneventDragInput0240 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -327,7 +327,7 @@ struct ActionEventCommoneventDragInput0240 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets index 6f28ed8f0..d592390dc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets @@ -94,7 +94,7 @@ struct ActionEventCommoneventDragInput0080 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -122,7 +122,7 @@ struct ActionEventCommoneventDragInput0080 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -130,7 +130,7 @@ struct ActionEventCommoneventDragInput0080 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets index 48b98a694..a33321e3f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets @@ -79,7 +79,7 @@ struct ActionEventCommoneventDragInput0180 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -126,7 +126,7 @@ struct ActionEventCommoneventDragInput0180 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -136,7 +136,7 @@ struct ActionEventCommoneventDragInput0180 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets index a049ae776..8e99a79ef 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets @@ -162,7 +162,7 @@ struct ActionEventCommoneventDragInput0170 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -208,7 +208,7 @@ struct ActionEventCommoneventDragInput0170 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -218,7 +218,7 @@ struct ActionEventCommoneventDragInput0170 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets index ca8686f56..f62ab2a88 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets @@ -146,7 +146,7 @@ struct ActionEventCommoneventDragInput0150 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -187,7 +187,7 @@ struct ActionEventCommoneventDragInput0150 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -206,7 +206,7 @@ struct ActionEventCommoneventDragInput0150 { this.textList.push('onDrag'); }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets index 890bca59c..912359fee 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets @@ -305,7 +305,7 @@ struct ActionEventCommoneventDragInput0260 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -333,7 +333,7 @@ struct ActionEventCommoneventDragInput0260 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -341,7 +341,7 @@ struct ActionEventCommoneventDragInput0260 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets index 2114cf071..8ac80c1e3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets @@ -206,7 +206,7 @@ struct ActionEventCommoneventDragInput0130 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -243,7 +243,7 @@ struct ActionEventCommoneventDragInput0130 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -260,7 +260,7 @@ struct ActionEventCommoneventDragInput0130 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets index 6443f844b..4800a2dde 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets @@ -168,7 +168,7 @@ struct ActionEventCommoneventDragInput0210 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -208,7 +208,7 @@ struct ActionEventCommoneventDragInput0210 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -218,7 +218,7 @@ struct ActionEventCommoneventDragInput0210 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { }) diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets index a99e159c5..e69bc81dd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets @@ -136,7 +136,7 @@ struct ActionEventCommoneventDragInput0190 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -184,7 +184,7 @@ struct ActionEventCommoneventDragInput0190 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -194,7 +194,7 @@ struct ActionEventCommoneventDragInput0190 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets index b5b1a22e2..bc04c6c0d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets @@ -313,7 +313,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -340,7 +340,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -352,7 +352,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } } diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets index a69d62dac..6430449f8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets @@ -309,7 +309,7 @@ struct ActionEventCommoneventDragInput0150 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -350,7 +350,7 @@ struct ActionEventCommoneventDragInput0150 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -369,7 +369,7 @@ struct ActionEventCommoneventDragInput0150 { this.textList.push('onDrag'); }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets index ad99703d8..9d8978d1f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets @@ -67,7 +67,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -94,7 +94,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -106,7 +106,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets index 0cce21a20..b5f93c16a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets @@ -160,7 +160,7 @@ struct ActionEventCommoneventDragInput0230 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -200,7 +200,7 @@ struct ActionEventCommoneventDragInput0230 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -210,7 +210,7 @@ struct ActionEventCommoneventDragInput0230 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets index 3b8cf3aa4..f53e4489e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets @@ -336,7 +336,7 @@ struct ActionEventCommoneventDragInput0140 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -373,7 +373,7 @@ struct ActionEventCommoneventDragInput0140 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -390,7 +390,7 @@ struct ActionEventCommoneventDragInput0140 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets index 91e683df4..3cb79dc15 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets @@ -249,7 +249,7 @@ struct ActionEventCommoneventDragInput0200 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -298,7 +298,7 @@ struct ActionEventCommoneventDragInput0200 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -308,7 +308,7 @@ struct ActionEventCommoneventDragInput0200 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets index f77526d9b..2ceb51866 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets @@ -97,7 +97,7 @@ struct ActionEventCommoneventDragInput0250 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -125,7 +125,7 @@ struct ActionEventCommoneventDragInput0250 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -133,7 +133,7 @@ struct ActionEventCommoneventDragInput0250 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { @@ -301,7 +301,7 @@ struct ActionEventCommoneventDragInput0080 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -329,7 +329,7 @@ struct ActionEventCommoneventDragInput0080 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -337,7 +337,7 @@ struct ActionEventCommoneventDragInput0080 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets index 2f4c323f8..7907fc0c6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets @@ -329,7 +329,7 @@ struct ActionEventCommoneventDragInput0160 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -366,7 +366,7 @@ struct ActionEventCommoneventDragInput0160 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -383,7 +383,7 @@ struct ActionEventCommoneventDragInput0160 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets index cae229f5c..77190c375 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets @@ -258,7 +258,7 @@ struct ActionEventCommoneventDragInput0220 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -298,7 +298,7 @@ struct ActionEventCommoneventDragInput0220 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -308,7 +308,7 @@ struct ActionEventCommoneventDragInput0220 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets index c4f0d7b24..655fc6b71 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets @@ -86,7 +86,7 @@ struct ActionEventCommoneventDragInput0240 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 10 } as ColumnOptions) { Column({ space: 5 } as ColumnOptions) { @@ -126,7 +126,7 @@ struct ActionEventCommoneventDragInput0240 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -136,7 +136,7 @@ struct ActionEventCommoneventDragInput0240 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets index 53531d565..503e18cd7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets @@ -84,7 +84,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -111,7 +111,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -123,7 +123,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } } diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets index d1d128e70..4e8b8e853 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets @@ -249,7 +249,7 @@ struct ActionEventCommoneventDragInput0120 { @State text: string = ''; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -276,7 +276,7 @@ struct ActionEventCommoneventDragInput0120 { }) Search({ value: '0123456789abcdefg', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .defaultFocus(true) @@ -288,7 +288,7 @@ struct ActionEventCommoneventDragInput0120 { this.text = 'DragStart' }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 6) + this.searchController.setTextSelection(0, 6) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets index a0311f67e..752ec6a8f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets @@ -307,7 +307,7 @@ struct ActionEventCommoneventDragInput0230 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -347,7 +347,7 @@ struct ActionEventCommoneventDragInput0230 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -357,7 +357,7 @@ struct ActionEventCommoneventDragInput0230 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) .onDragEnter((event: DragEvent, extraParams?: string):void => { this.textList.push('onDragEnter'); diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets index 9ee3ce3b8..115d32068 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets @@ -155,7 +155,7 @@ struct ActionEventCommoneventDragInput0140 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -192,7 +192,7 @@ struct ActionEventCommoneventDragInput0140 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -209,7 +209,7 @@ struct ActionEventCommoneventDragInput0140 { this.textList.push('onDrag'); }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets index 29b9c24cf..de7f37fd0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets @@ -280,7 +280,7 @@ struct ActionEventCommoneventDragInput0200 { @State textList: string[] = [] as string[]; textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5 } as ColumnOptions) { Column({ space: 10 } as ColumnOptions) { @@ -329,7 +329,7 @@ struct ActionEventCommoneventDragInput0200 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }) .width(200) .height(60) @@ -339,7 +339,7 @@ struct ActionEventCommoneventDragInput0200 { size: 30 }) .onFocus(() => { - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5 } as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets index bee25337d..875307baf 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets @@ -151,7 +151,7 @@ struct ActionEventCommoneventDragInput0250 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -179,7 +179,7 @@ struct ActionEventCommoneventDragInput0250 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -187,7 +187,7 @@ struct ActionEventCommoneventDragInput0250 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets index da4f3a132..bbb581448 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets @@ -71,7 +71,7 @@ struct ActionEventCommoneventDragInput0080 { @State flagNum: number = 0 textAreaController: TextAreaController = new TextAreaController(); textInputController: TextInputController = new TextInputController(); - SearchController: SearchController = new SearchController(); + searchController: SearchController = new SearchController(); build() { Column({ space: 5} as ColumnOptions) { Column({space: 10} as ColumnOptions) { @@ -99,7 +99,7 @@ struct ActionEventCommoneventDragInput0080 { }) Search({ value: 'Search', - controller: this.SearchController + controller: this.searchController }).width(200).height(60) .id('2') .draggable(true) @@ -107,7 +107,7 @@ struct ActionEventCommoneventDragInput0080 { size: 30 }) .onFocus(()=>{ - this.SearchController.setTextSelection(0, 100) + this.searchController.setTextSelection(0, 100) }) } Column({ space: 5} as ColumnOptions) { -- Gitee From 6dfb2fba93696741b73741812cd57a4b4fc300d4 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 31 Jul 2025 16:32:00 +0300 Subject: [PATCH 06/10] A difference in sdk: nop offset field Signed-off-by: Alexander Gorshenev --- arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets index 09ac4c15f..8bfaaf85d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets @@ -378,7 +378,8 @@ struct ComponentPopupBoxModalTransitionStyle0010 { showClose: true, title: { title: "title", subtitle: "subtitle" }, preferType: SheetType.CENTER, - offset: { x: '-50vp', y: '-50vp' } + // TODO: blue zone? + //offset: { x: '-50vp', y: '-50vp' } } as SheetOptions).id('ComponentPopupBoxModalTransitionStyle0010_button_01') } } -- Gitee From 88a9ef21f32d79885c9f50f54aa6feda6fa58fa2 Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Thu, 31 Jul 2025 16:32:55 +0300 Subject: [PATCH 07/10] inserted ButtonOptions, ColumnOptions etc in the imports Signed-off-by: Alexander Gorshenev --- arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets | 2 ++ arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets | 2 ++ 501 files changed, 1002 insertions(+) diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets index 934d32e97..3696f3364 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { FLAG_OF_FILE_0 } from './file0' import { FLAG_OF_FILE_1 } from './file1' import { FLAG_OF_FILE_2 } from './file2' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets index 927d16a7c..f6b620ed0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file0.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets index 1f3c3fa85..15a84b772 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file1.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Color, Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets index df128c766..17ac17ccd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file10.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets index 95eb4ec2d..fedd6c472 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file100.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets index f60927cfe..ab31cb528 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file101.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets index 8bfaaf85d..30cda46a7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file102.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets index af7e2494d..45f411958 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file103.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets index 3fb583505..f30af8c60 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file104.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column, TextAreaController,TextInputController, SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets index 6aca5661e..39f58dca4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file105.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets index 99221eff0..e4fdad7f7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file106.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets index b07efeea6..565268b33 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file107.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Color,Column,List,ListOptions,FlexAlign,HorizontalAlign, Margin,ShadowOptions,TextAlign,LazyForEach,ListItem,Text, IDataSource,DataChangeListener diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets index 28cd64e8c..089dd0143 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file108.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,RadialGradientOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets index 0b6e4ed6a..6c8a6eac4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file109.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets index 12ae72d3b..c94ce0070 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file11.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets index 53d41ee78..f003c39b6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file110.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Column,Text,Image,BlurStyle, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets index 92ea39447..facd6de08 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file111.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets index c37627a00..6271ab6f1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file112.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets index eca843079..2059c7051 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file113.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets index 96eb15351..72f03cc1b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file114.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, BlurStyle, Text, ThemeColorMode, AdaptiveColor } from '@ohos.arkui.component'; import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets index 6ecce8a7f..3619e85b2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file115.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,EdgeEffect,OnScrollCallback, ComputedBarAttribute diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets index 8a5e0cf50..fb1d344ef 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file116.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets index d13788532..a166343af 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file117.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets index a23065153..825ce3c8a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file118.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,OnScrollCallback } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets index ce54d02df..b16556bad 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file119.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets index d20621a01..4d2f83494 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file12.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets index a808c35b3..f739d4344 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file120.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets index 63905af8f..4029d0107 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file121.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets index 63fb93f51..7e3c82194 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file122.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets index ae7269690..9e29812ff 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file123.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, Row, ObscuredReasons} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets index d49ac9ede..cd858e323 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file124.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets index a3dadbf90..c98ab562f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file125.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets index eaee63998..be8e0903b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file126.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets index 3b4f33893..6f8bfb492 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file127.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets index 8184d7518..992e9774f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file128.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets index 9a690aeba..13d0302a0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file129.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets index 48c217749..bcf1c9922 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file13.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin,ColumnOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets index 162c337ee..a4ea5c97d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file130.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets index c99c1eacd..5f21fec41 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file131.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, ImageAttribute,ImageAttribute,Image,FlexAlign,$r,ImageFit,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets index a9542b2d4..870499460 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file132.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets index 93500da5b..8aae7c65b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file133.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets index a4b384f15..3d092dae9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file134.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets index f2b581773..c5adb335c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file135.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets index 4d798eee5..676b12a41 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file136.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets index 2af51938b..61533765e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file137.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets index 99eb490b0..95751a7e9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file138.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, $r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets index 15ce670c5..109b52825 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file139.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets index 63b931676..46e6c77af 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file14.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import Window from '@ohos.window' import common from '@ohos.app.ability.common'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets index 09e55fdec..2464e083f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file140.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets index 28921a7ae..d46deab65 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file141.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets index 48ae3c2b3..b522bc1d0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file142.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets index f47ab8c8b..f51762199 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file143.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets index 6352eac1e..bbe7913d8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file144.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ListOptions, BorderOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Padding, FlexOptions,GridLayoutOptions, Flex,FlexWrap,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets index c3ee1f021..30dfb5bff 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file145.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets index 76e829c70..efdc7e818 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file146.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets index 1e6bb606e..4294b817b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file147.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,Text,Grid,GridItem,ClickEvent,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets index 7893e5a7f..b5a1328fe 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file148.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets index 1cab7ee8e..06d02078e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file149.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,Resource, ColumnOptions,$r,$$ } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets index 90ed8a156..e02a99d90 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file15.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets index 96ad3af83..eeb31d353 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file150.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,$r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets index 211057447..fcdceb33d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file151.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, Menu,MenuItem,ScrollDirection,MenuItemOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets index c770d1e5c..56b68484b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file152.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; import { Entry, Component, Row, Column, Color, Text, Image, Builder, Button, GestureEvent, TapGesture } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets index 931c19d05..681b1d4ba 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file153.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign,Button,ClickEvent,$r,Column, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets index e3e6f1072..33bd3d066 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file154.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets index ff4439233..5884fd5ba 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file155.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets index 7adc957d7..21b924737 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file156.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets index 711d5b2b9..ce9d4caf9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file157.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets index 61d0907b2..7c4d30bee 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file158.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets index 8b870a573..3d799d321 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file159.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets index e4e30a18d..7c3016f6a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file16.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets index ecc2a1ba8..9238700e2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file160.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets index 2933d66cb..db1b748fb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file161.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets index 388b32383..c75f4b556 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file162.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets index 3ff615784..6f900457c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file163.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets index f280e69b9..2d26176df 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file164.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,List,$$, ListItem, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets index 4c3fc6385..0486b0ab4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file165.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets index 773b94ba6..2b1eec0b8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file166.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets index 63486e5d2..589020f69 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file167.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets index 691e3337d..515c1fb57 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file168.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets index b6e35d321..1cb85c416 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file169.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Flex,FlexOptions,EdgeEffect,FlexWrap,Alignment, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, GridDirection, GridLayoutOptions,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets index 8748db5c4..9aa529565 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file17.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, BorderOptions,VerticalAlign,FocusPriority,GridItemOptions,RowOptions,Row,GridItemStyle diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets index a3855339b..3a068e0df 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file170.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets index fed254ce6..ba217904e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file171.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets index 69e249333..7cc468d44 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file172.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets index bcdcf9a8a..aaa7a820a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file173.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,SwiperController,Text,Swiper,TextAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets index 3691f1805..81795bafc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file174.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets index bbaad954e..fe4c0b619 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file175.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets index 8e9662aaa..15a215ea5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file176.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets index 477565f3f..388bb766b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file177.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets index 163663d01..ee1755db2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file178.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,$r,ShadowStyle} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets index 7d79108d2..695c87ec6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file179.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets index 5fc359bda..924a1e459 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file18.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets index ac9daf381..21fc566a3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file180.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, ScrollDirection,CalendarAlign,CalendarPicker,Margin,Text,FlexAlign,FontWeight, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets index d4aafd233..0fbbd126c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file181.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets index f24c0bb19..741bd280a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file182.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets index fd597b019..dd24cad8f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file183.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets index 295633fba..42cd63d76 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file184.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Column,Text,Image,BlurStyle, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets index 3d3edff3e..cb278824e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file185.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Button, Text, LongPressGesture, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; import { State } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets index 82043d8cd..8b64c5e8f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file186.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets index 9307ed141..c40c6cb11 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file187.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets index 038537b80..e6d27bebc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file188.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions,ScrollState, OnWillScrollCallback,OnScrollCallback,ScrollResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets index b79d19fd0..37de4946e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file189.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets index 4bf738e12..52d847f60 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file19.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets index d63b560d4..bb8c82cf1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file190.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets index feb557f7e..1729382d9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file191.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListOptions, BorderOptions,Position, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Length, ScrollAlign, Direction,Row, Visibility,ScrollState, OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets index 64982c1e7..cbf4105a2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file192.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets index 04bef425e..040b91427 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file193.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets index acad58305..856447a9a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file194.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets index 432877a89..7a629510f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file195.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets index b1184a213..927f816cb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file196.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets index 6687bef10..0066285d6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file197.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets index 717ec380a..ae9eb6684 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file198.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets index 1ad3c3180..fe92e2f13 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file199.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets index bcceb6817..6e147e974 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file2.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Stack,Alignment, ScrollDirection,ScrollBar,ScrollBarDirection diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets index 3357343c3..1b1095be7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file20.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets index ae7e27552..700b567e9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file200.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, Prop } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets index f0ec4df01..e3560725b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file201.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets index f01ec557b..a49fa8f30 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file202.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import window from '@ohos.window'; import { State } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets index 6f0646ff7..de624a72a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file203.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets index 78ce37818..1962b17ad 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file204.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets index 417fde070..136b908f5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file205.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Image, Column } from '@ohos.arkui.component'; import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets index 54a0e4201..cd9e62286 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file206.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; import pointer from '@ohos.multimodalInput.pointer' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets index 71e8bd996..4004caf22 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file207.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets index 9dfccc82c..f284e4c79 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file208.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Position } from '@ohos.arkui.component'; import dragController from '@ohos.arkui.dragController'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets index 1a6753fd6..1db2f6461 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file209.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets index ffa21f87a..d46f63266 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file21.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,BarState,HorizontalAlign,Text,ScrollDirection, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets index b3809e9bc..2f0197838 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file210.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets index 1c3e990ec..32bab4863 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file211.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets index aa37ac62f..3aa4f9050 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file212.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, Rating,FlexAlign,Color,Margin,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets index 3702224a3..f8714823a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file213.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,AttributeModifier, RowAttribute,ImageSize,FlexAlign,$r,ImageRepeat,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets index 0bace4aec..e0eec78ef 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file214.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import promptAction from '@ohos.promptAction'; import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets index b1be29edd..1b54482a8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file215.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets index 0de3afc5b..fdb0707aa 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file216.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets index 1945feab8..3bb2683b8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file217.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, Alignment, Margin, Grid, GridItem, Blank, GridDirection} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets index 8d4aaba12..c4bf2e3ef 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file218.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets index 2013ca873..b5ad8cd6f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file219.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets index d711836fd..90040974a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file22.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent, Navigation,Text,FlexAlign,HorizontalAlign,ScrollDirection,Scroll,NavPathStack, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets index a03e47194..7e75a6d51 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file220.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ResourceStr,$r,Menu,MenuItem,Builder,ColumnOptions,FontWeight, MenuItemGroup,MenuItemOptions,MenuItemGroupOptions,Text,Margin } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets index b384e3934..0f2bf8074 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file221.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets index 0b9cb8a76..0be2d76cc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file222.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets index e4661b180..ddf351540 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file223.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import common from '@ohos.app.ability.common' import window from '@ohos.window'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets index bebb6d1ad..886aaf811 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file224.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import matrix4 from '@ohos.matrix4'; import { Entry, Component,Column,Button,Margin,ClickEvent,FlexAlign,HorizontalAlign, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets index cfce0dc8a..c8905cc7f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file225.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets index 43d49195c..f9628eb9e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file226.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets index 05294f1ef..964c40140 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file227.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets index 96ba7b424..511b1a03e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file228.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets index 18e64052f..96d2c5402 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file229.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets index 0f96b70c3..0db4720b5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file23.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets index a9c17a06d..4241938cd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file230.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, DragEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets index 09627c187..0225487e3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file231.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets index 86f6b7a01..cf37a4da1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file232.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Flex,Alignment, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, FlexOptions,ListOptions, BorderOptions,ScrollState,FlexWrap} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets index 166a3bce8..18f04dafd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file233.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets index 61c0eee26..4c78bb57b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file234.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,AttributeModifier,GridAttribute, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment,Row,RowOptions,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets index 318521ace..beae87bc4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file235.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets index d1ce02e07..a19230f38 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file236.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets index e241cc418..931510089 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file237.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets index 167de7b7b..ffa80436e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file238.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,Text,ClickEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets index ac2477996..bb0ef5cf7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file239.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets index d03f195e3..9a7d7c383 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file24.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; import image from '@ohos.multimedia.image'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets index 1f7988fda..757a474aa 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file240.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets index 1d0aace78..7a30a7308 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file241.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets index bf5d0c66e..cd8b6d3e8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file242.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets index 11f764da0..8215613b2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file243.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets index 0c0b8076b..d58a39fe3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file244.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets index fce3909fe..8abafd8bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file245.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,Text,TextPicker,FontWeight, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets index 420f1620d..43780a6d7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file246.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets index b2badfb17..234ff5dba 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file247.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets index 01a1091f6..930546d6e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file248.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Button,GradientDirection,FlexAlign,SweepGradientOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets index 33dff83e3..a73d857eb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file249.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets index a7ced3e2f..1897203a4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file25.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets index bc1b0ecb7..21eb1357e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file250.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets index 55750e89f..8bab88c0e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file251.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry,Component,Column,Text,Button,ColumnOptions,Margin } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets index 3cf362c09..96604781c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file252.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,RowSplit,TextAlign,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets index 61ebee05a..63f6baf79 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file253.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets index d16fddcac..e3cf2f2f5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file254.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets index 72a43dfb2..c81fefd79 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file255.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets index c52b3e69c..77e17cfc5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file256.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets index ca462f44c..875074ab1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file257.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Color, FlexDirection, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets index 4cd5321b7..2e2162162 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file258.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets index 36f8c9b13..c751cdc67 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file259.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState,ScrollSource, OnWillScrollCallback,OnScrollCallback,ScrollResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets index 17d5af14c..0ce386011 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file26.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets index b20975d53..f27fb7ed0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file260.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,$r,ButtonOptions,Row, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets index 4ac987e33..9afa8f972 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file261.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,$r,Image,DragEvent,Padding, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets index daf6f6254..2debe604b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file262.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,GridDirection,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets index 297a624c2..6a8f8653f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file263.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemGroup,MenuItemOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets index f614e7873..ff547b24d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file264.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets index 200197586..24ac3c26c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file265.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Button, Text, ClickEvent, GestureEvent, Margin, RotationGesture } from '@ohos.arkui.component'; import { State } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets index 8f84c44c5..74e6a319c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file266.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets index 4ca17dafb..6202c6c1d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file267.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$,SheetSize, Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets index 9e0bb3c81..44980917a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file268.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets index abc6479a4..e408f59f6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file269.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets index 2eceb4f16..2fad532c4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file27.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets index 0a86f8a5d..7a1e34a3a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file270.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, BlurStyle, AdaptiveColor, ThemeColorMode } from '@ohos.arkui.component'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets index 295c9a9b6..beeda7b33 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file271.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets index 171a5a5d9..955bacd0e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file272.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Scroll,Row,Button,ClickEvent, DatePicker,FlexAlign,HorizontalAlign,Margin,ScrollDirection, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets index 1a8056b4f..3de544ff1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file273.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, $r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets index 0231cf28f..c7122ff9a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file274.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets index 1f5ae700a..0f5436c65 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file275.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets index 054e08461..d8c1dff0d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file276.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets index 456b8f7ae..c1d035e90 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file277.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets index b93d4b4f2..997634292 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file278.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets index 30027edd4..36b69159c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file279.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets index dcf9c5c37..78c842d58 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file28.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets index 2eccd4c04..18a210bd2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file280.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets index 49d041d80..d3324bb49 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file281.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets index 4c45107f8..f57797580 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file282.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets index b41d61cc2..f941df929 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file283.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets index 6ba67685c..4a01ddb66 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file284.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,Grid,Text,ClickEvent,GridItem,Text,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets index cf9a64777..397c852d1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file285.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets index a5d9dc2ad..3d5309be6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file286.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, DragEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets index 0175d0cc1..e2725194a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file287.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets index 8a0131c63..fdccf3f0e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file288.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets index bdc5f3854..0d4996786 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file289.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,Text,Search,Color,Margin, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets index 4df1289c9..5a0eb9bc3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file29.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets index 232cd82fe..8dd3591de 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file290.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets index 4eb4cfdd3..d9fe239cc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file291.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets index 5b4b44772..8815ef6ca 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file292.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets index 92820e078..f4068608f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file293.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets index 61141660f..e45908492 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file294.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets index 234adcf79..6f986f4e7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file295.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Line, Color,Blank,FlexAlign,HorizontalAlign,ScrollDirection,Scroll, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets index e2c5676bd..2ffa99f2d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file296.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets index 864889946..eccc434b1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file297.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, ButtonType, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets index 5858166fb..006eb708b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file298.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,Text,TimePicker,FontWeight,TimePickerResult, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets index 20704b6f9..2a824c343 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file299.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets index bcaa04215..2f827547e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file3.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets index 2b7658bcd..ddb9d715f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file30.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets index ad1cf3631..70df94975 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file300.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets index 39ffde6d6..12d468e03 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file301.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { UIContext, Router } from '@ohos.arkui.UIContext'; import { AppStorage } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets index bb95019c9..911ed271a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file302.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin, PinchGesture } from '@ohos.arkui.component'; import { State } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets index 1b9175bd5..358fb3d0b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file303.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets index cbc33eca6..514b5a3aa 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file304.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets index f9637152d..ffd14b760 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file305.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets index 6f2446d33..092d0ccbe 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file306.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets index 1fcf9e179..a82984fe4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file307.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Color,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets index c53d06bfe..d3c1b77e2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file308.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,Row,Text,List,ListItem,ClickEvent,Color } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets index 20fcd5a6b..e9cbab30c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file309.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets index c7e868d60..017442ac4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file31.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets index 39107f323..3464a53e1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file310.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, $$, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets index b88bba007..2ad4dc98c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file311.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets index 9a40ce8d4..5fed9c7bc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file312.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets index d592390dc..fa6ff19c1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file313.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent, $$, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets index 472afa722..c0ee5f9bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file314.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, ButtonType,ClickEvent,Visibility,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets index 69814c715..30cd123ed 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file315.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets index e053b3cbf..80933f0c4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file316.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ResourceStr,$r,Builder,Menu,ColumnOptions,MenuItem, MenuItemGroup,Margin,FontWeight,MenuItemGroupOptions,MenuItemOptions,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets index a33321e3f..6d4ebf490 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file317.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column, Image, List, Navigation, Row, Text, ListItem,NavDestination, Margin, Flex, NavPathStack, ClickEvent, Button, Margin, NavigationTitleMode, NavigationMode diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets index 45c3b5d19..1b0656355 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file318.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets index 5b31bc7ab..bc5f836b1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file319.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets index 68faeb34c..4de94e76d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file32.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, QRCode,HorizontalAlign,ScrollDirection,FlexAlign,Margin, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets index e58c36d58..49fbb0abd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file320.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnScrollCallback, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets index 7b53cc322..987ae07ed 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file321.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, DragEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets index 84a3ce00d..b0a44365c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file322.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets index e8e82027b..d9025770d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file323.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets index 7e22c488d..70d357af9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file324.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets index 6a156c656..80d60b693 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file325.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets index 76e81c56a..1c1d68d63 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file326.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets index 2962614b5..18ffd4270 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file327.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets index 7419ac73b..70571bc50 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file328.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets index 295cec040..9b2c4855b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file329.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import { Entry, Component, Column, ColumnOptions,Text,TextArea,CopyOptions,Margin, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets index f53a6f021..c8d809995 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file33.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,ScrollState, OnWillScrollCallback,OnScrollCallback,ComputedBarAttribute,ScrollResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets index 2de8d5f3a..4a75c2aa2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file330.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets index 72cfe7581..ec01bf934 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file331.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets index fd6bc88cb..598ad8866 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file332.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets index 96b04cbf4..449bea16f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file333.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets index 35a03a938..cf1304156 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file334.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets index b9227ba51..996abaebf 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file335.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,ButtonType,Column,ColumnOptions,Text,Button,ClickEvent,Margin,ButtonOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets index 306dbaba8..18a7f79f0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file336.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UTD from '@ohos.data.uniformTypeDescriptor'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets index 8b714903c..0df644b66 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file337.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets index a21edd42e..31971aa3d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file338.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets index 5dc4fb499..f21ca3b18 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file339.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import image from '@ohos.multimedia.image'; import dragController from '@ohos.arkui.dragController'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets index 52fe7d1e1..01bcc6c6d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file34.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { Entry, Column, Component, Button, ColumnOptions, Color } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets index 8e99a79ef..f5921667b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file340.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets index fdab25d6d..a9fd271f4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file341.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Driver } from '@kit.TestKit'; import { Entry, Component, Row, Column, Color, Builder, Button, Text, PanGesture, GestureEvent, Margin } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets index 13368be9f..579ee40c9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file342.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets index fd59d0f66..a2a85f7c8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file343.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets index 575fe7587..379676a4b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file344.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize,$r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets index 4dda61ca3..0d7e97bc7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file345.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets index cf5cdf472..8ceffba52 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file346.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets index cb978bc6e..9e0eaed4e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file347.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { UIContext, Router } from '@ohos.arkui.UIContext'; import { AppStorage } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets index 63687da92..e7cbd78d5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file348.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,DragEvent,RowOptions,Image,$r,Builder,Text, TextAlign,ListOptions,List,ForEach,ListItem,CustomBuilder,ItemDragInfo,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets index c7468d9a3..9f938b437 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file349.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, DragEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets index f62ab2a88..7fcfe0ac3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file35.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets index 912359fee..df56eff44 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file350.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets index d26854561..5a17ec83b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file351.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState, OnWillScrollCallback,OnScrollCallback,ScrollResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets index 8263ddc17..5522ceaa7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file352.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,ImageSize, $r,ImageRepeat,FlexAlign,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets index 4d68c711d..fb1da2316 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file353.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets index 8ac80c1e3..6eec39c0d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file354.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; import { Entry, Component,Row,Column,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets index 841f81bb6..70729383d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file355.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Scroll,Row,ForEach,GridRow,GridCol, Text,Button,ClickEvent,FlexAlign,HorizontalAlign,ScrollDirection, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets index 559f3001d..622204ef3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file356.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets index bf3f1fe7c..70fe2ede9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file357.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets index d25cb3e8f..92201977e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file358.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder, ProgressMask,$r,Curve,PlayMode} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets index 5a8718d38..b03f46fd4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file359.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets index 92cf29d0b..c47f89861 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file36.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Image } from '@ohos.arkui.component'; import { Entry, Component, Image, Row, Text, Column, Color, ColumnOptions,$r } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets index 98582f75f..7a9385ad3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file360.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets index 55f122e8f..e2bc0c0ce 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file361.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import window from '@ohos.window'; import { State } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets index 707770b55..9f30369ac 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file362.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets index 97096e600..39b4e4057 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file363.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Column,ShadowOptions,ColoringStrategy, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets index 3b0fef603..648bcc1ea 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file364.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Image,FlexAlign,GradientDirection,LinearGradientBlurOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets index 423665b30..51a54d1d1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file365.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import image from '@ohos.multimedia.image'; import dragController from '@ohos.arkui.dragController'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets index aa06f253e..e9341a743 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file366.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import { Entry,Component,Column,Text,Row,RowOptions,Image,$r,Button,ClickEvent,Margin, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets index f3edcf4d5..bb1b3c780 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file367.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets index 125f0c658..8d592f60f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file368.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Builder,Text,Color,FlexAlign,Button,ClickEvent,SheetOptions, $$, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets index 9a545b344..a04b08eca 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file369.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets index f36de39a1..196284d4c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file37.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListItem, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,List,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets index 39d546d17..10473559b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file370.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets index d25fc90f8..3b945adeb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file371.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column, Image, List, Navigation, Row, Text, ListItem,NavDestination, Margin, Flex, NavPathStack,ListOptions,ForEach, NavigationMode, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets index 00bde2012..944bad2de 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file372.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import promptAction from '@ohos.promptAction'; import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin,ButtonOptions, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets index 4800a2dde..2cf3f8853 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file373.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState, ComputedBarAttribute diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets index d1ec26d86..4b6aea709 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file374.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import image from '@ohos.multimedia.image' import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets index 88bc7c9bd..94e91f40e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file375.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets index 3293ab716..051c52da1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file376.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets index c89e0c196..2ebc569b7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file377.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets index da185d54a..147dc004a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file378.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Alignment, Margin } from '@ohos.arkui.component'; import { Entry, Component, Row, Column, Text, Color, FontWeight, Alignment, Button, ClickEvent, Margin, Builder, Direction } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets index a3759ee28..cb8e0dacd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file379.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets index b9eaf769a..02b341889 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file38.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Blank,GridDirection,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets index 8e2d874c1..5363547f6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file380.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets index 660e9364a..fa603a9b3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file381.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Button, Margin, TextPicker } from '@ohos.arkui.component'; import { State } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets index 5322e6e6e..7eaf81ee2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file382.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets index a7b7ac21c..6cd3ea305 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file383.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets index 768e18f90..8f6b6b8b4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file384.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets index 703b87bff..9edb6c914 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file385.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ListOptions, BorderOptions,Position, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem, Length, ScrollAlign, Direction,Row, Visibility,ScrollState, OnScrollFrameBeginCallback,OnScrollFrameBeginHandlerResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets index e0d1d907d..0ae9e00f2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file386.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uiEffect from "@ohos.graphics.uiEffect"; import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ImageAttribute, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets index 50c5655cc..b304d864e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file387.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Builder,Text,FontWeight,TextAlign, Row,Button,ClickEvent,FlexAlign,Scroll,Gauge,TextOverflow,Margin,$r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets index d2ce6796e..9d792760a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file388.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection, ClickEvent,Visibility,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets index 8625cbca0..349ba329a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file389.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Image,Text,Margin,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets index ee4d2e7ca..6933307ef 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file39.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, Row,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets index e69bc81dd..ab711edf2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file390.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer'; import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets index a06c8a386..566cc769b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file391.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets index d5864ff08..eaf6728e7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file392.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets index 8dd8322ac..a75b3aca3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file393.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets index 9176ce5f3..c0660c71d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file394.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets index bc04c6c0d..523ce77b2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file395.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets index 6a01d90d2..3a9a57bc0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file396.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import Window from '@ohos.window' import common from '@ohos.app.ability.common'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets index 2f3d5a9fd..9f7f5fc02 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file397.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets index 42c32ca52..969abb4b5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file398.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets index 10a272b3a..47d6e9c08 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file399.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets index b3320520c..c7f1b784b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file4.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets index 8973adb07..e49cd6505 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file40.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets index 2b85501d5..b530c93ae 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file400.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets index 6d1c52dd3..f01c5f695 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file401.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, Menu,MenuItem,ScrollDirection,FlexAlign,HorizontalAlign,MenuItemOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets index 39dc4f1b6..0b257629d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file402.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets index de109358f..8819d79b2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file403.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets index 61655ea61..5299351bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file404.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets index 6381ac6d2..c727e1139 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file405.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color,$r, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets index 460353e78..086d58186 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file406.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image,ShadowOptions } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets index 0a23aa6fc..997d0a2a1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file407.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets index 3af025da6..26b61698d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file408.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, DragPreviewMode,Column, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets index a221516a6..e909687ff 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file409.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets index 051d15580..9ae02b769 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file41.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets index bfc4592c2..3f2f65d7f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file410.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, FlexAlign,$r,ImageFit,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets index 01623a55a..ff3f27ae6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file411.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets index d6e0871d6..c1e97c2bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file412.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets index 6467db28c..056f4a657 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file413.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets index 5aaa7d1e9..613a44171 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file414.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets index 38a5fdf7a..9625bb57c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file415.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets index 3ae6249c8..47fafe0bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file416.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets index 680644870..5d44d4501 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file417.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets index e11b31c38..8d2090963 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file418.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets index b8d16ddac..5a8e5bd57 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file419.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,CustomBuilder, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,OnItemDragStartCallback} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets index bb83418b2..780de7f1a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file42.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetSize,$$,ClickEvent,SheetOptions,SheetType, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets index 53b9d896c..c890e8e76 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file420.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets index 28abc7fb5..c415b5cd9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file421.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets index fd6e75454..cf4264fca 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file422.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets index 6430449f8..978e9a453 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file423.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets index 06dbe3cc9..3c7cd83f5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file424.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets index 877736fc0..5cf046c3f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file425.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { promptAction } from '@kit.ArkUI'; import { State, } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets index 130c65669..7f1b71316 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file426.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets index 51ee94887..fb9bf4395 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file427.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets index 9702b9fca..657537897 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file428.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets index ad4de3d57..9f7787cc6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file429.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,Text,TimePicker,ToggleType,Toggle,TextAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets index fa0365e66..8fd4c5861 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file43.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets index 369c8b592..e7f8fd0c7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file430.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets index b302ee875..47427b392 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file431.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,SheetSize,ClickEvent,List, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets index 03b82af60..9d96473f7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file432.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Image,$r,DragEvent,DragResult,Margin, DragPreviewMode,Column, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets index 878cbec43..cca967774 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file433.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column, PanGestureOptions,PanGesture,Button,GestureEvent,ColumnOptions, CustomDialogController,DialogAlignment,ClickEvent,CustomDialogControllerOptions,TranslateOptions, PanDirection,PanGestureHandlerOptions, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets index 39b71f51b..591216afb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file434.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets index 00d5d4c13..0af3f273d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file435.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image,ShadowOptions,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets index 813a3687b..d45ed2090 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file436.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets index 2d08f0b48..b4289c3fe 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file437.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets index 07d37649a..23008917c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file438.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets index 20713781c..43e87f42b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file439.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,$$,SheetSize,ClickEvent, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets index 107e305fb..706c7e9e4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file44.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ScrollState,OnScrollCallback, CaretOffset,TextInputController,TextInput,ItemAlign,EdgeEffect,ComputedBarAttribute,TextInputOptions,Callback,ResourceStr, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets index 1164bf2a2..2156643ff 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file440.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets index ef93cf979..327d60548 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file441.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import hilog from '@ohos.hilog'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets index 5a70ea048..bdb64ef0c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file442.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets index a5d71e670..6cb62eb5a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file443.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridLayoutOptions} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets index 6a3f84b36..010ebdc4c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file444.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets index d8b50c58d..a8882573b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file445.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets index 6d0459a22..df12f6de8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file446.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets index 676dff5f4..7cb52e724 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file447.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets index 413216a24..be161e2ab 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file448.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle,ThemeColorMode,AdaptiveColor, BlurStyleActivePolicy,ImageSize diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets index 791466e4e..a3b721cf0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file449.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import image from '@ohos.multimedia.image' import { Entry, Component, Column, Color,DragItemInfo,Scroller,Builder,Text,TextAlign, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets index dc61160cc..76a6222e9 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file45.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets index c3fab0113..74b4aeb99 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file450.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import Window from '@ohos.window' import common from '@ohos.app.ability.common'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets index c71a2084d..d9d2ca466 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file451.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import window from '@ohos.window'; import { State } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets index c3be64566..15a7ddeee 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file452.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets index 5963404d9..d2da7c333 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file453.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row,Text,Color,FlexAlign,OutlineStyle, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets index dd7021ca8..0fdd27e64 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file454.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets index 45aeb14f9..ec706f5d1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file455.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets index cb79fc0f9..abb74c01f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file456.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets index 83cba00ae..7bc4a494c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file457.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,BlendMode,Color,Button,Margin,ClickEvent,FlexAlign, Row,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets index eab6a91a6..5f3668dbc 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file458.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,ForEach,Text,Button,Margin,SheetType,ClickEvent,$$, SheetSize,Resource, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets index 50f939c33..a96dde34a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file459.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions, ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets index 8bb9384ad..7bc5a6f66 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file46.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, Navigation,FlexAlign,HorizontalAlign,ScrollDirection, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets index 00504a95b..9959045a3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file460.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets index 509642a4f..3d28ff663 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file461.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, FlexAlign,$r,ImageFit,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets index bd2a07bbc..64de4a846 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file462.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { Entry, Builder, Component, Column, Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets index f13c4cdb5..a7f9594cd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file463.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,TextController,ColumnOptions,Text,TextArea,CopyOptions,Margin, DragEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets index defcc6f6e..57f8e4b7b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file464.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, animateTo,ButtonType,ClickEvent,Visibility,PlayMode, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets index 75804da90..7a1f16171 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file465.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets index 9d8978d1f..3ec3a11c2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file466.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color, Builder, Button, SwipeGesture, PanGesture, GestureEvent, Image, Text } from '@ohos.arkui.component'; import { State } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets index c7a40254f..fee408285 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file467.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets index c49f65dea..d79d8c437 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file468.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,Slider,Text,SliderStyle,SliderChangeMode, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets index 5351519a6..03f17d933 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file469.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollSource,OnWillScrollCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Curve,EdgeEffect,ScrollState,OnScrollCallback, ScrollResult diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets index 13c462222..ba21df02b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file47.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets index 256df8e93..40188f0c1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file470.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,ColumnOptions,Flex,FlexAlign,ItemAlign,ToggleType,Toggle, Text,ToggleOptions, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets index 1a126eb13..15d1443a8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file471.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets index d93603939..5d8960a23 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file472.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, FlexAlign,Color,Margin,Text,TextInput, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets index 039cc510c..c0d28e8b1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file473.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets index b5f93c16a..07cb9e56f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file474.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, EdgeEffect,GridItemAlignment,ScrollState diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets index 3c8b7106e..40197d1f1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file475.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets index f53e4489e..0d543ecb5 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file476.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column, TextAreaController,TextInputController, SearchController,ColumnOptions,TextInput,TextArea,Search,DragEvent,Text, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets index 11c517e50..da3c975e4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file477.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,DataChangeListener,IDataSource, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,LazyForEach,EdgeEffect,ScrollState,DataOperation, OnScrollCallback,ComputedBarAttribute diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets index 9b2a118f8..8df4f6be7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file478.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, animateTo,ButtonType,ClickEvent,Visibility,PlayMode, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets index 07f7c0ab9..76222e187 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file479.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,ColumnOptions,Padding, Row,Blank,$r,BorderStyle,PixelStretchEffectOptions,OverlayOptions,AnimateParam,BorderOptions,Alignment,RadialGradientOptions, AttributeModifier,RowAttribute,Resource,AlignRuleOption diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets index 62e1ecfb4..72f418f93 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file48.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,EffectComponent,Divider} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets index 3cb79dc15..1a0d9f899 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file480.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,LinearGradientOptions,GradientDirection,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets index 2ceb51866..05a1eee2a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file481.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets index 7a2501c5c..4512b894a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file482.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Row, Column, Color } from '@ohos.arkui.component'; import { Entry, Component, Image, Column, Alignment, Position } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets index 9f4fa2c6b..d45763545 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file483.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import I18n from '@ohos.i18n'; import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,Row,ScrollState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets index d3ba901b0..bb1aa584f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file484.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets index 238ad82a3..5b58a87d7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file485.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { UIContext, Router } from '@ohos.arkui.UIContext'; import { AppStorage } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets index 3c6d74609..dfe4a1330 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file486.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets index dd77c4de9..369b42ccb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file487.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, Column,Image,Text,Margin,Text,$r,ClickEvent } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets index 470784ef0..43b400ddd 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file488.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Image,ShadowOptions,FlexAlign,Color,Position, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets index fb548a58b..e6f1199f4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file489.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,Callback,CustomBuilder} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets index 184eb74c2..be46ddae8 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file49.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets index 6d617b937..1a303c194 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file490.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets index 7907fc0c6..51862a527 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file491.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets index d648b866a..aaef4057a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file492.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry,Component,TextController,Column,ColumnOptions,Text,TextArea,CopyOptions, Margin,DragEvent, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets index 77190c375..cecb8810f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file493.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets index 9259c760e..00b44c586 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file494.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets index cb5ffb187..601de4980 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file495.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,OnScrollCallback} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets index b91318931..44059d420 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file496.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Direction,ComputedBarAttribute} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets index 655fc6b71..46b7cd373 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file497.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets index c76156ae3..2f57a11b0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file498.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets index 42a47e352..81a7bc91b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file499.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets index 8ccd14656..975547a91 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file5.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets index 8d71d5bc2..d916799e6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file50.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets index a19c85b75..12e89def6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file51.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,HitTestMode, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Alignment,GridItemAlignment, BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets index cd38b0281..342991730 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file52.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, ClickEvent,Image,Row,Margin,$r,DragItemInfo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets index 55ee721f0..075f6ad79 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file53.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import window from '@ohos.window'; import { State } from '@ohos.arkui.stateManagement' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets index 4100f1bd6..225c4bf97 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file54.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets index 457467aff..ded5c1ef6 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file55.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { ColorMetrics, LengthMetrics } from '@ohos.arkui.node' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets index 68d5724f6..afbea1689 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file56.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect,ScrollState, Scroll, ForEach, Color, ColumnOptions, TextAlign, Row, Margin, Grid, Edge, BarState, GridItem, Direction,ListOptions, BorderOptions} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets index ed1e6a8b2..7566ab9ec 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file57.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets index 958a96881..ad0a195bb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file58.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin,FontWeight, Row, Builder,BlurStyle, BlurStyleActivePolicy,ImageSize} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets index abaaf4c3c..c5bd536e2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file59.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,RadialGradientOptions,GradientDirection,Color, animateTo,ButtonType,ClickEvent,Visibility,PlayMode,ResourceColor, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets index 071293fe3..a08b6c17c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file6.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets index 9056720bb..15c60bba1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file60.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import Window from '@ohos.window' import common from '@ohos.app.ability.common'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets index a000e51e9..6a255ae3f 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file61.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets index 97f3a72d7..88bb8f24c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file62.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets index adf25b11f..a47a180f7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file63.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, } from '@ohos.arkui.stateManagement' import { Entry,Component,Column,ColumnOptions,Button,ClickEvent,Margin,Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets index a20c41cbf..f795f6b14 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file64.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets index a3975dc7c..fbd1e2837 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file65.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Text, TextAttribute, Column, Component, Button, ButtonAttribute, ClickEvent,Image,Curve,ICurve, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets index b63239282..5d1689ca1 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file66.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets index 146be696b..6b2dcd2f3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file67.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets index eda35c229..0fd4312cb 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file68.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel'; import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets index 3a5785269..4bceb809e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file69.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets index 503e18cd7..76c1f9573 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file7.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets index 70b2734d2..18630614a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file70.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets index d6c995948..486c24110 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file71.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, PatternLock,HorizontalAlign,ScrollDirection,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets index eb0b05ee8..c202f376b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file72.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { BusinessError } from '@ohos.base'; import { Entry,Component,Column,Text,Builder,Color,ColumnOptions,RowOptions,DragEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets index f8f9b620d..62bf29da3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file73.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,EdgeEffect, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,ListOptions, BorderOptions,ScrollState} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets index de1c7e273..b96a21347 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file74.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Button,ClickEvent,FlexAlign,Margin,Stack,Alignment,List,ForEach, ListItem,Text,TextAlign,ListOptions,AlphabetIndexer,FontWeight,IndexerAlign,BlurStyle,Color,Stack, FontStyle, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets index 450fa6818..52cd35e07 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file75.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign,FlexOptions, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,LinearGradientBlurOptions, Resource,Flex,$r,FlexDirection,ItemAlign,FlexAlign,Image,GradientDirection diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets index 1a07a28d2..f04e6c29c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file76.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import Window from '@ohos.window' import common from '@ohos.app.ability.common'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets index 4e8b8e853..e4b6f6f2d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file77.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, TextAttribute, Column, Component, Button, FontStyle,FontWeight,VerticalAlign,HorizontalAlign, Color, Row, RowOptions, ColumnOptions,ForEach, Builder,ClickEvent,Margin,List,ListOptions,ListItem,TextAlign,Image, FlexAlign,$r,ImageFit,BorderOptions diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets index adedb053e..45a5287f3 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file78.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets index 968566465..2af8e43a0 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file79.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Builder,Column,Button,ClickEvent,Color,FlexAlign,SheetOptions,Text,SheetSize, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets index f44252e40..2873e7329 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file8.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Button,FlexAlign,SweepGradientOptions,GradientDirection, Visibility,ButtonType,ClickEvent,PlayMode,animateTo,Color, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets index 10f405090..cab8742d2 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file80.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets index d49c28eb2..f4efa2494 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file81.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State } from '@ohos.arkui.stateManagement' import { Entry, Column, Component, Button, ColumnOptions } from '@ohos.arkui.component'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets index 93a112880..fbf1cce31 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file82.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets index 5cceeb5aa..9fd7629af 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file83.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import pointer from '@ohos.multimodalInput.pointer' import { Column,WrappedBuilder, TouchEvent,Entry, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets index f80c0b1cc..5c0efb24d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file84.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,Position,EdgeEffect,Visibility, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,GridDirection,Blank,Alignment} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets index 752ec6a8f..79e882ed4 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file85.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ShadowOptions,Color,FlexAlign,HorizontalAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets index d5ce6bd60..d2416fc9a 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file86.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import UDC from '@ohos.data.unifiedDataChannel'; import UTD from '@ohos.data.uniformTypeDescriptor'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets index 754a7c707..1719be3aa 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file87.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,RenderFit,Button,ClickEvent,Curve,animateTo, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets index 115d32068..69ec09af7 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file88.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import unifiedDataChannel from '@ohos.data.unifiedDataChannel' import uniformTypeDescriptor from '@ohos.data.uniformTypeDescriptor' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets index 76c7328c1..8d917b516 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file89.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Text,Button,ClickEvent,$r,FlexAlign, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets index 08349baf6..ee0cf3325 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file9.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,OnItemDragStartCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,Builder,ItemDragInfo,CustomBuilder} from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets index 659cc3ed4..ba65fd74b 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file90.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Text,Button,ButtonType,ClickEvent,Margin, TextOverflow,FontStyle,FontWeight,TextHeightAdaptivePolicy,ButtonOptions,Row, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets index de7f37fd0..f21142c4d 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file91.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import dragController from '@ohos.arkui.dragController'; import UDC from '@ohos.data.unifiedDataChannel'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets index 875307baf..d5994be68 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file92.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { UIContext, Router } from '@ohos.arkui.UIContext'; import { AppStorage } from '@ohos.arkui.stateManagement'; diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets index bbb581448..dc39a31af 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file93.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Row,Column,Button,ClickEffectLevel, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets index edb9fcdd4..9275a868c 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file94.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,ColumnOptions,Row,Button,ClickEvent,Scroll, List,ListItem,Text,FlexAlign,HorizontalAlign,ScrollDirection, } from '@ohos.arkui.component' diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets index f1522ffd1..647c0091e 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file95.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import curves from '@ohos.curves'; import { Entry, Component,Column,Text,FontWeight,Color,TextAlign,RenderFit,ClickEvent,Button, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets index f8427f172..7c3358b04 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file96.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { State, MutableState, stateOf, observableProxy, AppStorage, } from '@ohos.arkui.stateManagement' import { diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets index 14cf9bdb0..56b974251 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file97.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, Column, Component, Button, ClickEvent,Image,ImageFit, Scroller,ScrollOptions,ScrollEdgeOptions,ScrollState,OnScrollCallback, Scroll, ForEach, Color, ColumnOptions, TextAlign, Margin, Grid, Edge, BarState, GridItem,EdgeEffect,GridItemAlignment,ComputedBarAttribute, EdgeEffect,GridItemAlignment,ScrollState diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets index ab4fe73c7..7bb7a7842 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file98.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Text, diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets index f426deb17..3337b4017 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/file99.ets @@ -1,3 +1,5 @@ +// TODO: panda issue 23803 +import {ButtonOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, AlphabetIndexerOptions, CalendarOptions, GridRowOptions, RadioOptions, RatingOptions, ScrollBarOptions, TextPickerOptions, DataPanelOptions, FlexOptions, GaugeOptions, GridColOptions, MarqueeOptions, SearchOptions, StackOptions, TextAreaOptions, TimePickerOptions, VideoOptions} from "@ohos.arkui.component" import { Entry, Component,Column,Row,Image, } from '@ohos.arkui.component' -- Gitee From 624202b0ac909f3be5aa9f3f5a4972015fe0703c Mon Sep 17 00:00:00 2001 From: Alexander Gorshenev Date: Wed, 30 Jul 2025 15:59:21 +0300 Subject: [PATCH 08/10] Don't use process.exit(1), it can lose buffered output Signed-off-by: Alexander Gorshenev --- ui2abc/libarkts/src-host/es2panda.ts | 19 +++++++++++++++++-- ui2abc/libarkts/src/utils.ts | 3 +++ 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/ui2abc/libarkts/src-host/es2panda.ts b/ui2abc/libarkts/src-host/es2panda.ts index c176d3399..8081870b2 100644 --- a/ui2abc/libarkts/src-host/es2panda.ts +++ b/ui2abc/libarkts/src-host/es2panda.ts @@ -21,6 +21,7 @@ import { Command } from "commander" import { throwError } from "@koalaui/libarkts" import { Es2pandaContextState } from "@koalaui/libarkts" import { Options, Config, Context, proceedToState, dumpProgramInfo, dumpArkTsConfigInfo } from "@koalaui/libarkts" +import { EarlyExitError, Es2pandaError } from "@koalaui/libarkts" interface CommandLineOptions { files: string[] @@ -293,7 +294,7 @@ function readAndSortPlugins(configDir: string, plugins: any[]) { return pluginsByState } -export function main() { +export function runCompiler() { checkSDK() const { files, configPath, outputs, dumpAst, simultaneous } = parseCommandLineArgs() if (!simultaneous && files.length != outputs.length) { @@ -316,7 +317,21 @@ export function main() { function reportErrorAndExit(message: string): never { console.error(message) - process.exit(1) + throw new EarlyExitError("Early exit") +} + +export function main() { + try { + runCompiler() + } catch (e) { + if (e instanceof EarlyExitError) { + process.exitCode = 1 + } else if (e instanceof Es2pandaError) { + process.exitCode = 2 + } else { + throw e + } + } } main() diff --git a/ui2abc/libarkts/src/utils.ts b/ui2abc/libarkts/src/utils.ts index 9fc372018..66fd480fb 100644 --- a/ui2abc/libarkts/src/utils.ts +++ b/ui2abc/libarkts/src/utils.ts @@ -13,6 +13,9 @@ * limitations under the License. */ +export class Es2pandaError extends Error { } +export class EarlyExitError extends Error { } + export function throwError(error: string): never { throw new Error(error) } -- Gitee From 5b07474cabf47f92a80804fa079b3373a8a76b34 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Mon, 4 Aug 2025 15:58:47 +0300 Subject: [PATCH 09/10] exclude some --- .gitignore | 2 + arkoala-arkts/trivial/user/arktsconfig.json | 43 +++++++- arkoala-arkts/trivial/user/package.json | 2 +- .../trivial/user/src/ets/pages/1.2/Index.ets | 100 +++++++++--------- 4 files changed, 95 insertions(+), 52 deletions(-) diff --git a/.gitignore b/.gitignore index e77a66e0f..ee7cd88fe 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,5 @@ tsconfig.tsbuildinfo .cache incremental/benchmarks/memo-benchmark/ets koala_mirror +ohos-sdk-linux +ohos-sdk-linux.zip diff --git a/arkoala-arkts/trivial/user/arktsconfig.json b/arkoala-arkts/trivial/user/arktsconfig.json index 8a1d659e1..9ad656db8 100644 --- a/arkoala-arkts/trivial/user/arktsconfig.json +++ b/arkoala-arkts/trivial/user/arktsconfig.json @@ -1644,9 +1644,50 @@ }, "include": [ - "./src/ets/**/*.ets" + "./src/ets/pages/**/*.ets" ], "exclude": [ + "What is BrightnessBlender and advancedBlendMode?", + "./src/ets/pages/1.2/file75.ets", + "./src/ets/pages/1.2/file151.ets", + "./src/ets/pages/1.2/file192.ets", + "./src/ets/pages/1.2/file269.ets", + "./src/ets/pages/1.2/file346.ets", + "./src/ets/pages/1.2/file386.ets", + "./src/ets/pages/1.2/file464.ets", + + "What is EffectComponent?", + "./src/ets/pages/1.2/file48.ets", + "./src/ets/pages/1.2/file243.ets", + "./src/ets/pages/1.2/file437.ets", + + "Why DrawableDescriptor cannot be found?", + "./src/ets/pages/1.2/file68.ets", + "./src/ets/pages/1.2/file262.ets", + "./src/ets/pages/1.2/file457.ets", + + "What is SheetOptions.offset?", + "./src/ets/pages/1.2/file297.ets", + "./src/ets/pages/1.2/file491.ets", + + "Segfault on proceed to checked:", + "./src/ets/pages/1.2/file46.ets", + "./src/ets/pages/1.2/file240.ets", + "./src/ets/pages/1.2/file435.ets", + + "These files require dealing with overlay param type (string | Builder) in memo plugin:", + "./src/ets/pages/1.2/file186.ets", + "./src/ets/pages/1.2/file193.ets", + "./src/ets/pages/1.2/file381.ets", + "./src/ets/pages/1.2/file387.ets", + + "Also memo plugin issues (maybe ui plugin as well) (file271, lines 82-88):", + "./src/ets/pages/1.2/file76.ets", + "./src/ets/pages/1.2/file271.ets", + "./src/ets/pages/1.2/file465.ets", + + "TODO memo-plugin: deal with all `Calling ... from non-memo context` warnings", + "./src/ets/**/page1.ets", "./src/ets/**/page2.ets", "./src/ets/**/page3.ets", diff --git a/arkoala-arkts/trivial/user/package.json b/arkoala-arkts/trivial/user/package.json index ede32310e..a324d4400 100644 --- a/arkoala-arkts/trivial/user/package.json +++ b/arkoala-arkts/trivial/user/package.json @@ -12,7 +12,7 @@ "clean": "rimraf build generated unmemoized js_output abc lib app/user/build app/user/libs", "build:user": "npm run compile -C ../../../ui2abc/ui-plugins && npm run build", "build:dump": "node ../../../ui2abc/fast-arktsc --config ./ui2abcconfig.json --simultaneous --compiler-flags '--dump-plugin-ast' --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", - "build": "node ../../../ui2abc/fast-arktsc --simultaneous --group-by 1 --config ./arktsconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja", + "build": "node ../../../ui2abc/fast-arktsc --simultaneous --config ./arktsconfig.json --compiler ../../../incremental/tools/panda/arkts/ui2abc --link-name ./build/user.abc --simultaneous && ninja ${NINJA_OPTIONS} -f build/ets/abc/build.ninja -j 1", "run": "npm run build:user && mkdir -p ../../build/userPandaFiles && cp ./build/user.abc ../../build/userPandaFiles/hello.abc && npm run build:loader:node -C ../.. && ACE_LIBRARY_PATH=../../build PANDA_HOME=../../../incremental/tools/panda/node_modules/@panda/sdk node ../../build/index.js panda-ani:class=@ohos.example.src.ets.entry.Entry 10", "copy": "mkdir -p ../build && cp -r build/user.abc ../build/", "pack": "npm run clt:download && cd app && DEVECO_SDK_HOME=../$npm_package_config_sdk_path ../$npm_package_config_hvigorw_path --no-daemon --mode module -p product=default -p module=user@default assembleHar", diff --git a/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets index 3696f3364..b73efdf26 100644 --- a/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets +++ b/arkoala-arkts/trivial/user/src/ets/pages/1.2/Index.ets @@ -46,9 +46,9 @@ import { FLAG_OF_FILE_42 } from './file42' import { FLAG_OF_FILE_43 } from './file43' import { FLAG_OF_FILE_44 } from './file44' import { FLAG_OF_FILE_45 } from './file45' -import { FLAG_OF_FILE_46 } from './file46' +// import { FLAG_OF_FILE_46 } from './file46' import { FLAG_OF_FILE_47 } from './file47' -import { FLAG_OF_FILE_48 } from './file48' +// import { FLAG_OF_FILE_48 } from './file48' import { FLAG_OF_FILE_49 } from './file49' import { FLAG_OF_FILE_50 } from './file50' import { FLAG_OF_FILE_51 } from './file51' @@ -68,15 +68,15 @@ import { FLAG_OF_FILE_64 } from './file64' import { FLAG_OF_FILE_65 } from './file65' import { FLAG_OF_FILE_66 } from './file66' import { FLAG_OF_FILE_67 } from './file67' -import { FLAG_OF_FILE_68 } from './file68' +// import { FLAG_OF_FILE_68 } from './file68' import { FLAG_OF_FILE_69 } from './file69' import { FLAG_OF_FILE_70 } from './file70' import { FLAG_OF_FILE_71 } from './file71' import { FLAG_OF_FILE_72 } from './file72' import { FLAG_OF_FILE_73 } from './file73' import { FLAG_OF_FILE_74 } from './file74' -import { FLAG_OF_FILE_75 } from './file75' -import { FLAG_OF_FILE_76 } from './file76' +// import { FLAG_OF_FILE_75 } from './file75' +// import { FLAG_OF_FILE_76 } from './file76' import { FLAG_OF_FILE_77 } from './file77' import { FLAG_OF_FILE_78 } from './file78' import { FLAG_OF_FILE_79 } from './file79' @@ -151,7 +151,7 @@ import { FLAG_OF_FILE_147 } from './file147' import { FLAG_OF_FILE_148 } from './file148' import { FLAG_OF_FILE_149 } from './file149' import { FLAG_OF_FILE_150 } from './file150' -import { FLAG_OF_FILE_151 } from './file151' +// import { FLAG_OF_FILE_151 } from './file151' import { FLAG_OF_FILE_152 } from './file152' import { FLAG_OF_FILE_153 } from './file153' import { FLAG_OF_FILE_154 } from './file154' @@ -186,14 +186,14 @@ import { FLAG_OF_FILE_182 } from './file182' import { FLAG_OF_FILE_183 } from './file183' import { FLAG_OF_FILE_184 } from './file184' import { FLAG_OF_FILE_185 } from './file185' -import { FLAG_OF_FILE_186 } from './file186' +// import { FLAG_OF_FILE_186 } from './file186' import { FLAG_OF_FILE_187 } from './file187' import { FLAG_OF_FILE_188 } from './file188' import { FLAG_OF_FILE_189 } from './file189' import { FLAG_OF_FILE_190 } from './file190' import { FLAG_OF_FILE_191 } from './file191' -import { FLAG_OF_FILE_192 } from './file192' -import { FLAG_OF_FILE_193 } from './file193' +// import { FLAG_OF_FILE_192 } from './file192' +// import { FLAG_OF_FILE_193 } from './file193' import { FLAG_OF_FILE_194 } from './file194' import { FLAG_OF_FILE_195 } from './file195' import { FLAG_OF_FILE_196 } from './file196' @@ -240,10 +240,10 @@ import { FLAG_OF_FILE_236 } from './file236' import { FLAG_OF_FILE_237 } from './file237' import { FLAG_OF_FILE_238 } from './file238' import { FLAG_OF_FILE_239 } from './file239' -import { FLAG_OF_FILE_240 } from './file240' +// import { FLAG_OF_FILE_240 } from './file240' import { FLAG_OF_FILE_241 } from './file241' import { FLAG_OF_FILE_242 } from './file242' -import { FLAG_OF_FILE_243 } from './file243' +// import { FLAG_OF_FILE_243 } from './file243' import { FLAG_OF_FILE_244 } from './file244' import { FLAG_OF_FILE_245 } from './file245' import { FLAG_OF_FILE_246 } from './file246' @@ -262,16 +262,16 @@ import { FLAG_OF_FILE_258 } from './file258' import { FLAG_OF_FILE_259 } from './file259' import { FLAG_OF_FILE_260 } from './file260' import { FLAG_OF_FILE_261 } from './file261' -import { FLAG_OF_FILE_262 } from './file262' +// import { FLAG_OF_FILE_262 } from './file262' import { FLAG_OF_FILE_263 } from './file263' import { FLAG_OF_FILE_264 } from './file264' import { FLAG_OF_FILE_265 } from './file265' import { FLAG_OF_FILE_266 } from './file266' import { FLAG_OF_FILE_267 } from './file267' import { FLAG_OF_FILE_268 } from './file268' -import { FLAG_OF_FILE_269 } from './file269' +// import { FLAG_OF_FILE_269 } from './file269' import { FLAG_OF_FILE_270 } from './file270' -import { FLAG_OF_FILE_271 } from './file271' +// import { FLAG_OF_FILE_271 } from './file271' import { FLAG_OF_FILE_272 } from './file272' import { FLAG_OF_FILE_273 } from './file273' import { FLAG_OF_FILE_274 } from './file274' @@ -297,7 +297,7 @@ import { FLAG_OF_FILE_293 } from './file293' import { FLAG_OF_FILE_294 } from './file294' import { FLAG_OF_FILE_295 } from './file295' import { FLAG_OF_FILE_296 } from './file296' -import { FLAG_OF_FILE_297 } from './file297' +// import { FLAG_OF_FILE_297 } from './file297' import { FLAG_OF_FILE_298 } from './file298' import { FLAG_OF_FILE_299 } from './file299' import { FLAG_OF_FILE_300 } from './file300' @@ -346,7 +346,7 @@ import { FLAG_OF_FILE_342 } from './file342' import { FLAG_OF_FILE_343 } from './file343' import { FLAG_OF_FILE_344 } from './file344' import { FLAG_OF_FILE_345 } from './file345' -import { FLAG_OF_FILE_346 } from './file346' +// import { FLAG_OF_FILE_346 } from './file346' import { FLAG_OF_FILE_347 } from './file347' import { FLAG_OF_FILE_348 } from './file348' import { FLAG_OF_FILE_349 } from './file349' @@ -381,13 +381,13 @@ import { FLAG_OF_FILE_377 } from './file377' import { FLAG_OF_FILE_378 } from './file378' import { FLAG_OF_FILE_379 } from './file379' import { FLAG_OF_FILE_380 } from './file380' -import { FLAG_OF_FILE_381 } from './file381' +// import { FLAG_OF_FILE_381 } from './file381' import { FLAG_OF_FILE_382 } from './file382' import { FLAG_OF_FILE_383 } from './file383' import { FLAG_OF_FILE_384 } from './file384' import { FLAG_OF_FILE_385 } from './file385' -import { FLAG_OF_FILE_386 } from './file386' -import { FLAG_OF_FILE_387 } from './file387' +// import { FLAG_OF_FILE_386 } from './file386' +// import { FLAG_OF_FILE_387 } from './file387' import { FLAG_OF_FILE_388 } from './file388' import { FLAG_OF_FILE_389 } from './file389' import { FLAG_OF_FILE_390 } from './file390' @@ -435,9 +435,9 @@ import { FLAG_OF_FILE_431 } from './file431' import { FLAG_OF_FILE_432 } from './file432' import { FLAG_OF_FILE_433 } from './file433' import { FLAG_OF_FILE_434 } from './file434' -import { FLAG_OF_FILE_435 } from './file435' +// import { FLAG_OF_FILE_435 } from './file435' import { FLAG_OF_FILE_436 } from './file436' -import { FLAG_OF_FILE_437 } from './file437' +// import { FLAG_OF_FILE_437 } from './file437' import { FLAG_OF_FILE_438 } from './file438' import { FLAG_OF_FILE_439 } from './file439' import { FLAG_OF_FILE_440 } from './file440' @@ -457,15 +457,15 @@ import { FLAG_OF_FILE_453 } from './file453' import { FLAG_OF_FILE_454 } from './file454' import { FLAG_OF_FILE_455 } from './file455' import { FLAG_OF_FILE_456 } from './file456' -import { FLAG_OF_FILE_457 } from './file457' +// import { FLAG_OF_FILE_457 } from './file457' import { FLAG_OF_FILE_458 } from './file458' import { FLAG_OF_FILE_459 } from './file459' import { FLAG_OF_FILE_460 } from './file460' import { FLAG_OF_FILE_461 } from './file461' import { FLAG_OF_FILE_462 } from './file462' import { FLAG_OF_FILE_463 } from './file463' -import { FLAG_OF_FILE_464 } from './file464' -import { FLAG_OF_FILE_465 } from './file465' +// import { FLAG_OF_FILE_464 } from './file464' +// import { FLAG_OF_FILE_465 } from './file465' import { FLAG_OF_FILE_466 } from './file466' import { FLAG_OF_FILE_467 } from './file467' import { FLAG_OF_FILE_468 } from './file468' @@ -491,7 +491,7 @@ import { FLAG_OF_FILE_487 } from './file487' import { FLAG_OF_FILE_488 } from './file488' import { FLAG_OF_FILE_489 } from './file489' import { FLAG_OF_FILE_490 } from './file490' -import { FLAG_OF_FILE_491 } from './file491' +// import { FLAG_OF_FILE_491 } from './file491' import { FLAG_OF_FILE_492 } from './file492' import { FLAG_OF_FILE_493 } from './file493' import { FLAG_OF_FILE_494 } from './file494' @@ -546,9 +546,9 @@ let s42 = FLAG_OF_FILE_42 let s43 = FLAG_OF_FILE_43 let s44 = FLAG_OF_FILE_44 let s45 = FLAG_OF_FILE_45 -let s46 = FLAG_OF_FILE_46 +// let s46 = FLAG_OF_FILE_46 let s47 = FLAG_OF_FILE_47 -let s48 = FLAG_OF_FILE_48 +// let s48 = FLAG_OF_FILE_48 let s49 = FLAG_OF_FILE_49 let s50 = FLAG_OF_FILE_50 let s51 = FLAG_OF_FILE_51 @@ -568,15 +568,15 @@ let s64 = FLAG_OF_FILE_64 let s65 = FLAG_OF_FILE_65 let s66 = FLAG_OF_FILE_66 let s67 = FLAG_OF_FILE_67 -let s68 = FLAG_OF_FILE_68 +// let s68 = FLAG_OF_FILE_68 let s69 = FLAG_OF_FILE_69 let s70 = FLAG_OF_FILE_70 let s71 = FLAG_OF_FILE_71 let s72 = FLAG_OF_FILE_72 let s73 = FLAG_OF_FILE_73 let s74 = FLAG_OF_FILE_74 -let s75 = FLAG_OF_FILE_75 -let s76 = FLAG_OF_FILE_76 +// let s75 = FLAG_OF_FILE_75 +// let s76 = FLAG_OF_FILE_76 let s77 = FLAG_OF_FILE_77 let s78 = FLAG_OF_FILE_78 let s79 = FLAG_OF_FILE_79 @@ -651,7 +651,7 @@ let s147 = FLAG_OF_FILE_147 let s148 = FLAG_OF_FILE_148 let s149 = FLAG_OF_FILE_149 let s150 = FLAG_OF_FILE_150 -let s151 = FLAG_OF_FILE_151 +// let s151 = FLAG_OF_FILE_151 let s152 = FLAG_OF_FILE_152 let s153 = FLAG_OF_FILE_153 let s154 = FLAG_OF_FILE_154 @@ -686,14 +686,14 @@ let s182 = FLAG_OF_FILE_182 let s183 = FLAG_OF_FILE_183 let s184 = FLAG_OF_FILE_184 let s185 = FLAG_OF_FILE_185 -let s186 = FLAG_OF_FILE_186 +// let s186 = FLAG_OF_FILE_186 let s187 = FLAG_OF_FILE_187 let s188 = FLAG_OF_FILE_188 let s189 = FLAG_OF_FILE_189 let s190 = FLAG_OF_FILE_190 let s191 = FLAG_OF_FILE_191 -let s192 = FLAG_OF_FILE_192 -let s193 = FLAG_OF_FILE_193 +// let s192 = FLAG_OF_FILE_192 +// let s193 = FLAG_OF_FILE_193 let s194 = FLAG_OF_FILE_194 let s195 = FLAG_OF_FILE_195 let s196 = FLAG_OF_FILE_196 @@ -740,10 +740,10 @@ let s236 = FLAG_OF_FILE_236 let s237 = FLAG_OF_FILE_237 let s238 = FLAG_OF_FILE_238 let s239 = FLAG_OF_FILE_239 -let s240 = FLAG_OF_FILE_240 +// let s240 = FLAG_OF_FILE_240 let s241 = FLAG_OF_FILE_241 let s242 = FLAG_OF_FILE_242 -let s243 = FLAG_OF_FILE_243 +// let s243 = FLAG_OF_FILE_243 let s244 = FLAG_OF_FILE_244 let s245 = FLAG_OF_FILE_245 let s246 = FLAG_OF_FILE_246 @@ -762,16 +762,16 @@ let s258 = FLAG_OF_FILE_258 let s259 = FLAG_OF_FILE_259 let s260 = FLAG_OF_FILE_260 let s261 = FLAG_OF_FILE_261 -let s262 = FLAG_OF_FILE_262 +// let s262 = FLAG_OF_FILE_262 let s263 = FLAG_OF_FILE_263 let s264 = FLAG_OF_FILE_264 let s265 = FLAG_OF_FILE_265 let s266 = FLAG_OF_FILE_266 let s267 = FLAG_OF_FILE_267 let s268 = FLAG_OF_FILE_268 -let s269 = FLAG_OF_FILE_269 +// let s269 = FLAG_OF_FILE_269 let s270 = FLAG_OF_FILE_270 -let s271 = FLAG_OF_FILE_271 +// let s271 = FLAG_OF_FILE_271 let s272 = FLAG_OF_FILE_272 let s273 = FLAG_OF_FILE_273 let s274 = FLAG_OF_FILE_274 @@ -797,7 +797,7 @@ let s293 = FLAG_OF_FILE_293 let s294 = FLAG_OF_FILE_294 let s295 = FLAG_OF_FILE_295 let s296 = FLAG_OF_FILE_296 -let s297 = FLAG_OF_FILE_297 +// let s297 = FLAG_OF_FILE_297 let s298 = FLAG_OF_FILE_298 let s299 = FLAG_OF_FILE_299 let s300 = FLAG_OF_FILE_300 @@ -846,7 +846,7 @@ let s342 = FLAG_OF_FILE_342 let s343 = FLAG_OF_FILE_343 let s344 = FLAG_OF_FILE_344 let s345 = FLAG_OF_FILE_345 -let s346 = FLAG_OF_FILE_346 +// let s346 = FLAG_OF_FILE_346 let s347 = FLAG_OF_FILE_347 let s348 = FLAG_OF_FILE_348 let s349 = FLAG_OF_FILE_349 @@ -881,13 +881,13 @@ let s377 = FLAG_OF_FILE_377 let s378 = FLAG_OF_FILE_378 let s379 = FLAG_OF_FILE_379 let s380 = FLAG_OF_FILE_380 -let s381 = FLAG_OF_FILE_381 +// let s381 = FLAG_OF_FILE_381 let s382 = FLAG_OF_FILE_382 let s383 = FLAG_OF_FILE_383 let s384 = FLAG_OF_FILE_384 let s385 = FLAG_OF_FILE_385 -let s386 = FLAG_OF_FILE_386 -let s387 = FLAG_OF_FILE_387 +// let s386 = FLAG_OF_FILE_386 +// let s387 = FLAG_OF_FILE_387 let s388 = FLAG_OF_FILE_388 let s389 = FLAG_OF_FILE_389 let s390 = FLAG_OF_FILE_390 @@ -935,9 +935,9 @@ let s431 = FLAG_OF_FILE_431 let s432 = FLAG_OF_FILE_432 let s433 = FLAG_OF_FILE_433 let s434 = FLAG_OF_FILE_434 -let s435 = FLAG_OF_FILE_435 +// let s435 = FLAG_OF_FILE_435 let s436 = FLAG_OF_FILE_436 -let s437 = FLAG_OF_FILE_437 +// let s437 = FLAG_OF_FILE_437 let s438 = FLAG_OF_FILE_438 let s439 = FLAG_OF_FILE_439 let s440 = FLAG_OF_FILE_440 @@ -957,15 +957,15 @@ let s453 = FLAG_OF_FILE_453 let s454 = FLAG_OF_FILE_454 let s455 = FLAG_OF_FILE_455 let s456 = FLAG_OF_FILE_456 -let s457 = FLAG_OF_FILE_457 +// let s457 = FLAG_OF_FILE_457 let s458 = FLAG_OF_FILE_458 let s459 = FLAG_OF_FILE_459 let s460 = FLAG_OF_FILE_460 let s461 = FLAG_OF_FILE_461 let s462 = FLAG_OF_FILE_462 let s463 = FLAG_OF_FILE_463 -let s464 = FLAG_OF_FILE_464 -let s465 = FLAG_OF_FILE_465 +// let s464 = FLAG_OF_FILE_464 +// let s465 = FLAG_OF_FILE_465 let s466 = FLAG_OF_FILE_466 let s467 = FLAG_OF_FILE_467 let s468 = FLAG_OF_FILE_468 @@ -991,7 +991,7 @@ let s487 = FLAG_OF_FILE_487 let s488 = FLAG_OF_FILE_488 let s489 = FLAG_OF_FILE_489 let s490 = FLAG_OF_FILE_490 -let s491 = FLAG_OF_FILE_491 +// let s491 = FLAG_OF_FILE_491 let s492 = FLAG_OF_FILE_492 let s493 = FLAG_OF_FILE_493 let s494 = FLAG_OF_FILE_494 -- Gitee From 6132e0aafcc850b1f52394ce986668e3ca855fa6 Mon Sep 17 00:00:00 2001 From: Igor Loginov Date: Wed, 6 Aug 2025 15:00:13 +0300 Subject: [PATCH 10/10] Rebase --- ui2abc/ui-plugins/src/component-transformer.ts | 2 +- ui2abc/ui-plugins/src/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui2abc/ui-plugins/src/component-transformer.ts b/ui2abc/ui-plugins/src/component-transformer.ts index 558abf9cc..633564491 100644 --- a/ui2abc/ui-plugins/src/component-transformer.ts +++ b/ui2abc/ui-plugins/src/component-transformer.ts @@ -722,7 +722,7 @@ export class ComponentTransformer extends arkts.AbstractVisitor { result.push(this.rewriteStructToOptions(node)) if (node.definition && hasEntryAnnotation(node.definition)) { result.push(this.createEntryWrapper(node.definition.ident!.name)) - result.push(this.registerRouterPage(node.definition.ident!.name)) + // result.push(this.registerRouterPage(node.definition.ident!.name)) } } diff --git a/ui2abc/ui-plugins/src/utils.ts b/ui2abc/ui-plugins/src/utils.ts index ecaf75131..621e4404c 100644 --- a/ui2abc/ui-plugins/src/utils.ts +++ b/ui2abc/ui-plugins/src/utils.ts @@ -115,7 +115,7 @@ export function getRouterPackage(): string { if (isKoalaWorkspace()) { return 'arkui' } else { - return 'arkui.ohos.router' + return '@ohos.router' } } -- Gitee